Get a metric definition
GET
Returns a single metric definition by id. Requires an API key with the read
action scoped to the metric.
Loading code example
Loading code example
Authorizations
apiKeystringheaderrequired
API key passed in the header.
Path Parameters
metricIdstringrequired
The metric id.
Response
application/json
The metric definition.
metricIdstringStable identifier for the metric.
namestringProgrammatic name of the metric.
displayNamestringHuman-readable name of the metric.
descriptionstringDescription of what the metric measures.
unitLabelstringUnit label for the metric's values.
dataTypestringThe metric's data type.
defaultAggregationstringDefault aggregation used when binning this metric.
tagsarray<string>Free-form tags applied to the metric.
enumValuesnull | arrayAllowed enumerated values, when the metric is enum-typed.
isDeletedbooleanWhether the metric has been soft-deleted.
createdAtstring<date-time>Timestamp (UTC) when the metric was created.
updatedAtnull | string<date-time>Timestamp (UTC) when the metric was last updated.
createdBystringIdentifier of the actor that created the metric.
updatedBynull | stringIdentifier of the actor that last updated the metric.