This API is deprecated. Use the Settings API instead. Look for the Problem alerting profiles (builtin:alerting.profile
) schema.
Gets the parameters of the specified alerting profile.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/alertingProfiles/{id} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/alertingProfiles/{id} |
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the required alerting profile. | path | required |
Code | Type | Description |
---|---|---|
200 | Alerting | Success |
AlertingProfile
objectConfiguration of an alerting profile.
Element | Type | Description |
---|---|---|
displayName | string | The name of the alerting profile, displayed in the UI. |
eventTypeFilters | Alerting | The list of event filters. For all filters that are negated inside of these event filters, that is all "Predefined" as well as "Custom" (Title and/or Description) ones the AND logic applies. For all non-negated ones the OR logic applies. Between these two groups, negated and non-negated, the AND logic applies. If you specify both severity rule and event filter, the AND logic applies. |
id | string | The ID of the alerting profile. |
metadata | Configuration | Metadata useful for debugging |
mzId | string | The ID of the management zone to which the alerting profile applies. |
rules | Alerting | A list of severity rules. The rules are evaluated from top to bottom. The first matching rule applies and further evaluation stops. If you specify both severity rule and event filter, the AND logic applies. |
AlertingEventTypeFilter
objectConfiguration of the event filter for the alerting profile.
You have two mutually exclusive options:
Element | Type | Description |
---|---|---|
customEventFilter | Alerting | Configuration of a custom event filter. Filters custom events by title or description. If both specified, the AND logic applies. |
predefinedEventFilter | Alerting | Configuration of a predefined event filter. |
AlertingCustomEventFilter
objectConfiguration of a custom event filter.
Filters custom events by title or description. If both specified, the AND logic applies.
Element | Type | Description |
---|---|---|
customDescriptionFilter | Alerting | Configuration of a matching filter. |
customTitleFilter | Alerting | Configuration of a matching filter. |
AlertingCustomTextFilter
objectConfiguration of a matching filter.
Element | Type | Description |
---|---|---|
caseInsensitive | boolean | The condition is case sensitive ( If not set, then |
enabled | boolean | The filter is enabled ( |
negate | boolean | Reverses the comparison operator. For example it turns the begins with into does not begin with. |
operator | string | Operator of the comparison. You can reverse it by setting negate to
|
value | string | The value to compare to. |
AlertingPredefinedEventFilter
objectConfiguration of a predefined event filter.
Element | Type | Description |
---|---|---|
eventType | string | The type of the predefined event.
|
negate | boolean | The alert triggers when the problem of specified severity arises while the specified event is happening ( For example, if you chose the Slowdown ( Consider the following use case as an example. The Slowdown (
|
ConfigurationMetadata
objectMetadata useful for debugging
Element | Type | Description |
---|---|---|
clusterVersion | string | Dynatrace version. |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
AlertingProfileSeverityRule
objectA severity rule of the alerting profile.
A severity rule defines the level of severity that must be met before an alert is sent our for a detected problem. Additionally it restricts the alerting to certain monitored entities.
Element | Type | Description |
---|---|---|
delayInMinutes | integer | Send a notification if a problem remains open longer than X minutes. |
severityLevel | string | The severity level to trigger the alert.
|
tagFilter | Alerting | Configuration of the tag filtering of the alerting profile. |
AlertingProfileTagFilter
objectConfiguration of the tag filtering of the alerting profile.
Element | Type | Description |
---|---|---|
includeMode | string | The filtering mode:
|
tagFilters | Tag | A list of required tags. |
TagFilter
objectA tag-based filter of monitored entities.
Element | Type | Description |
---|---|---|
context | string | The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the
|
key | string | The key of the tag. Custom tags have the tag value here. |
value | string | The value of the tag. Not applicable to custom tags. |
{"displayName": "sampleAlertingProfile","eventTypeFilters": [{"predefinedEventFilter": {"eventType": "OSI_HIGH_CPU","negate": true}},{"customEventFilter": {"customDescriptionFilter": {"caseInsensitive": false,"enabled": false,"negate": true,"operator": "CONTAINS","value": "filterValue"},"customTitleFilter": {"caseInsensitive": true,"enabled": true,"negate": false,"operator": "EQUALS","value": "filterValue"}}}],"id": "12345678-abcd-1234-abcd-1234567890ab","mzId": "1","rules": [{"delayInMinutes": 60,"severityLevel": "AVAILABILITY","tagFilter": {"includeMode": "INCLUDE_ALL","tagFilters": [{"context": "AWS","key": "tagKey","value": "tagValue"}]}}]}
In this example, the request lists the parameters of the Transaction slowdown alerting profile.
The API token is passed in the Authorization header.
The profile has the following parameters:
curl -X GET \https://mySampleEnv.live.dynatrace.com/api/config/v1/alertingProfiles/93ac79a3-8cba-4be5-af44-50673b5e77f2 \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/config/v1/alertingProfiles/93ac79a3-8cba-4be5-af44-50673b5e77f2
{"metadata": {"currentConfigurationVersions": ["7.0.0"],"configurationVersions": [],"clusterVersion": "1.218.0.20210429-093737"},"id": "19e50c27-8aed-408f-ad44-d6a1bf856f49","displayName": "Transaction slowdown","rules": [{"severityLevel": "AVAILABILITY","tagFilter": {"includeMode": "INCLUDE_ANY","tagFilters": [{"context": "CONTEXTLESS","key": "/rest","value": null},{"context": "CONTEXTLESS","key": "/rest/configuration","value": null}]},"delayInMinutes": 1}],"managementZoneId": 9130632296508575249,"mzId": "9130632296508575249","eventTypeFilters": [{"predefinedEventFilter": {"eventType": "APPLICATION_UNEXPECTED_HIGH_LOAD","negate": true}},{"predefinedEventFilter": {"eventType": "SYNTHETIC_GLOBAL_OUTAGE","negate": false}}]}
200