Chilkat Online Tools

VB6 / Datadog API Collection / Get a monitor's details

Back to Collection Items

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim http As New ChilkatHttp
Dim success As Long

Dim queryParams As New ChilkatJsonObject
success = queryParams.UpdateString("group_states","tempor Ut sed velit")
success = queryParams.UpdateString("with_downtimes","true")

http.SetRequestHeader "Accept","application/json"

Dim resp As ChilkatHttpResponse
Set resp = http.QuickRequestParams("GET","https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id",queryParams)
If (http.LastMethodSuccess = 0) Then
    Debug.Print http.LastErrorText
    Exit Sub
End If

Dim sbResponseBody As New ChilkatStringBuilder
success = resp.GetBodySb(sbResponseBody)

Dim jResp As New ChilkatJsonObject
success = jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = 0

Debug.Print "Response Body:"
Debug.Print jResp.Emit()

Dim respStatusCode As Long
respStatusCode = resp.StatusCode
Debug.Print "Response Status Code = " & respStatusCode
If (respStatusCode >= 400) Then
    Debug.Print "Response Header:"
    Debug.Print resp.Header
    Debug.Print "Failed."

    Exit Sub
End If

' Sample JSON response:
' (Sample code for parsing the JSON response is shown below)

' {
'   "type": "query alert",
'   "query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100",
'   "created": "1989-12-01T14:28:43.831Z",
'   "creator": {
'     "email": "officia sunt",
'     "handle": "pariatur",
'     "name": "aute do"
'   },
'   "deleted": "2020-10-30T20:46:24.520Z",
'   "id": -50675854,
'   "matching_downtimes": [
'     {
'       "id": 1625,
'       "end": 1412792983,
'       "scope": [
'         "env:staging"
'       ],
'       "start": 1412792983
'     },
'     {
'       "id": 1625,
'       "end": 1412792983,
'       "scope": [
'         "env:staging"
'       ],
'       "start": 1412792983
'     }
'   ],
'   "message": "ullamco incididunt cupidatat",
'   "modified": "1981-03-27T05:04:03.098Z",
'   "multi": false,
'   "name": "My monitor",
'   "options": {
'     "aggregation": {
'       "group_by": "host",
'       "metric": "metrics.name",
'       "type": "count"
'     },
'     "device_ids": [
'       "mobile_small",
'       "chrome.tablet"
'     ],
'     "enable_logs_sample": false,
'     "enable_samples": false,
'     "escalation_message": "none",
'     "evaluation_delay": -52819274,
'     "group_retention_duration": "dolor Lorem qui",
'     "groupby_simple_monitor": false,
'     "include_tags": true,
'     "locked": false,
'     "min_failure_duration": 0,
'     "min_location_failed": 1,
'     "new_group_delay": -94315945,
'     "new_host_delay": 300,
'     "no_data_timeframe": -86360342,
'     "notification_preset_name": "show_all",
'     "notify_audit": false,
'     "notify_by": [
'       "labore dolore",
'       "deserunt commodo consectetur"
'     ],
'     "notify_no_data": false,
'     "on_missing_data": "resolve",
'     "renotify_interval": null,
'     "renotify_occurrences": 56355858,
'     "renotify_statuses": [
'       "warn",
'       "no data"
'     ],
'     "require_full_window": false,
'     "scheduling_options": {
'       "evaluation_window": {
'         "day_starts": "04:00",
'         "hour_starts": 0,
'         "month_starts": 1
'       }
'     },
'     "silenced": {
'       "non_6f_": 77287100
'     },
'     "synthetics_check_id": "culpa in laborum irure",
'     "threshold_windows": {
'       "recovery_window": "culpa cupidatat Lorem ut",
'       "trigger_window": "fugiat officia mollit esse quis"
'     },
'     "thresholds": {
'       "critical": -44507487.0891542,
'       "critical_recovery": 94365870.17342958,
'       "ok": 26645340.31156695,
'       "unknown": -32772943.396166816,
'       "warning": 75330874.10211122,
'       "warning_recovery": 30665996.226613894
'     },
'     "timeout_h": null,
'     "variables": [
'       {
'         "data_source": "rum",
'         "compute": {
'           "aggregation": "avg",
'           "interval": 60000,
'           "metric": "@duration"
'         },
'         "name": "query_errors",
'         "group_by": [
'           {
'             "facet": "status",
'             "limit": 10,
'             "sort": {
'               "aggregation": "avg",
'               "metric": "minim tempor i",
'               "order": "desc"
'             }
'           },
'           {
'             "facet": "status",
'             "limit": 10,
'             "sort": {
'               "aggregation": "avg",
'               "metric": "Ut fugiat officia",
'               "order": "desc"
'             }
'           }
'         ],
'         "indexes": [
'           "days-3",
'           "days-7"
'         ],
'         "search": {
'           "query": "service:query"
'         }
'       },
'       {
'         "data_source": "rum",
'         "compute": {
'           "aggregation": "avg",
'           "interval": 60000,
'           "metric": "@duration"
'         },
'         "name": "query_errors",
'         "group_by": [
'           {
'             "facet": "status",
'             "limit": 10,
'             "sort": {
'               "aggregation": "avg",
'               "metric": "do velit",
'               "order": "desc"
'             }
'           },
'           {
'             "facet": "status",
'             "limit": 10,
'             "sort": {
'               "aggregation": "avg",
'               "metric": "amet proident anim in",
'               "order": "desc"
'             }
'           }
'         ],
'         "indexes": [
'           "days-3",
'           "days-7"
'         ],
'         "search": {
'           "query": "service:query"
'         }
'       }
'     ]
'   },
'   "overall_state": "Warn",
'   "priority": 1,
'   "restricted_roles": [
'     "enim qui cillum est",
'     "quis ut"
'   ],
'   "state": {
'     "groups": {
'       "Lorem_1": {
'         "last_nodata_ts": -12653992,
'         "last_notified_ts": -66141067,
'         "last_resolved_ts": 5643925,
'         "last_triggered_ts": -6121593,
'         "name": "dolore nulla i",
'         "status": "OK"
'       },
'       "nisi_c43": {
'         "last_nodata_ts": -66061060,
'         "last_notified_ts": -86988012,
'         "last_resolved_ts": -39919633,
'         "last_triggered_ts": 13467862,
'         "name": "Ut fugiat eiusmod anim",
'         "status": "Ignored"
'       },
'       "minim_c": {
'         "last_nodata_ts": 6509669,
'         "last_notified_ts": 39348490,
'         "last_resolved_ts": 13221088,
'         "last_triggered_ts": 21889420,
'         "name": "in velit Duis",
'         "status": "Alert"
'       }
'     }
'   },
'   "tags": [
'     "ex tempor",
'     "enim veniam dolore"
'   ]
' }

