Metric Data
GET {{baseUrl}}/mobile_applications/:mobile_application_id/metrics/data.json?names=<string>,<string>&values=<string>,<string>&from=<dateTime>&to=<dateTime>&period=<integer>&summarize=<boolean>&raw=<boolean>
This API endpoint returns a list of values for each of the requested metrics. The list of available metrics can be returned using the Metric Name API endpoint.
Metric data can be filtered by a number of parameters, including multiple names and values, and by time range. Metric names and values will be matched intelligently in the background.
You can also retrieve a summarized data point across the entire time range selected by using the summarize parameter.
See our documentation for a discussion on output pagination, time range related considerations, and for examples of requesting and using metric values.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
names | string | (Required) Retrieve specific metrics by name | |
values | string | Retrieve specific metric values | |
from | string | Retrieve metrics after this time | |
to | string | Retrieve metrics before this time | |
period | string | Period of timeslices in seconds | |
summarize | string | Summarize the data | |
raw | string | Return unformatted raw values |
RESPONSES
status: OK
{"metric_data":{"from":"1954-03-22T09:10:56.594Z","metrics":[{"name":"incididunt elit qui","timeslices":[{"from":"1996-01-29T01:57:39.716Z","to":"2004-08-20T17:25:13.292Z","values":{}},{"from":"1989-01-18T21:50:12.338Z","to":"1960-12-18T07:02:42.530Z","values":{}}]},{"name":"ut culpa","timeslices":[{"from":"1960-04-06T18:35:45.780Z","to":"2003-08-03T19:59:49.984Z","values":{}},{"from":"1983-03-06T02:44:43.968Z","to":"1965-09-09T00:14:40.870Z","values":{}}]}],"metrics_found":"in ipsum anim Ut officia","metrics_not_found":"enim irure anim sit dolor","to":"1994-05-30T09:59:13.803Z"}}