Creates a new calculated mobile app metric.
The request consumes and produces an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/calculatedMetrics/mobile |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/calculatedMetrics/mobile |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Calculated | The JSON body of the request. Contains the definition of the new calculated metric for mobile or custom app. | body | optional |
CalculatedMobileMetric objectDefinition of the calculated metric for mobile or custom app.
| Element | Type | Description | Required |
|---|---|---|---|
| applicationIdentifier | string | The Dynatrace entity ID of the application to which the metric belongs. | required |
| dimensions | Calculated | A list of metric dimensions. | optional |
| enabled | boolean | The metric is enabled ( | required |
| metricKey | string | The unique key of the metric. The key must have the | required |
| metricType | string | The type of the metric.
| required |
| name | string | The name of the metric, displayed in the UI. | required |
| userActionFilter | Calculated | User actions filter of the calculated metric for mobile or custom app. | optional |
CalculatedMobileMetricDimension objectDimension of the calculated mobile metric.
| Element | Type | Description | Required |
|---|---|---|---|
| dimension | string | The dimension of the metric.
| required |
| topX | integer | The number of top values to be calculated. | required |
CalculatedMobileMetricUserActionFilter objectUser actions filter of the calculated metric for mobile or custom app.
| Element | Type | Description | Required |
|---|---|---|---|
| actionDurationFromMilliseconds | integer | Only actions with a duration more than or equal to this value (in milliseconds) are included in the metric calculation. | optional |
| actionDurationToMilliseconds | integer | Only actions with a duration less than or equal to this value (in milliseconds) are included in the metric calculation. | optional |
| apdex | string | Only actions with the specified Apdex score are included in the metric calculation.
| optional |
| appVersion | string | Only actions coming from this app version are included in the metric calculation. The EQUALS operator applies. | optional |
| carrier | string | Only actions coming from this carrier type are included in the metric calculation. | optional |
| city | string | Only actions of users from this city are included in the metric calculation. Specify geolocation ID here. | optional |
| connectionType | string | Only actions coming from this connection type are included in the metric calculation.
| optional |
| continent | string | Only actions of users from this continent are included in the metric calculation. Specify geolocation ID here. | optional |
| country | string | Only actions of users from this country are included in the metric calculation. Specify geolocation ID here. | optional |
| device | string | Only actions coming from this app version are included in the metric calculation. The EQUALS operator applies. | optional |
| hasHttpError | boolean | The HTTP error status of the actions to be included in the metric calculation:
| optional |
| hasReportedError | boolean | The error status of the actions to be included in the metric calculation:
| optional |
| isp | string | Only actions coming from this internet service provider are included in the metric calculation. The EQUALS operator applies. | optional |
| manufacturer | string | Only actions coming from devices of this manufacturer are included in the metric calculation. The EQUALS operator applies. | optional |
| networkTechnology | string | Filter by network technology | optional |
| orientation | string | Only actions coming from devices with this display orientation are included in the metric calculation.
| optional |
| osFamily | string | Only actions coming from this OS family are included in the metric calculation. Specify the OS ID here. | optional |
| osVersion | string | Only actions coming from this OS version are included in the metric calculation. Specify the OS ID here. | optional |
| region | string | Only actions of users from this region are included in the metric calculation. Specify geolocation ID here. | optional |
| resolution | string | Only actions coming from devices with this display resolution are included in the metric calculation.
| optional |
| userActionName | string | Only actions with this name are included in the metric calculation. The EQUALS operator applies. | optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"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"}}
| Code | Type | Description |
|---|---|---|
| 201 | Entity | Success. The calculated mobile metric has been created. Response contains its key and name. |
| 400 | Error | Failed. The input is invalid |
EntityShortRepresentation objectThe short representation of a Dynatrace entity.
| Element | Type | Description |
|---|---|---|
| description | string | A short description of the Dynatrace entity. |
| id | string | The ID of the Dynatrace entity. |
| name | string | The name of the Dynatrace entity. |
{"description": "Dynatrace entity for the REST API example","id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a","name": "Dynatrace entity"}
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/calculatedMetrics/mobile/validator |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/calculatedMetrics/mobile/validator |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Code | Type | Description |
|---|---|---|
| 204 | - | Validated. The submitted metric is valid. The response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |