Process groups anomaly detection API - GET configuration
Gets the configuration of anomaly detection for the specified process group.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/anomalyDetection/processGroups/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/processGroups/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/anomalyDetection/processGroups/{id} |
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 |
---|---|---|---|---|
id | string | The Dynatrace entity ID of the required process group. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | AnomalyDetectionPG | Success |
400 | ErrorEnvelope | Failed. The input is invalid. |
404 | ErrorEnvelope | Process group doesn't exist |
Response body objects
The AnomalyDetectionPG
object
Configuration of anomaly detection for the process group.
Element | Type | Description |
---|---|---|
availabilityMonitoring | AvailabilityMonitoringPG | Configuration of the availability monitoring for the process group. |
The AvailabilityMonitoringPG
object
Configuration of the availability monitoring for the process group.
Element | Type | Description |
---|---|---|
method | string | How to monitor the availability of the process group:
|
minimumThreshold | integer | Alert if the number of active processes in the group is lower than this value. |
Response body JSON model
1{2 "availabilityMonitoring": {3 "method": "MINIMUM_THRESHOLD",4 "minimumThreshold": 55 }6}
Example
In this example, the request gets the configuration of anomaly detection for the process group with the ID of PROCESS_GROUP-52B42D0616D556F5.
The API token is passed in the Authorization header.
The configuration has the following settings:
Curl
1curl -L -X GET 'https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/processGroups/PROCESS_GROUP-52B42D0616D556F5' \2-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/processGroups/PROCESS_GROUP-52B42D0616D556F5
Response body
1{2 "availabilityMonitoring": {3 "method": "MINIMUM_THRESHOLD",4 "minimumThreshold": 105 }6}
Response code
200