Returns the number of metric events for given license keys. Date range is limited to mixum 30 days.
Param name | Description |
---|---|
from required |
Date in YYYY-MM-DD format, from which metric events to be returned Value: Must be a String |
to required |
Date in YYYY-MM-DD, to which metric events to be returned Value: Must be a String |
is_oem optional |
If this flag is true then data for all child organisations will be returned, when it is false it will return only data for that account. By default it is false Value: Must be a Boolean |
timezone optional |
Time zone in which from and to date should be considered. By default it is UTC Value: Must be a String |
Request curl -X GET -H "Content-Type:application/json" --header 'X-Auth-Token:qplZbr0tKnjCFaBZSmmpOw' -d '{"from":"2022-10-10", "to":"2022-10-18", "timezone":"Mumbai", "is_oem":true}' 'http://api.datonis.io/api/v3//metric_event_counters/metric_events' Response (Metric events for each organisation) { "Altizon Mumbai": 5477636, "Altizon Pune": 1633, "Altizon Delhi": 2156, "Altizon Bangalore": 5853 }
Request curl -X GET -H "Content-Type:application/json" --header 'X-Auth-Token:qplZbr0tKnjCFaBZSmmpOw' -d '{"from":"2022-10-10", "to":"2022-10-18", "timezone":"Mumbai"}' 'http://api.datonis.io/api/v3//metric_event_counters/metric_events' Response (Metric events for each organisation) { "Altizon Demo": 54776 }