mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
This adds a bulk endpoint under `/api/client/metrics`. Accessible under `/api/client/metrics/bulk`. This allows us to piggyback on the need for an API user with access. This PR mostly copies the behaviour from our `/edge/metrics` endpoint, but it filters metrics to only include the environment that the token has access to. So a client token that has access to the `production` will not be allowed to report metrics for the `development` environment. More importantly, a `development` token will not be allowed to post metrics for the `production` environment. |
||
---|---|---|
.. | ||
last-seen | ||
instance-service.test.ts | ||
instance-service.ts | ||
metrics-service-v2.test.ts | ||
metrics-service-v2.ts | ||
models.ts | ||
schema.test.ts | ||
schema.ts |