' Sample code for parsing the JSON response...
' Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

Dim v_end As Long
Dim start As Long
Dim j As Long
Dim count_j As Long
Dim strVal As String
Dim data_source As String
Dim Aggregation As String
Dim Interval As Long
Dim computeMetric As String
Dim Query As String
Dim facet As String
Dim limit As Long
Dim sortAggregation As String
Dim sortMetric As String
Dim Order As String

Dim v_type As String
v_type = jResp.StringOf("type")
Dim query As String
query = jResp.StringOf("query")
Dim created As String
created = jResp.StringOf("created")
Dim v_Email As String
v_Email = jResp.StringOf("creator.email")
Dim Handle As String
Handle = jResp.StringOf("creator.handle")
Dim Name As String
Name = jResp.StringOf("creator.name")
Dim deleted As String
deleted = jResp.StringOf("deleted")
Dim id As Long
id = jResp.IntOf("id")
Dim message As String
message = jResp.StringOf("message")
Dim modified As String
modified = jResp.StringOf("modified")
Dim multi As Long
multi = jResp.BoolOf("multi")
Dim name As String
name = jResp.StringOf("name")
Dim Group_by As String
Group_by = jResp.StringOf("options.aggregation.group_by")
Dim Metric As String
Metric = jResp.StringOf("options.aggregation.metric")
Dim v_Type As String
v_Type = jResp.StringOf("options.aggregation.type")
Dim Enable_logs_sample As Long
Enable_logs_sample = jResp.BoolOf("options.enable_logs_sample")
Dim Enable_samples As Long
Enable_samples = jResp.BoolOf("options.enable_samples")
Dim Escalation_message As String
Escalation_message = jResp.StringOf("options.escalation_message")
Dim Evaluation_delay As Long
Evaluation_delay = jResp.IntOf("options.evaluation_delay")
Dim Group_retention_duration As String
Group_retention_duration = jResp.StringOf("options.group_retention_duration")
Dim Groupby_simple_monitor As Long
Groupby_simple_monitor = jResp.BoolOf("options.groupby_simple_monitor")
Dim Include_tags As Long
Include_tags = jResp.BoolOf("options.include_tags")
Dim Locked As Long
Locked = jResp.BoolOf("options.locked")
Dim Min_failure_duration As Long
Min_failure_duration = jResp.IntOf("options.min_failure_duration")
Dim Min_location_failed As Long
Min_location_failed = jResp.IntOf("options.min_location_failed")
Dim New_group_delay As Long
New_group_delay = jResp.IntOf("options.new_group_delay")
Dim New_host_delay As Long
New_host_delay = jResp.IntOf("options.new_host_delay")
Dim No_data_timeframe As Long
No_data_timeframe = jResp.IntOf("options.no_data_timeframe")
Dim Notification_preset_name As String
Notification_preset_name = jResp.StringOf("options.notification_preset_name")
Dim Notify_audit As Long
Notify_audit = jResp.BoolOf("options.notify_audit")
Dim Notify_no_data As Long
Notify_no_data = jResp.BoolOf("options.notify_no_data")
Dim On_missing_data As String
On_missing_data = jResp.StringOf("options.on_missing_data")
Dim Renotify_interval As String
Renotify_interval = jResp.StringOf("options.renotify_interval")
Dim Renotify_occurrences As Long
Renotify_occurrences = jResp.IntOf("options.renotify_occurrences")
Dim Require_full_window As Long
Require_full_window = jResp.BoolOf("options.require_full_window")
Dim Day_starts As String
Day_starts = jResp.StringOf("options.scheduling_options.evaluation_window.day_starts")
Dim Hour_starts As Long
Hour_starts = jResp.IntOf("options.scheduling_options.evaluation_window.hour_starts")
Dim Month_starts As Long
Month_starts = jResp.IntOf("options.scheduling_options.evaluation_window.month_starts")
Dim Non_6f_ As Long
Non_6f_ = jResp.IntOf("options.silenced.non_6f_")
Dim Synthetics_check_id As String
Synthetics_check_id = jResp.StringOf("options.synthetics_check_id")
Dim Recovery_window As String
Recovery_window = jResp.StringOf("options.threshold_windows.recovery_window")
Dim Trigger_window As String
Trigger_window = jResp.StringOf("options.threshold_windows.trigger_window")
Dim Critical As String
Critical = jResp.StringOf("options.thresholds.critical")
Dim Critical_recovery As String
Critical_recovery = jResp.StringOf("options.thresholds.critical_recovery")
Dim Ok As String
Ok = jResp.StringOf("options.thresholds.ok")
Dim Unknown As String
Unknown = jResp.StringOf("options.thresholds.unknown")
Dim Warning As String
Warning = jResp.StringOf("options.thresholds.warning")
Dim Warning_recovery As String
Warning_recovery = jResp.StringOf("options.thresholds.warning_recovery")
Dim Timeout_h As String
Timeout_h = jResp.StringOf("options.timeout_h")
Dim overall_state As String
overall_state = jResp.StringOf("overall_state")
Dim priority As Long
priority = jResp.IntOf("priority")
Dim Last_nodata_ts As Long
Last_nodata_ts = jResp.IntOf("state.groups.Lorem_1.last_nodata_ts")
Dim Last_notified_ts As Long
Last_notified_ts = jResp.IntOf("state.groups.Lorem_1.last_notified_ts")
Dim Last_resolved_ts As Long
Last_resolved_ts = jResp.IntOf("state.groups.Lorem_1.last_resolved_ts")
Dim Last_triggered_ts As Long
Last_triggered_ts = jResp.IntOf("state.groups.Lorem_1.last_triggered_ts")
Dim Lorem_1Name As String
Lorem_1Name = jResp.StringOf("state.groups.Lorem_1.name")
Dim Status As String
Status = jResp.StringOf("state.groups.Lorem_1.status")
Dim Nisi_c43Last_nodata_ts As Long
Nisi_c43Last_nodata_ts = jResp.IntOf("state.groups.nisi_c43.last_nodata_ts")
Dim Nisi_c43Last_notified_ts As Long
Nisi_c43Last_notified_ts = jResp.IntOf("state.groups.nisi_c43.last_notified_ts")
Dim Nisi_c43Last_resolved_ts As Long
Nisi_c43Last_resolved_ts = jResp.IntOf("state.groups.nisi_c43.last_resolved_ts")
Dim Nisi_c43Last_triggered_ts As Long
Nisi_c43Last_triggered_ts = jResp.IntOf("state.groups.nisi_c43.last_triggered_ts")
Dim Nisi_c43Name As String
Nisi_c43Name = jResp.StringOf("state.groups.nisi_c43.name")
Dim Nisi_c43Status As String
Nisi_c43Status = jResp.StringOf("state.groups.nisi_c43.status")
Dim Minim_cLast_nodata_ts As Long
Minim_cLast_nodata_ts = jResp.IntOf("state.groups.minim_c.last_nodata_ts")
Dim Minim_cLast_notified_ts As Long
Minim_cLast_notified_ts = jResp.IntOf("state.groups.minim_c.last_notified_ts")
Dim Minim_cLast_resolved_ts As Long
Minim_cLast_resolved_ts = jResp.IntOf("state.groups.minim_c.last_resolved_ts")
Dim Minim_cLast_triggered_ts As Long
Minim_cLast_triggered_ts = jResp.IntOf("state.groups.minim_c.last_triggered_ts")
Dim Minim_cName As String
Minim_cName = jResp.StringOf("state.groups.minim_c.name")
Dim Minim_cStatus As String
Minim_cStatus = jResp.StringOf("state.groups.minim_c.status")
Dim i As Long
i = 0
Dim count_i As Long
count_i = jResp.SizeOfArray("matching_downtimes")
Do While i < count_i
    jResp.I = i
    id = jResp.IntOf("matching_downtimes[i].id")
    v_end = jResp.IntOf("matching_downtimes[i].end")
    start = jResp.IntOf("matching_downtimes[i].start")
    j = 0
    count_j = jResp.SizeOfArray("matching_downtimes[i].scope")
    Do While j < count_j
        jResp.J = j
        strVal = jResp.StringOf("matching_downtimes[i].scope[j]")
        j = j + 1
    Loop
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("options.device_ids")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("options.device_ids[i]")
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("options.notify_by")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("options.notify_by[i]")
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("options.renotify_statuses")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("options.renotify_statuses[i]")
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("options.variables")
Do While i < count_i
    jResp.I = i
    data_source = jResp.StringOf("options.variables[i].data_source")
    Aggregation = jResp.StringOf("options.variables[i].compute.aggregation")
    Interval = jResp.IntOf("options.variables[i].compute.interval")
    computeMetric = jResp.StringOf("options.variables[i].compute.metric")
    name = jResp.StringOf("options.variables[i].name")
    Query = jResp.StringOf("options.variables[i].search.query")
    j = 0
    count_j = jResp.SizeOfArray("options.variables[i].group_by")
    Do While j < count_j
        jResp.J = j
        facet = jResp.StringOf("options.variables[i].group_by[j].facet")
        limit = jResp.IntOf("options.variables[i].group_by[j].limit")
        sortAggregation = jResp.StringOf("options.variables[i].group_by[j].sort.aggregation")
        sortMetric = jResp.StringOf("options.variables[i].group_by[j].sort.metric")
        Order = jResp.StringOf("options.variables[i].group_by[j].sort.order")
        j = j + 1
    Loop
    j = 0
    count_j = jResp.SizeOfArray("options.variables[i].indexes")
    Do While j < count_j
        jResp.J = j
        strVal = jResp.StringOf("options.variables[i].indexes[j]")
        j = j + 1
    Loop
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("restricted_roles")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("restricted_roles[i]")
    i = i + 1
