Metrics
Query time series metrics for segments, streams, experiences, and other Lytics resources.
Query metrics (GET)
https://api.lytics.io/v2/metricQuery one or more metrics via query parameters. The Metric API provides access to time series data for segments, streams, experiences, and other Lytics resources.
{
"_meta": {},
"data": [
{
"aggregation": "string",
"create_time": "2019-08-24T14:15:22Z",
"dimension": "string",
"dimension_id": "string",
"dimension_type": "string",
"end_date": "string",
"errors": [
"string"
],
"include_empty_rows": true,
"include_sum_of_buckets": true,
"interval": "string",
"is_cached": true,
"name": "string",
"range": "string",
"refresh_cache": true,
"round_dates": true,
"smooth": true,
"start_date": "string",
"sum": 0,
"values": [
{
"ts": "1285891200000",
"value": 0
}
]
}
],
"request_id": "string",
"status": 0
}Query metrics (POST)
https://api.lytics.io/v2/metricQuery one or more metrics by posting a JSON array of metric requests. The Metric API provides access to time series data for segments, streams, experiences, and other Lytics resources.
{
"_meta": {},
"data": [
{
"aggregation": "string",
"create_time": "2019-08-24T14:15:22Z",
"dimension": "string",
"dimension_id": "string",
"dimension_type": "string",
"end_date": "string",
"errors": [
"string"
],
"include_empty_rows": true,
"include_sum_of_buckets": true,
"interval": "string",
"is_cached": true,
"name": "string",
"range": "string",
"refresh_cache": true,
"round_dates": true,
"smooth": true,
"start_date": "string",
"sum": 0,
"values": [
{
"ts": "1285891200000",
"value": 0
}
]
}
],
"request_id": "string",
"status": 0
}