Chilkat Online Tools

TCL / Datadog API Collection / Edit a monitor

Back to Collection Items

load ./chilkat.dll

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

set http [new_CkHttp]

# Use this online tool to generate code from sample JSON: Generate Code to Create JSON

# The following JSON is sent in the request body.

# {
#   "created": "1995-10-24T11:39:54.640Z",
#   "creator": {
#     "email": "sed",
#     "handle": "adipisicing anim sint minim dolore",
#     "name": "minim elit occaecat nostrud"
#   },
#   "deleted": "1969-11-27T08:37:46.215Z",
#   "id": -77120144,
#   "message": "aliquip do",
#   "modified": "1951-11-24T19:51:05.602Z",
#   "multi": false,
#   "name": "velit inc",
#   "options": {
#     "aggregation": {
#       "group_by": "host",
#       "metric": "metrics.name",
#       "type": "count"
#     },
#     "device_ids": [
#       "laptop_large",
#       "chrome.tablet"
#     ],
#     "enable_logs_sample": false,
#     "enable_samples": true,
#     "escalation_message": "none",
#     "evaluation_delay": -93352509,
#     "group_retention_duration": "laborum ad",
#     "groupby_simple_monitor": false,
#     "include_tags": true,
#     "locked": false,
#     "min_failure_duration": 0,
#     "min_location_failed": 1,
#     "new_group_delay": -7869863,
#     "new_host_delay": 300,
#     "no_data_timeframe": -54805954,
#     "notification_preset_name": "show_all",
#     "notify_audit": false,
#     "notify_by": [
#       "ut nostrud quis cillum",
#       "do ipsum qui laboris Excepteur"
#     ],
#     "notify_no_data": false,
#     "on_missing_data": "show_no_data",
#     "renotify_interval": null,
#     "renotify_occurrences": 32437273,
#     "renotify_statuses": [
#       "warn",
#       "alert"
#     ],
#     "require_full_window": false,
#     "scheduling_options": {
#       "evaluation_window": {
#         "day_starts": "04:00",
#         "hour_starts": 0,
#         "month_starts": 1
#       }
#     },
#     "silenced": {
#       "dolor_b8": -69746901
#     },
#     "synthetics_check_id": "mollit reprehenderit",
#     "threshold_windows": {
#       "recovery_window": "dolor minim fugiat laborum",
#       "trigger_window": "aliquip sunt"
#     },
#     "thresholds": {
#       "critical": -10490029.23686637,
#       "critical_recovery": 56661083.45686585,
#       "ok": 16997793.211359277,
#       "unknown": -77926855.79462364,
#       "warning": 40847640.55172646,
#       "warning_recovery": 18480354.352015167
#     },
#     "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": "velit in esse voluptate",
#               "order": "desc"
#             }
#           },
#           {
#             "facet": "status",
#             "limit": 10,
#             "sort": {
#               "aggregation": "avg",
#               "metric": "laborum sit",
#               "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": "ex ipsum quis",
#               "order": "desc"
#             }
#           },
#           {
#             "facet": "status",
#             "limit": 10,
#             "sort": {
#               "aggregation": "avg",
#               "metric": "magna",
#               "order": "desc"
#             }
#           }
#         ],
#         "indexes": [
#           "days-3",
#           "days-7"
#         ],
#         "search": {
#           "query": "service:query"
#         }
#       }
#     ]
#   },
#   "overall_state": "Unknown",
#   "priority": 4,
#   "query": "elit Ut minim fugiat Lorem",
#   "restricted_roles": [
#     "adipisicing dolore",
#     "sit aliqua"
#   ],
#   "state": {
#     "groups": {
#       "sed2b": {
#         "last_nodata_ts": -23994338,
#         "last_notified_ts": 87335929,
#         "last_resolved_ts": 93058048,
#         "last_triggered_ts": 19106535,
#         "name": "labore Excepteur et ex",
#         "status": "OK"
#       }
#     }
#   },
#   "tags": [
#     "deserunt sit Excepteur tempor",
#     "esse"
#   ],
#   "type": "query alert"
# }

set json [new_CkJsonObject]

