latestOpenAPI 3.1.02026-08-221163801019.2 KB

f0f28319e448

Metric

Create a metric

Create a metric.

Permissions

  • Metric:CreateMetric for the metric to create.
post/v1/{organization}/metric/

Path parameters

organizationstring required

Headers

x-mongo-cluster-namestring nullable

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

Sec-WebSocket-Protocolstring[]

Request body

namestring required
applied_to_servicesstring[] required

The services that the metric is applied to.

additional_notesstring required
tagsobject required

The tags of the metric.

Response

Succeeded

idstring required

The ID of the created metric.