mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
e7642c02aa
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. |
||
---|---|---|
.. | ||
lib | ||
mailtemplates | ||
migrations | ||
test | ||
migrator.ts | ||
server-dev.ts | ||
server.ts |