Metrics API - GET metric descriptors

Gets the parameters of the specified metrics. You can select up to 10 metrics.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v2/metrics/{metricId}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/{metricId}

Parameters

Parameter Type Description In Required
metricId string

The key of the required metric.

You can set additional transformation operators, separated by a colon (:). See the Metrics API - selector transformations help page for additional information on available result transformations.

The length of the string is limited to 1,000 characters.

path required

Response format

The MetricDescriptor object

The descriptor of a metric.

Element Type Description
metricId string

The fully qualified key of the metric.

If a transformation has been used it is reflected in the metric key.

entityType string[]

List of admissible primary entity types for this metric. Can be used for the type predicate in the entitySelector.

aggregationTypes string[]

The list of allowed aggregations for this metric.

defaultAggregation MetricDefaultAggregation
dimensionDefinitions MetricDimensionDefinition[]

The fine metric division (for example, process group and process ID for some process-related metric).

description string

A short description of the metric.

transformations string[]

Transform operators that could be appended to the current transformation list. Must be enabled with the "fields" parameter on /metrics and is always present on /metrics/{metricId}.

unit string

The unit of the metric.

displayName string

The name of the metric in the user interface.

The MetricDimensionDefinition object

The dimension of a metric.

Element Type Description
index integer

The unique 0-based index of the dimension.

Appending transformations such as :names or :parents may change the indexes of dimensions.

name string

The name of the dimension.

It must be unique within the metric.

type string

The type of the dimension.

The MetricDefaultAggregation object

The default aggregation of a metric.

Element Type Description
parameter number

The percentile to be delivered. Valid values are between 0 and 100.

Applicable only to the percentile aggregation type.

type string

The type of default aggregation.