-
Notifications
You must be signed in to change notification settings - Fork 0
Get number of API hits
You can find a rake task under: lib/tasks/export_total_hits.rake
This task uses the Appsignal API to fetch the number of hits for a given app and a given period of time.
Please note that the Appsignal API have not been officially released at this stage, so everything related to that in this rake task has been reverse engineered.
In order to export the total number of hits of the API on production (or other apps/environments), you can run the following:
bundle exec rake export:total_hits['app_id','token','from_date','to_date']
The app_id
is shown in the Appsignal web page.
You can find the token
in your Appsignal profile page.
from_date
and end_date
must be used in the following format and is recommended not to exceed the total period of 1 year: YYYY-MM-DD.