1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/docs/api/client/metrics-api.md
Ivar Conradi Østhus 9d948b68c4 Update metrics-api.md
2020-02-20 08:34:05 +01:00

588 B

This document describes the client metrics endpoints

Send metrics

POST http://unleash.host.com/api/client/metrics

Register a metrics payload with a timed bucket.

{
    "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
            }
        }
    }
}