ruby on rails - how to call the Errbit API? -


starter

airbrake/errbit applications collect errors generated other applications, , aggregate results review. airbrake commercial app , errbit open-source clone of airbrake.

main course

i need figuring out errbit api. i'm not talking api use send errors errbit, errbit (and airbrake) have api use read data out of it. airbrake api reasonably well documented, there no docs errbit api. posted question api errbit google group, , told:

  • there no docs
  • the errbit api different airbrake api
  • the errbit api code is here

i had @ code, being non-rubyist, couldn't make sense of it.

all want do, total number of errors particular app (project). if it's possible errors, filter out errors project of interest in api client.

could familiar rails apps, see if api supports this, , if so, explain how can invoke (what url , params should use)?

from can see need request to

/api/v1/stats/app?api_key=xxxxxx 

where xxxxx api key of app want params for. call return json wit following information:

stats = {   :name => @app.name,   :last_error_time => @last_error_time,   :unresolved_errors => @app.unresolved_count } 

if need more information can modify file: /app/controllers/api/v1/stats_controller.rb include relevant information


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -