• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Metric query

Settings 2.0 - Metric query schema

Metric query (builtin:metric.query)

A stored metric query allows you to calculate the metrics' values through a metric expression.

Schema IDSchema groupsScope
builtin:metric.query
  • group:metrics
metric
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:metric.query
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:metric.query
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:metric.query

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
metricSelectorQuerytext-required