CkJsonObject_UpdateString $json "created" "1995-10-24T11:39:54.640Z"
CkJsonObject_UpdateString $json "creator.email" "sed"
CkJsonObject_UpdateString $json "creator.handle" "adipisicing anim sint minim dolore"
CkJsonObject_UpdateString $json "creator.name" "minim elit occaecat nostrud"
CkJsonObject_UpdateString $json "deleted" "1969-11-27T08:37:46.215Z"
CkJsonObject_UpdateInt $json "id" -77120144
CkJsonObject_UpdateString $json "message" "aliquip do"
CkJsonObject_UpdateString $json "modified" "1951-11-24T19:51:05.602Z"
CkJsonObject_UpdateBool $json "multi" 0
CkJsonObject_UpdateString $json "name" "velit inc"
CkJsonObject_UpdateString $json "options.aggregation.group_by" "host"
CkJsonObject_UpdateString $json "options.aggregation.metric" "metrics.name"
CkJsonObject_UpdateString $json "options.aggregation.type" "count"
CkJsonObject_UpdateString $json "options.device_ids[0]" "laptop_large"
CkJsonObject_UpdateString $json "options.device_ids[1]" "chrome.tablet"
CkJsonObject_UpdateBool $json "options.enable_logs_sample" 0
CkJsonObject_UpdateBool $json "options.enable_samples" 1
CkJsonObject_UpdateString $json "options.escalation_message" "none"
CkJsonObject_UpdateInt $json "options.evaluation_delay" -93352509
CkJsonObject_UpdateString $json "options.group_retention_duration" "laborum ad"
CkJsonObject_UpdateBool $json "options.groupby_simple_monitor" 0
CkJsonObject_UpdateBool $json "options.include_tags" 1
CkJsonObject_UpdateBool $json "options.locked" 0
CkJsonObject_UpdateInt $json "options.min_failure_duration" 0
CkJsonObject_UpdateInt $json "options.min_location_failed" 1
CkJsonObject_UpdateInt $json "options.new_group_delay" -7869863
CkJsonObject_UpdateInt $json "options.new_host_delay" 300
CkJsonObject_UpdateInt $json "options.no_data_timeframe" -54805954
CkJsonObject_UpdateString $json "options.notification_preset_name" "show_all"
CkJsonObject_UpdateBool $json "options.notify_audit" 0
CkJsonObject_UpdateString $json "options.notify_by[0]" "ut nostrud quis cillum"
CkJsonObject_UpdateString $json "options.notify_by[1]" "do ipsum qui laboris Excepteur"
CkJsonObject_UpdateBool $json "options.notify_no_data" 0
CkJsonObject_UpdateString $json "options.on_missing_data" "show_no_data"
CkJsonObject_UpdateNull $json "options.renotify_interval"
CkJsonObject_UpdateInt $json "options.renotify_occurrences" 32437273
CkJsonObject_UpdateString $json "options.renotify_statuses[0]" "warn"
CkJsonObject_UpdateString $json "options.renotify_statuses[1]" "alert"
CkJsonObject_UpdateBool $json "options.require_full_window" 0
CkJsonObject_UpdateString $json "options.scheduling_options.evaluation_window.day_starts" "04:00"
CkJsonObject_UpdateInt $json "options.scheduling_options.evaluation_window.hour_starts" 0
CkJsonObject_UpdateInt $json "options.scheduling_options.evaluation_window.month_starts" 1
CkJsonObject_UpdateInt $json "options.silenced.dolor_b8" -69746901
CkJsonObject_UpdateString $json "options.synthetics_check_id" "mollit reprehenderit"
CkJsonObject_UpdateString $json "options.threshold_windows.recovery_window" "dolor minim fugiat laborum"
CkJsonObject_UpdateString $json "options.threshold_windows.trigger_window" "aliquip sunt"
CkJsonObject_UpdateNumber $json "options.thresholds.critical" "-10490029.23686637"
CkJsonObject_UpdateNumber $json "options.thresholds.critical_recovery" "56661083.45686585"
CkJsonObject_UpdateNumber $json "options.thresholds.ok" "16997793.211359277"
CkJsonObject_UpdateNumber $json "options.thresholds.unknown" "-77926855.79462364"
CkJsonObject_UpdateNumber $json "options.thresholds.warning" "40847640.55172646"
CkJsonObject_UpdateNumber $json "options.thresholds.warning_recovery" "18480354.352015167"
CkJsonObject_UpdateNull $json "options.timeout_h"
CkJsonObject_UpdateString $json "options.variables[0].data_source" "rum"
CkJsonObject_UpdateString $json "options.variables[0].compute.aggregation" "avg"
CkJsonObject_UpdateInt $json "options.variables[0].compute.interval" 60000
CkJsonObject_UpdateString $json "options.variables[0].compute.metric" "@duration"
CkJsonObject_UpdateString $json "options.variables[0].name" "query_errors"
CkJsonObject_UpdateString $json "options.variables[0].group_by[0].facet" "status"
CkJsonObject_UpdateInt $json "options.variables[0].group_by[0].limit" 10
CkJsonObject_UpdateString $json "options.variables[0].group_by[0].sort.aggregation" "avg"
CkJsonObject_UpdateString $json "options.variables[0].group_by[0].sort.metric" "velit in esse voluptate"
CkJsonObject_UpdateString $json "options.variables[0].group_by[0].sort.order" "desc"
CkJsonObject_UpdateString $json "options.variables[0].group_by[1].facet" "status"
CkJsonObject_UpdateInt $json "options.variables[0].group_by[1].limit" 10
CkJsonObject_UpdateString $json "options.variables[0].group_by[1].sort.aggregation" "avg"
CkJsonObject_UpdateString $json "options.variables[0].group_by[1].sort.metric" "laborum sit"
CkJsonObject_UpdateString $json "options.variables[0].group_by[1].sort.order" "desc"
CkJsonObject_UpdateString $json "options.variables[0].indexes[0]" "days-3"
CkJsonObject_UpdateString $json "options.variables[0].indexes[1]" "days-7"
CkJsonObject_UpdateString $json "options.variables[0].search.query" "service:query"
CkJsonObject_UpdateString $json "options.variables[1].data_source" "rum"
CkJsonObject_UpdateString $json "options.variables[1].compute.aggregation" "avg"
CkJsonObject_UpdateInt $json "options.variables[1].compute.interval" 60000
CkJsonObject_UpdateString $json "options.variables[1].compute.metric" "@duration"
CkJsonObject_UpdateString $json "options.variables[1].name" "query_errors"
CkJsonObject_UpdateString $json "options.variables[1].group_by[0].facet" "status"
CkJsonObject_UpdateInt $json "options.variables[1].group_by[0].limit" 10
CkJsonObject_UpdateString $json "options.variables[1].group_by[0].sort.aggregation" "avg"
CkJsonObject_UpdateString $json "options.variables[1].group_by[0].sort.metric" "ex ipsum quis"
CkJsonObject_UpdateString $json "options.variables[1].group_by[0].sort.order" "desc"
CkJsonObject_UpdateString $json "options.variables[1].group_by[1].facet" "status"
CkJsonObject_UpdateInt $json "options.variables[1].group_by[1].limit" 10
CkJsonObject_UpdateString $json "options.variables[1].group_by[1].sort.aggregation" "avg"
CkJsonObject_UpdateString $json "options.variables[1].group_by[1].sort.metric" "magna"
CkJsonObject_UpdateString $json "options.variables[1].group_by[1].sort.order" "desc"
CkJsonObject_UpdateString $json "options.variables[1].indexes[0]" "days-3"
CkJsonObject_UpdateString $json "options.variables[1].indexes[1]" "days-7"
CkJsonObject_UpdateString $json "options.variables[1].search.query" "service:query"
CkJsonObject_UpdateString $json "overall_state" "Unknown"
CkJsonObject_UpdateInt $json "priority" 4
CkJsonObject_UpdateString $json "query" "elit Ut minim fugiat Lorem"
CkJsonObject_UpdateString $json "restricted_roles[0]" "adipisicing dolore"
CkJsonObject_UpdateString $json "restricted_roles[1]" "sit aliqua"
CkJsonObject_UpdateInt $json "state.groups.sed2b.last_nodata_ts" -23994338
CkJsonObject_UpdateInt $json "state.groups.sed2b.last_notified_ts" 87335929
CkJsonObject_UpdateInt $json "state.groups.sed2b.last_resolved_ts" 93058048
CkJsonObject_UpdateInt $json "state.groups.sed2b.last_triggered_ts" 19106535
CkJsonObject_UpdateString $json "state.groups.sed2b.name" "labore Excepteur et ex"
CkJsonObject_UpdateString $json "state.groups.sed2b.status" "OK"
CkJsonObject_UpdateString $json "tags[0]" "deserunt sit Excepteur tempor"
CkJsonObject_UpdateString $json "tags[1]" "esse"
CkJsonObject_UpdateString $json "type" "query alert"

