Metric
The Metric API provides access to a variety of metrics that are recorded
in the Lytics platform. With this API, you can access segment-size metrics,
events received per-hour, as well as many workflow specific metrics.
Metric
https://api.lytics.io/api/metric/Fetch metrics by providing the arguments in the query-parameters
``sh
curl "$LIOAPI/api/metric?keyspace=segsize&metric=web&name=my-metric" -s -H "Authorization: $LIOKEY" | jq '.'
``
Query Parameters
account_idoptionalstringnameoptionalstringExample:
my-metricdimensionrequiredstringExample:
segmentdimension_idrequiredstringExample:
abc123dimension_typerequiredstringExample:
sizeaggregationoptionalstringExample:
sumintervaloptionalstringExample:
2hinclude_empty_rowsoptionalstringExample:
falsesmoothoptionalstringExample:
truestart_dateoptionalstringExample:
now-5wend_dateoptionalstringExample:
now-1wrangeoptionalstringExample:
2hHeaders
Authorizationoptionalstring{
"data": [
{
"name": "sample-request",
"dimension": "segsize",
"dimension_id": "abc123",
"dimension_type": "size",
"range": "2d",
"aggregation": "max",
"interval": "2h",
"is_cached": true,
"values": [
{
"value": 0,
"ts": "1525231674371"
},
{
"value": 100,
"ts": "1525238874371"
},
{
"value": 200,
"ts": "1525246074371"
},
{
"value": 300,
"ts": "1525253274371"
},
{
"value": 400,
"ts": "1525260474371"
},
{
"value": 500,
"ts": "1525267674371"
},
{
"value": 600,
"ts": "1525274874371"
},
{
"value": 700,
"ts": "1525282074371"
},
{
"value": 800,
"ts": "1525289274371"
},
{
"value": 900,
"ts": "1525296474371"
}
]
}
],
"message": "success",
"status": 200
}Metric
https://api.lytics.io/api/metric