Mobile app metrics API - GET a metric

Gets the descriptor of the specified calculated mobile app metric.

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/calculatedMetrics/mobile/{metricKey}
Environment ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/calculatedMetrics/mobile/{metricKey}

Authentication

To execute this request, you need an access token with ReadConfig scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

Parameter
Type
Description
In
Required
metricKey
string

The key of the required metric.

path
required

Response

Response codes

Code
Type
Description

Response body objects

The CalculatedMobileMetric object

Definition of the calculated metric for mobile or custom app.

Element
Type
Description
applicationIdentifier
string

The Dynatrace entity ID of the application to which the metric belongs.

dimensions

A list of metric dimensions.

enabled
boolean

The metric is enabled (true) or disabled (false).

metricKey
string

The unique key of the metric.

The key must have the calc:apps prefix.

metricType
string

The type of the metric.

  • REPORTED_ERROR_COUNT
  • USER_ACTION_DURATION
  • WEB_REQUEST_COUNT
  • WEB_REQUEST_ERROR_COUNT
name
string

The name of the metric, displayed in the UI.

The CalculatedMobileMetricDimension object

Dimension of the calculated mobile metric.

Element
Type
Description
dimension
string

The dimension of the metric.

  • APP_VERSION
  • DEVICE
  • ERROR_CONTEXT
  • GEOLOCATION
  • MANUFACTURER
  • OS
topX
integer

The number of top values to be calculated.

The CalculatedMobileMetricUserActionFilter object

User actions filter of the calculated metric for mobile or custom app.

Element
Type
Description
actionDurationFromMilliseconds
integer

Only actions with a duration more than or equal to this value (in milliseconds) are included in the metric calculation.

actionDurationToMilliseconds
integer

Only actions with a duration less than or equal to this value (in milliseconds) are included in the metric calculation.

apdex
string

Only actions with the specified Apdex score are included in the metric calculation.

  • Frustrated
  • Satisfied
  • Tolerating
  • Unknown
appVersion
string

Only actions coming from this app version are included in the metric calculation.

The EQUALS operator applies.

carrier
string

Only actions coming from this carrier type are included in the metric calculation.

city
string

Only actions of users from this city are included in the metric calculation.

Specify geolocation ID here.

Response body JSON model

{
"applicationIdentifier": "MOBILE_APPLICATION-1234",
"dimensions": [
{
"dimension": "GEOLOCATION",
"topX": 20
}
],
"enabled": true,
"metricKey": "calc:apps.mobile.mymetric",
"metricType": "USER_ACTION_DURATION",
"name": "MyMetric",
"userActionFilter": {
"country": "GEOLOCATION-1234",
"hasHttpError": true,
"osVersion": "OS-1234"
}
}