CkHttp_SetRequestHeader $http "Content-Type" "application/json"
CkHttp_SetRequestHeader $http "Accept" "application/json"

set sbRequestBody [new_CkStringBuilder]

CkJsonObject_EmitSb $json $sbRequestBody

# resp is a CkHttpResponse
set resp [CkHttp_PTextSb $http "PUT" "https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id" $sbRequestBody "utf-8" "application/json" 0 0]
if {[CkHttp_get_LastMethodSuccess $http] == 0} then {
    puts [CkHttp_lastErrorText $http]
    delete_CkHttp $http
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    exit
}

set sbResponseBody [new_CkStringBuilder]

CkHttpResponse_GetBodySb $resp $sbResponseBody

set jResp [new_CkJsonObject]

CkJsonObject_LoadSb $jResp $sbResponseBody
CkJsonObject_put_EmitCompact $jResp 0

puts "Response Body:"
puts [CkJsonObject_emit $jResp]

set respStatusCode [CkHttpResponse_get_StatusCode $resp]
puts "Response Status Code = $respStatusCode"
if {$respStatusCode >= 400} then {
    puts "Response Header:"
    puts [CkHttpResponse_header $resp]
    puts "Failed."
    delete_CkHttpResponse $resp

    delete_CkHttp $http
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    delete_CkJsonObject $jResp
    exit
}

