Create a metric
POST/metrics
Creates a metric by name for the current tenant. Without an origin the metric starts as UNKNOWN and takes the origin of the first write that knows it. The origins the platform assigns itself (INTERNAL, FORM, VIRTUAL_SIGNAL) are refused with 400. Answers 409 when a metric of that name already exists in the tenant.
Request
Responses
- 200
- 400
- 401
- 403
- 409
- default
OK
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Conflict — an object with the same unique key already exists.
the default error response