Log monitoring metrics API - GET all metrics

Lists all calculated Log Monitoring metrics.

The request produces an application/json payload.

Early Adopter

This request is an Early Adopter release and may be changed in non-compatible way.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/calculatedMetrics/log
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/calculatedMetrics/log

Authentication

To execute this request, you need the Read configuration (ReadConfig) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

Code Description
200

Success

400

Failed. See the response body for details

Response body

The StubList object

An ordered list of short representations of Dynatrace entities.

Element Type Description
values EntityShortRepresentation[]

An ordered list of short representations of Dynatrace entities.

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

Element Type Description
id string

The ID of the Dynatrace entity.

name string

The name of the Dynatrace entity.

description string

A short description of the Dynatrace entity.

Example

In this example, the request lists all custom log metrics in the mySampleEnv environment.

The API token is passed in the Authorization header.

The result is truncated to three entries.

Curl

curl -X GET \
  https://mySampleEnv.live.dynatrace.com/api/config/v1/calculatedMetrics/log \
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/config/v1/calculatedMetrics/log

Response body

{
  "values": [
    {
      "id": "calc:log.mainappwarnings",
      "name": "Main app warnings"
    },
    {
      "id": "calc:log.samplemetric",
      "name": "Sample metric"
    },
    {
      "id": "calc:log.hosterrors",
      "name": "Host errors"
    }
  ]
}

Response code

200