delete_CkHttpResponse $resp

# 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

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

delete_CkHttp $http
delete_CkJsonObject $json
delete_CkStringBuilder $sbRequestBody
delete_CkStringBuilder $sbResponseBody
delete_CkJsonObject $jResp

Curl Command

curl -X PUT
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "created": "1995-10-24T11:39:54.640Z",
  "creator": {
    "email": "sed",
    "handle": "adipisicing anim sint minim dolore",
    "name": "minim elit occaecat nostrud"
  },
  "deleted": "1969-11-27T08:37:46.215Z",
  "id": -77120144,
  "message": "aliquip do",
  "modified": "1951-11-24T19:51:05.602Z",
  "multi": false,
  "name": "velit inc",
  "options": {
    "aggregation": {
      "group_by": "host",
      "metric": "metrics.name",
      "type": "count"
    },
    "device_ids": [
      "laptop_large",
      "chrome.tablet"
    ],
    "enable_logs_sample": false,
    "enable_samples": true,
    "escalation_message": "none",
    "evaluation_delay": -93352509,
    "group_retention_duration": "laborum ad",
    "groupby_simple_monitor": false,
    "include_tags": true,
    "locked": false,
    "min_failure_duration": 0,
    "min_location_failed": 1,
    "new_group_delay": -7869863,
    "new_host_delay": 300,
    "no_data_timeframe": -54805954,
    "notification_preset_name": "show_all",
    "notify_audit": false,
    "notify_by": [
      "ut nostrud quis cillum",
      "do ipsum qui laboris Excepteur"
    ],
    "notify_no_data": false,
    "on_missing_data": "show_no_data",
    "renotify_interval": null,
    "renotify_occurrences": 32437273,
    "renotify_statuses": [
      "warn",
      "alert"
    ],
    "require_full_window": false,
    "scheduling_options": {
      "evaluation_window": {
        "day_starts": "04:00",
        "hour_starts": 0,
        "month_starts": 1
      }
    },
    "silenced": {
      "dolor_b8": -69746901
    },
    "synthetics_check_id": "mollit reprehenderit",
    "threshold_windows": {
      "recovery_window": "dolor minim fugiat laborum",
      "trigger_window": "aliquip sunt"
    },
    "thresholds": {
      "critical": -10490029.23686637,
      "critical_recovery": 56661083.45686585,
      "ok": 16997793.211359277,
      "unknown": -77926855.79462364,
      "warning": 40847640.55172646,
      "warning_recovery": 18480354.352015167
    },
    "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": "velit in esse voluptate",
              "order": "desc"
            }
          },
          {
            "facet": "status",
            "limit": 10,
            "sort": {
              "aggregation": "avg",
              "metric": "laborum sit",
              "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": "ex ipsum quis",
              "order": "desc"
            }
          },
          {
            "facet": "status",
            "limit": 10,
            "sort": {
              "aggregation": "avg",
              "metric": "magna",
              "order": "desc"
            }
          }
        ],
        "indexes": [
          "days-3",
          "days-7"
        ],
        "search": {
          "query": "service:query"
        }
      }
    ]
  },
  "overall_state": "Unknown",
  "priority": 4,
  "query": "elit Ut minim fugiat Lorem",
  "restricted_roles": [
    "adipisicing dolore",
    "sit aliqua"
  ],
  "state": {
    "groups": {
      "sed2b": {
        "last_nodata_ts": -23994338,
        "last_notified_ts": 87335929,
        "last_resolved_ts": 93058048,
        "last_triggered_ts": 19106535,
        "name": "labore Excepteur et ex",
        "status": "OK"
      }
    }
  },
  "tags": [
    "deserunt sit Excepteur tempor",
    "esse"
  ],
  "type": "query alert"
}'
https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id