Loop
i = 0
count_i = jResp.SizeOfArray("tags")
Do While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("tags[i]")
    i = i + 1
Loop

Curl Command

curl -G -d "group_states=tempor%20Ut%20sed%20velit"
	-d "with_downtimes=true"
	-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id

Postman Collection Item JSON

{
  "name": "Get a monitor's details",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "monitor",
        ":monitor_id"
      ],
      "query": [
        {
          "key": "group_states",
          "value": "tempor Ut sed velit",
          "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
        },
        {
          "key": "with_downtimes",
          "value": "true",
          "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
        }
      ],
      "variable": [
        {
          "key": "monitor_id",
          "value": "666486743"
        }
      ]
    },
    "description": "Get details about the specified monitor from your organization."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "query": [
            {
              "key": "group_states",
              "value": "tempor Ut sed velit",
              "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
            },
            {
              "key": "with_downtimes",
              "value": "true",
              "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
            }
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"type\": \"query alert\",\n  \"query\": \"avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100\",\n  \"created\": \"1989-12-01T14:28:43.831Z\",\n  \"creator\": {\n    \"email\": \"officia sunt\",\n    \"handle\": \"pariatur\",\n    \"name\": \"aute do\"\n  },\n  \"deleted\": \"2020-10-30T20:46:24.520Z\",\n  \"id\": -50675854,\n  \"matching_downtimes\": [\n    {\n      \"id\": 1625,\n      \"end\": 1412792983,\n      \"scope\": [\n        \"env:staging\"\n      ],\n      \"start\": 1412792983\n    },\n    {\n      \"id\": 1625,\n      \"end\": 1412792983,\n      \"scope\": [\n        \"env:staging\"\n      ],\n      \"start\": 1412792983\n    }\n  ],\n  \"message\": \"ullamco incididunt cupidatat\",\n  \"modified\": \"1981-03-27T05:04:03.098Z\",\n  \"multi\": false,\n  \"name\": \"My monitor\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"mobile_small\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": false,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -52819274,\n    \"group_retention_duration\": \"dolor Lorem qui\",\n    \"groupby_simple_monitor\": false,\n    \"include_tags\": true,\n    \"locked\": false,\n    \"min_failure_duration\": 0,\n    \"min_location_failed\": 1,\n    \"new_group_delay\": -94315945,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -86360342,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"labore dolore\",\n      \"deserunt commodo consectetur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"resolve\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 56355858,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"no data\"\n    ],\n    \"require_full_window\": false,\n    \"scheduling_options\": {\n      \"evaluation_window\": {\n        \"day_starts\": \"04:00\",\n        \"hour_starts\": 0,\n        \"month_starts\": 1\n      }\n    },\n    \"silenced\": {\n      \"non_6f_\": 77287100\n    },\n    \"synthetics_check_id\": \"culpa in laborum irure\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"culpa cupidatat Lorem ut\",\n      \"trigger_window\": \"fugiat officia mollit esse quis\"\n    },\n    \"thresholds\": {\n      \"critical\": -44507487.0891542,\n      \"critical_recovery\": 94365870.17342958,\n      \"ok\": 26645340.31156695,\n      \"unknown\": -32772943.396166816,\n      \"warning\": 75330874.10211122,\n      \"warning_recovery\": 30665996.226613894\n    },\n    \"timeout_h\": null,\n    \"variables\": [\n      {\n        \"data_source\": \"rum\",\n        \"compute\": {\n          \"aggregation\": \"avg\",\n          \"interval\": 60000,\n          \"metric\": \"@duration\"\n        },\n        \"name\": \"query_errors\",\n        \"group_by\": [\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"minim tempor i\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"Ut fugiat officia\",\n              \"order\": \"desc\"\n            }\n          }\n        ],\n        \"indexes\": [\n          \"days-3\",\n          \"days-7\"\n        ],\n        \"search\": {\n          \"query\": \"service:query\"\n        }\n      },\n      {\n        \"data_source\": \"rum\",\n        \"compute\": {\n          \"aggregation\": \"avg\",\n          \"interval\": 60000,\n          \"metric\": \"@duration\"\n        },\n        \"name\": \"query_errors\",\n        \"group_by\": [\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"do velit\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"amet proident anim in\",\n              \"order\": \"desc\"\n            }\n          }\n        ],\n        \"indexes\": [\n          \"days-3\",\n          \"days-7\"\n        ],\n        \"search\": {\n          \"query\": \"service:query\"\n        }\n      }\n    ]\n  },\n  \"overall_state\": \"Warn\",\n  \"priority\": 1,\n  \"restricted_roles\": [\n    \"enim qui cillum est\",\n    \"quis ut\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"Lorem_1\": {\n        \"last_nodata_ts\": -12653992,\n        \"last_notified_ts\": -66141067,\n        \"last_resolved_ts\": 5643925,\n        \"last_triggered_ts\": -6121593,\n        \"name\": \"dolore nulla i\",\n        \"status\": \"OK\"\n      },\n      \"nisi_c43\": {\n        \"last_nodata_ts\": -66061060,\n        \"last_notified_ts\": -86988012,\n        \"last_resolved_ts\": -39919633,\n        \"last_triggered_ts\": 13467862,\n        \"name\": \"Ut fugiat eiusmod anim\",\n        \"status\": \"Ignored\"\n      },\n      \"minim_c\": {\n        \"last_nodata_ts\": 6509669,\n        \"last_notified_ts\": 39348490,\n        \"last_resolved_ts\": 13221088,\n        \"last_triggered_ts\": 21889420,\n        \"name\": \"in velit Duis\",\n        \"status\": \"Alert\"\n      }\n    }\n  },\n  \"tags\": [\n    \"ex tempor\",\n    \"enim veniam dolore\"\n  ]\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "query": [
            {
              "key": "group_states",
              "value": "tempor Ut sed velit",
              "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
            },
            {
              "key": "with_downtimes",
              "value": "true",
              "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
            }
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Authentication error",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "query": [
            {
              "key": "group_states",
              "value": "tempor Ut sed velit",
              "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
            },
            {
              "key": "with_downtimes",
              "value": "true",
              "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
            }
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Monitor Not Found error",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "query": [
            {
              "key": "group_states",
              "value": "tempor Ut sed velit",
              "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
            },
            {
              "key": "with_downtimes",
              "value": "true",
              "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
            }
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id?group_states=tempor Ut sed velit&with_downtimes=true",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "query": [
            {
              "key": "group_states",
              "value": "tempor Ut sed velit",
              "description": "When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`."
            },
            {
              "key": "with_downtimes",
              "value": "true",
              "description": "If this argument is set to true, then the returned data includes all current active downtimes for the monitor."
            }
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    }
  ]
}