2018-11-20 20:34:42 +01:00
|
|
|
---
|
|
|
|
id: metrics
|
|
|
|
title: /api/client/metrics
|
|
|
|
---
|
2017-06-28 10:17:48 +02:00
|
|
|
|
|
|
|
### Send metrics
|
|
|
|
|
2018-11-20 20:34:42 +01:00
|
|
|
`POST: http://unleash.host.com/api/client/metrics`
|
2017-06-28 10:17:48 +02:00
|
|
|
|
2018-11-22 11:20:28 +01:00
|
|
|
Register a metrics payload with a timed bucket.
|
2017-06-28 10:17:48 +02:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"appName": "appName",
|
|
|
|
"instanceId": "instanceId",
|
|
|
|
"bucket": {
|
|
|
|
"start": "2016-11-03T07:16:43.572Z",
|
|
|
|
"stop": "2016-11-03T07:16:53.572Z",
|
|
|
|
"toggles": {
|
|
|
|
"toggle-name-1": {
|
|
|
|
"yes": 123,
|
|
|
|
"no": 321
|
|
|
|
},
|
|
|
|
"toggle-name-2": {
|
|
|
|
"yes": 111,
|
|
|
|
"no": 0
|
|
|
|
}
|
2017-12-18 14:20:45 +01:00
|
|
|
}
|
2018-11-22 11:20:28 +01:00
|
|
|
}
|
2017-06-28 10:17:48 +02:00
|
|
|
}
|
|
|
|
```
|