cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to find anomaly-detection-metrics REST API or documentation?

naveen
Participant
I am using Monaco CLI 1.4.0 to download and deploy configuration.

In download configuration there is a folder called anomaly-detection-metrics and under which there is HighGCtime.json which contains below configuration

 

 

{
    "aggregationType": "AVG",
    "alertCondition": "ABOVE",
    "dealertingSamples": 5,
    "description": "The .NET GC time of {severity} is {alert_condition} the threshold of {threshold}",
    "disabledReason": "NONE",
    "enabled": false,
    "eventType": "PERFORMANCE",
    "metricId": "builtin:tech.dotnet.perfmon.%TimeInGC",
    "monitoringStrategy": {
        "alertCondition": "ABOVE",
        "alertingOnMissingData": false,
        "dealertingSamples": 5,
        "samples": 5,
        "threshold": 0,
        "type": "STATIC_THRESHOLD",
        "unit": "PERCENT",
        "violatingSamples": 3
    },
    "name": "{{.name}}",
    "samples": 5,
    "severity": "PERFORMANCE",
    "threshold": 0,
    "unit": "PERCENT",
    "violatingSamples": 3,
    "warningReason": "NONE"
}

 

 

 

But I am unable to get any documentation regarding this or REST API endpoint. Could anyone please help me understand about the above parameters used and what are the possible values.
3 REPLIES 3

Radu
Dynatrace Pro
Dynatrace Pro

Hi naveen,

 

This API has the definitions of all custom events for alerting in Dynatrace. These could be alerting events that were deployed as part of extensions (whether built-in or custom) or that were created from the settings page.

The documentation for the API can be found at this link.

 

You can actually explore these entries in the UI too, in the following places:

  • Settings > Anomaly Detection > Custom events for alerting
    • Shows all custom created alerts
  • Settings > Anomaly Detection > Extension events
    • Shows all alerts coming from deployed extensions - both the Dynatrace built-in ones and any custom extensions
      Radu_0-1618214300323.png

       

 

 

Best regards,

Radu

Ramesh_Nadar
Advisor

Hello @naveen 

Adding to what @Radu mentioned you can get these details from Dynatrace REST API.

  1. Generate Token from Settings--> Integration --> Dynatrace API --> Generate Token for Dynatrace Environment API v2 and assign scope.
  2. Post token generation go to Dynatrace Environment API v2 and Authorize the token. Then select "Metrics". Under Metrics you will see below example output which may help you to further dig into it.

api.png

 

Cheers!

R

naveen
Participant

Hi Thanks for the information.