Gets the configuration of anomaly detection for applications.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/applications |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/anomalyDetection/applications |
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
The request doesn't provide any configurable parameters.
Code | Type | Description |
---|---|---|
200 | Application | Success |
ApplicationAnomalyDetectionConfig
objectThe configuration of anomaly detection for applications.
Element | Type | Description |
---|---|---|
failureRateIncrease | Failure | Configuration of failure rate increase detection. |
metadata | Configuration | Metadata useful for debugging |
responseTimeDegradation | Response | Configuration of response time degradation detection. |
trafficDrop | Traffic | The configuration of traffic drops detection. |
trafficSpike | Traffic | The configuration of traffic spikes detection. |
FailureRateIncreaseDetectionConfig
objectConfiguration of failure rate increase detection.
Element | Type | Description |
---|---|---|
automaticDetection | Failure | Parameters of failure rate increase auto-detection. Required if detectionMode is The absolute and relative thresholds both must exceed to trigger an alert. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + 1% = 2.5% Relative: 1.5% + 1.5% * 50% = 2.25% |
detectionMode | string | How to detect failure rate increase: automatically, or based on fixed thresholds, or do not detect.
|
thresholds | Failure | Fixed thresholds for failure rate increase detection. Required if detectionMode is |
FailureRateIncreaseAutodetectionConfig
objectParameters of failure rate increase auto-detection. Required if detectionMode is DETECT_AUTOMATICALLY
. Not applicable otherwise.
The absolute and relative thresholds both must exceed to trigger an alert.
Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + 1% = 2.5% Relative: 1.5% + 1.5% * 50% = 2.25%
Element | Type | Description |
---|---|---|
failingServiceCallPercentageIncreaseAbsolute | integer | Absolute increase of failing service calls to trigger an alert, %. |
failingServiceCallPercentageIncreaseRelative | integer | Relative increase of failing service calls to trigger an alert, %. |
FailureRateIncreaseThresholdConfig
objectFixed thresholds for failure rate increase detection.
Required if detectionMode is DETECT_USING_FIXED_THRESHOLDS
. Not applicable otherwise.
Element | Type | Description |
---|---|---|
sensitivity | string | Sensitivity of the threshold. With With
|
threshold | integer | Failure rate during any 5-minute period to trigger an alert, %. |
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. |
ResponseTimeDegradationDetectionConfig
objectConfiguration of response time degradation detection.
Element | Type | Description |
---|---|---|
automaticDetection | Response | Parameters of the response time degradation auto-detection. Required if the detectionMode is Violation of any criterion triggers an alert. |
detectionMode | string | How to detect response time degradation: automatically, or based on fixed thresholds, or do not detect.
|
thresholds | Response | Fixed thresholds for response time degradation detection. Required if detectionMode is |
ResponseTimeDegradationAutodetectionConfig
objectParameters of the response time degradation auto-detection. Required if the detectionMode is DETECT_AUTOMATICALLY
. Not applicable otherwise.
Violation of any criterion triggers an alert.
Element | Type | Description |
---|---|---|
loadThreshold | string | Minimal service load to detect response time degradation. Response time degradation of services with smaller load won't trigger alerts.
|
responseTimeDegradationMilliseconds | integer | Alert if the response time degrades beyond X milliseconds. |
responseTimeDegradationPercent | integer | Alert if the response time degrades beyond X %. |
slowestResponseTimeDegradationMilliseconds | integer | Alert if the response time of the slowest 10% degrades beyond X milliseconds. |
slowestResponseTimeDegradationPercent | integer | Alert if the response time of the slowest 10% degrades beyond X %. |
ResponseTimeDegradationThresholdConfig
objectFixed thresholds for response time degradation detection.
Required if detectionMode is DETECT_USING_FIXED_THRESHOLDS
. Not applicable otherwise.
Element | Type | Description |
---|---|---|
loadThreshold | string | Minimal service load to detect response time degradation. Response time degradation of services with smaller load won't trigger alerts.
|
responseTimeThresholdMilliseconds | integer | Response time during any 5-minute period to trigger an alert, in milliseconds. |
sensitivity | string | Sensitivity of the threshold. With With
|
slowestResponseTimeThresholdMilliseconds | integer | Response time of the 10% slowest during any 5-minute period to trigger an alert, in milliseconds. |
TrafficDropDetectionConfig
objectThe configuration of traffic drops detection.
Element | Type | Description |
---|---|---|
enabled | boolean | The detection is enabled ( |
trafficDropPercent | integer | Alert if the observed traffic is less than X % of the expected value. |
TrafficSpikeDetectionConfig
objectThe configuration of traffic spikes detection.
Element | Type | Description |
---|---|---|
enabled | boolean | The detection is enabled ( |
trafficSpikePercent | integer | Alert if the observed traffic is more than X % of the expected value. |
{"failureRateIncrease": {"detectionMode": "DETECT_USING_FIXED_THRESHOLDS","thresholds": {"sensitivity": "LOW","threshold": 10}},"responseTimeDegradation": {"automaticDetection": {"loadThreshold": "ONE_REQUEST_PER_MINUTE","responseTimeDegradationMilliseconds": 250,"responseTimeDegradationPercent": 90,"slowestResponseTimeDegradationMilliseconds": 500,"slowestResponseTimeDegradationPercent": 200},"detectionMode": "DETECT_AUTOMATICALLY"},"trafficDrop": {"enabled": true,"trafficDropPercent": 95},"trafficSpike": {"enabled": false}}
In this example, the request lists the current configuration of anomaly detection for applications.
The API token is passed in the Authorization header.
The configuration has the following settings:
curl -X GET \https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/applications \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/applications
{"metadata": {"clusterVersion": "1.163.0.20190130-210004","configurationVersions": [2]},"responseTimeDegradation": {"detectionMode": "DETECT_AUTOMATICALLY","automaticDetection": {"responseTimeDegradationMilliseconds": 100,"responseTimeDegradationPercent": 50,"slowestResponseTimeDegradationMilliseconds": 1000,"slowestResponseTimeDegradationPercent": 10,"loadThreshold": "TEN_REQUESTS_PER_MINUTE"}},"trafficDrop": {"enabled": true,"trafficDropPercent": 50},"trafficSpike": {"enabled": false},"failureRateIncrease": {"detectionMode": "DETECT_AUTOMATICALLY","automaticDetection": {"failingServiceCallPercentageIncreaseAbsolute": 5,"failingServiceCallPercentageIncreaseRelative": 50}}}
200