Postman Collection Item JSON

{
  "name": "Edit a monitor",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "monitor",
        ":monitor_id"
      ],
      "variable": [
        {
          "key": "monitor_id",
          "value": "666486743"
        }
      ]
    },
    "description": "Edit the specified monitor."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "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": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "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": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "variable": [
            {
              "key": "monitor_id"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Forbidden",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "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": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "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": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"created\": \"1995-10-24T11:39:54.640Z\",\n  \"creator\": {\n    \"email\": \"sed\",\n    \"handle\": \"adipisicing anim sint minim dolore\",\n    \"name\": \"minim elit occaecat nostrud\"\n  },\n  \"deleted\": \"1969-11-27T08:37:46.215Z\",\n  \"id\": -77120144,\n  \"message\": \"aliquip do\",\n  \"modified\": \"1951-11-24T19:51:05.602Z\",\n  \"multi\": false,\n  \"name\": \"velit inc\",\n  \"options\": {\n    \"aggregation\": {\n      \"group_by\": \"host\",\n      \"metric\": \"metrics.name\",\n      \"type\": \"count\"\n    },\n    \"device_ids\": [\n      \"laptop_large\",\n      \"chrome.tablet\"\n    ],\n    \"enable_logs_sample\": false,\n    \"enable_samples\": true,\n    \"escalation_message\": \"none\",\n    \"evaluation_delay\": -93352509,\n    \"group_retention_duration\": \"laborum ad\",\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\": -7869863,\n    \"new_host_delay\": 300,\n    \"no_data_timeframe\": -54805954,\n    \"notification_preset_name\": \"show_all\",\n    \"notify_audit\": false,\n    \"notify_by\": [\n      \"ut nostrud quis cillum\",\n      \"do ipsum qui laboris Excepteur\"\n    ],\n    \"notify_no_data\": false,\n    \"on_missing_data\": \"show_no_data\",\n    \"renotify_interval\": null,\n    \"renotify_occurrences\": 32437273,\n    \"renotify_statuses\": [\n      \"warn\",\n      \"alert\"\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      \"dolor_b8\": -69746901\n    },\n    \"synthetics_check_id\": \"mollit reprehenderit\",\n    \"threshold_windows\": {\n      \"recovery_window\": \"dolor minim fugiat laborum\",\n      \"trigger_window\": \"aliquip sunt\"\n    },\n    \"thresholds\": {\n      \"critical\": -10490029.23686637,\n      \"critical_recovery\": 56661083.45686585,\n      \"ok\": 16997793.211359277,\n      \"unknown\": -77926855.79462364,\n      \"warning\": 40847640.55172646,\n      \"warning_recovery\": 18480354.352015167\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\": \"velit in esse voluptate\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"laborum sit\",\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\": \"ex ipsum quis\",\n              \"order\": \"desc\"\n            }\n          },\n          {\n            \"facet\": \"status\",\n            \"limit\": 10,\n            \"sort\": {\n              \"aggregation\": \"avg\",\n              \"metric\": \"magna\",\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\": \"Unknown\",\n  \"priority\": 4,\n  \"query\": \"elit Ut minim fugiat Lorem\",\n  \"restricted_roles\": [\n    \"adipisicing dolore\",\n    \"sit aliqua\"\n  ],\n  \"state\": {\n    \"groups\": {\n      \"sed2b\": {\n        \"last_nodata_ts\": -23994338,\n        \"last_notified_ts\": 87335929,\n        \"last_resolved_ts\": 93058048,\n        \"last_triggered_ts\": 19106535,\n        \"name\": \"labore Excepteur et ex\",\n        \"status\": \"OK\"\n      }\n    }\n  },\n  \"tags\": [\n    \"deserunt sit Excepteur tempor\",\n    \"esse\"\n  ],\n  \"type\": \"query alert\"\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/monitor/:monitor_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "monitor",
            ":monitor_id"
          ],
          "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}"
    }
  ]
}