Back to Collection Items
LOCAL loHttp
LOCAL lnSuccess
LOCAL loJson
LOCAL loSbRequestBody
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lnV_end
LOCAL lnStart
LOCAL j
LOCAL lnCount_j
LOCAL lcStrVal
LOCAL lcData_source
LOCAL lcAggregation
LOCAL lnInterval
LOCAL lcComputeMetric
LOCAL lcQuery
LOCAL lcFacet
LOCAL lnLimit
LOCAL lcSortAggregation
LOCAL lcSortMetric
LOCAL lcOrder
LOCAL lcV_type
LOCAL lcQuery
LOCAL lcCreated
LOCAL lcV_Email
LOCAL lcHandle
LOCAL lcName
LOCAL lcDeleted
LOCAL lnId
LOCAL lcMessage
LOCAL lcModified
LOCAL lnMulti
LOCAL lcName
LOCAL lcGroup_by
LOCAL lcMetric
LOCAL lcV_Type
LOCAL lnEnable_logs_sample
LOCAL lnEnable_samples
LOCAL lcEscalation_message
LOCAL lnEvaluation_delay
LOCAL lcGroup_retention_duration
LOCAL lnGroupby_simple_monitor
LOCAL lnInclude_tags
LOCAL lnLocked
LOCAL lnMin_failure_duration
LOCAL lnMin_location_failed
LOCAL lnNew_group_delay
LOCAL lnNew_host_delay
LOCAL lnNo_data_timeframe
LOCAL lcNotification_preset_name
LOCAL lnNotify_audit
LOCAL lnNotify_no_data
LOCAL lcOn_missing_data
LOCAL lcRenotify_interval
LOCAL lnRenotify_occurrences
LOCAL lnRequire_full_window
LOCAL lcDay_starts
LOCAL lnHour_starts
LOCAL lnMonth_starts
LOCAL lnNon_6f_
LOCAL lcSynthetics_check_id
LOCAL lcRecovery_window
LOCAL lcTrigger_window
LOCAL lcCritical
LOCAL lcCritical_recovery
LOCAL lcOk
LOCAL lcUnknown
LOCAL lcWarning
LOCAL lcWarning_recovery
LOCAL lcTimeout_h
LOCAL lcOverall_state
LOCAL lnPriority
LOCAL lnLast_nodata_ts
LOCAL lnLast_notified_ts
LOCAL lnLast_resolved_ts
LOCAL lnLast_triggered_ts
LOCAL lcLorem_1Name
LOCAL lcStatus
LOCAL lnNisi_c43Last_nodata_ts
LOCAL lnNisi_c43Last_notified_ts
LOCAL lnNisi_c43Last_resolved_ts
LOCAL lnNisi_c43Last_triggered_ts
LOCAL lcNisi_c43Name
LOCAL lcNisi_c43Status
LOCAL lnMinim_cLast_nodata_ts
LOCAL lnMinim_cLast_notified_ts
LOCAL lnMinim_cLast_resolved_ts
LOCAL lnMinim_cLast_triggered_ts
LOCAL lcMinim_cName
LOCAL lcMinim_cStatus
LOCAL i
LOCAL lnCount_i
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')
* 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"
* }
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJson = CreateObject('Chilkat.JsonObject')
loJson.UpdateString("created","1995-10-24T11:39:54.640Z")
loJson.UpdateString("creator.email","sed")
loJson.UpdateString("creator.handle","adipisicing anim sint minim dolore")
loJson.UpdateString("creator.name","minim elit occaecat nostrud")
loJson.UpdateString("deleted","1969-11-27T08:37:46.215Z")
loJson.UpdateInt("id",-77120144)
loJson.UpdateString("message","aliquip do")
loJson.UpdateString("modified","1951-11-24T19:51:05.602Z")
loJson.UpdateBool("multi",0)
loJson.UpdateString("name","velit inc")
loJson.UpdateString("options.aggregation.group_by","host")
loJson.UpdateString("options.aggregation.metric","metrics.name")
loJson.UpdateString("options.aggregation.type","count")
loJson.UpdateString("options.device_ids[0]","laptop_large")
loJson.UpdateString("options.device_ids[1]","chrome.tablet")
loJson.UpdateBool("options.enable_logs_sample",0)
loJson.UpdateBool("options.enable_samples",1)
loJson.UpdateString("options.escalation_message","none")
loJson.UpdateInt("options.evaluation_delay",-93352509)
loJson.UpdateString("options.group_retention_duration","laborum ad")
loJson.UpdateBool("options.groupby_simple_monitor",0)
loJson.UpdateBool("options.include_tags",1)
loJson.UpdateBool("options.locked",0)
loJson.UpdateInt("options.min_failure_duration",0)
loJson.UpdateInt("options.min_location_failed",1)
loJson.UpdateInt("options.new_group_delay",-7869863)
loJson.UpdateInt("options.new_host_delay",300)
loJson.UpdateInt("options.no_data_timeframe",-54805954)
loJson.UpdateString("options.notification_preset_name","show_all")
loJson.UpdateBool("options.notify_audit",0)
loJson.UpdateString("options.notify_by[0]","ut nostrud quis cillum")
loJson.UpdateString("options.notify_by[1]","do ipsum qui laboris Excepteur")
loJson.UpdateBool("options.notify_no_data",0)
loJson.UpdateString("options.on_missing_data","show_no_data")
loJson.UpdateNull("options.renotify_interval")
loJson.UpdateInt("options.renotify_occurrences",32437273)
loJson.UpdateString("options.renotify_statuses[0]","warn")
loJson.UpdateString("options.renotify_statuses[1]","alert")
loJson.UpdateBool("options.require_full_window",0)
loJson.UpdateString("options.scheduling_options.evaluation_window.day_starts","04:00")
loJson.UpdateInt("options.scheduling_options.evaluation_window.hour_starts",0)
loJson.UpdateInt("options.scheduling_options.evaluation_window.month_starts",1)
loJson.UpdateInt("options.silenced.dolor_b8",-69746901)
loJson.UpdateString("options.synthetics_check_id","mollit reprehenderit")
loJson.UpdateString("options.threshold_windows.recovery_window","dolor minim fugiat laborum")
loJson.UpdateString("options.threshold_windows.trigger_window","aliquip sunt")
loJson.UpdateNumber("options.thresholds.critical","-10490029.23686637")
loJson.UpdateNumber("options.thresholds.critical_recovery","56661083.45686585")
loJson.UpdateNumber("options.thresholds.ok","16997793.211359277")
loJson.UpdateNumber("options.thresholds.unknown","-77926855.79462364")
loJson.UpdateNumber("options.thresholds.warning","40847640.55172646")
loJson.UpdateNumber("options.thresholds.warning_recovery","18480354.352015167")
loJson.UpdateNull("options.timeout_h")
loJson.UpdateString("options.variables[0].data_source","rum")
loJson.UpdateString("options.variables[0].compute.aggregation","avg")
loJson.UpdateInt("options.variables[0].compute.interval",60000)
loJson.UpdateString("options.variables[0].compute.metric","@duration")
loJson.UpdateString("options.variables[0].name","query_errors")
loJson.UpdateString("options.variables[0].group_by[0].facet","status")
loJson.UpdateInt("options.variables[0].group_by[0].limit",10)
loJson.UpdateString("options.variables[0].group_by[0].sort.aggregation","avg")
loJson.UpdateString("options.variables[0].group_by[0].sort.metric","velit in esse voluptate")
loJson.UpdateString("options.variables[0].group_by[0].sort.order","desc")
loJson.UpdateString("options.variables[0].group_by[1].facet","status")
loJson.UpdateInt("options.variables[0].group_by[1].limit",10)
loJson.UpdateString("options.variables[0].group_by[1].sort.aggregation","avg")
loJson.UpdateString("options.variables[0].group_by[1].sort.metric","laborum sit")
loJson.UpdateString("options.variables[0].group_by[1].sort.order","desc")
loJson.UpdateString("options.variables[0].indexes[0]","days-3")
loJson.UpdateString("options.variables[0].indexes[1]","days-7")
loJson.UpdateString("options.variables[0].search.query","service:query")
loJson.UpdateString("options.variables[1].data_source","rum")
loJson.UpdateString("options.variables[1].compute.aggregation","avg")
loJson.UpdateInt("options.variables[1].compute.interval",60000)
loJson.UpdateString("options.variables[1].compute.metric","@duration")
loJson.UpdateString("options.variables[1].name","query_errors")
loJson.UpdateString("options.variables[1].group_by[0].facet","status")
loJson.UpdateInt("options.variables[1].group_by[0].limit",10)
loJson.UpdateString("options.variables[1].group_by[0].sort.aggregation","avg")
loJson.UpdateString("options.variables[1].group_by[0].sort.metric","ex ipsum quis")
loJson.UpdateString("options.variables[1].group_by[0].sort.order","desc")
loJson.UpdateString("options.variables[1].group_by[1].facet","status")
loJson.UpdateInt("options.variables[1].group_by[1].limit",10)
loJson.UpdateString("options.variables[1].group_by[1].sort.aggregation","avg")
loJson.UpdateString("options.variables[1].group_by[1].sort.metric","magna")
loJson.UpdateString("options.variables[1].group_by[1].sort.order","desc")
loJson.UpdateString("options.variables[1].indexes[0]","days-3")
loJson.UpdateString("options.variables[1].indexes[1]","days-7")
loJson.UpdateString("options.variables[1].search.query","service:query")
loJson.UpdateString("overall_state","Unknown")
loJson.UpdateInt("priority",4)
loJson.UpdateString("query","elit Ut minim fugiat Lorem")
loJson.UpdateString("restricted_roles[0]","adipisicing dolore")
loJson.UpdateString("restricted_roles[1]","sit aliqua")
loJson.UpdateInt("state.groups.sed2b.last_nodata_ts",-23994338)
loJson.UpdateInt("state.groups.sed2b.last_notified_ts",87335929)
loJson.UpdateInt("state.groups.sed2b.last_resolved_ts",93058048)
loJson.UpdateInt("state.groups.sed2b.last_triggered_ts",19106535)
loJson.UpdateString("state.groups.sed2b.name","labore Excepteur et ex")
loJson.UpdateString("state.groups.sed2b.status","OK")
loJson.UpdateString("tags[0]","deserunt sit Excepteur tempor")
loJson.UpdateString("tags[1]","esse")
loJson.UpdateString("type","query alert")
loHttp.SetRequestHeader("Content-Type","application/json")
loHttp.SetRequestHeader("Accept","application/json")
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbRequestBody = CreateObject('Chilkat.StringBuilder')
loJson.EmitSb(loSbRequestBody)
loResp = loHttp.PTextSb("PUT","https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id",loSbRequestBody,"utf-8","application/json",0,0)
IF (loHttp.LastMethodSuccess = 0) THEN
? loHttp.LastErrorText
RELEASE loHttp
RELEASE loJson
RELEASE loSbRequestBody
CANCEL
ENDIF
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0
? "Response Body:"
? loJResp.Emit()
lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
? "Response Header:"
? loResp.Header
? "Failed."
RELEASE loResp
RELEASE loHttp
RELEASE loJson
RELEASE loSbRequestBody
RELEASE loSbResponseBody
RELEASE loJResp
CANCEL
ENDIF
RELEASE loResp
* 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
lcV_type = loJResp.StringOf("type")
lcQuery = loJResp.StringOf("query")
lcCreated = loJResp.StringOf("created")
lcV_Email = loJResp.StringOf("creator.email")
lcHandle = loJResp.StringOf("creator.handle")
lcName = loJResp.StringOf("creator.name")
lcDeleted = loJResp.StringOf("deleted")
lnId = loJResp.IntOf("id")
lcMessage = loJResp.StringOf("message")
lcModified = loJResp.StringOf("modified")
lnMulti = loJResp.BoolOf("multi")
lcName = loJResp.StringOf("name")
lcGroup_by = loJResp.StringOf("options.aggregation.group_by")
lcMetric = loJResp.StringOf("options.aggregation.metric")
lcV_Type = loJResp.StringOf("options.aggregation.type")
lnEnable_logs_sample = loJResp.BoolOf("options.enable_logs_sample")
lnEnable_samples = loJResp.BoolOf("options.enable_samples")
lcEscalation_message = loJResp.StringOf("options.escalation_message")
lnEvaluation_delay = loJResp.IntOf("options.evaluation_delay")
lcGroup_retention_duration = loJResp.StringOf("options.group_retention_duration")
lnGroupby_simple_monitor = loJResp.BoolOf("options.groupby_simple_monitor")
lnInclude_tags = loJResp.BoolOf("options.include_tags")
lnLocked = loJResp.BoolOf("options.locked")
lnMin_failure_duration = loJResp.IntOf("options.min_failure_duration")
lnMin_location_failed = loJResp.IntOf("options.min_location_failed")
lnNew_group_delay = loJResp.IntOf("options.new_group_delay")
lnNew_host_delay = loJResp.IntOf("options.new_host_delay")
lnNo_data_timeframe = loJResp.IntOf("options.no_data_timeframe")
lcNotification_preset_name = loJResp.StringOf("options.notification_preset_name")
lnNotify_audit = loJResp.BoolOf("options.notify_audit")
lnNotify_no_data = loJResp.BoolOf("options.notify_no_data")
lcOn_missing_data = loJResp.StringOf("options.on_missing_data")
lcRenotify_interval = loJResp.StringOf("options.renotify_interval")
lnRenotify_occurrences = loJResp.IntOf("options.renotify_occurrences")
lnRequire_full_window = loJResp.BoolOf("options.require_full_window")
lcDay_starts = loJResp.StringOf("options.scheduling_options.evaluation_window.day_starts")
lnHour_starts = loJResp.IntOf("options.scheduling_options.evaluation_window.hour_starts")
lnMonth_starts = loJResp.IntOf("options.scheduling_options.evaluation_window.month_starts")
lnNon_6f_ = loJResp.IntOf("options.silenced.non_6f_")
lcSynthetics_check_id = loJResp.StringOf("options.synthetics_check_id")
lcRecovery_window = loJResp.StringOf("options.threshold_windows.recovery_window")
lcTrigger_window = loJResp.StringOf("options.threshold_windows.trigger_window")
lcCritical = loJResp.StringOf("options.thresholds.critical")
lcCritical_recovery = loJResp.StringOf("options.thresholds.critical_recovery")
lcOk = loJResp.StringOf("options.thresholds.ok")
lcUnknown = loJResp.StringOf("options.thresholds.unknown")
lcWarning = loJResp.StringOf("options.thresholds.warning")
lcWarning_recovery = loJResp.StringOf("options.thresholds.warning_recovery")
lcTimeout_h = loJResp.StringOf("options.timeout_h")
lcOverall_state = loJResp.StringOf("overall_state")
lnPriority = loJResp.IntOf("priority")
lnLast_nodata_ts = loJResp.IntOf("state.groups.Lorem_1.last_nodata_ts")
lnLast_notified_ts = loJResp.IntOf("state.groups.Lorem_1.last_notified_ts")
lnLast_resolved_ts = loJResp.IntOf("state.groups.Lorem_1.last_resolved_ts")
lnLast_triggered_ts = loJResp.IntOf("state.groups.Lorem_1.last_triggered_ts")
lcLorem_1Name = loJResp.StringOf("state.groups.Lorem_1.name")
lcStatus = loJResp.StringOf("state.groups.Lorem_1.status")
lnNisi_c43Last_nodata_ts = loJResp.IntOf("state.groups.nisi_c43.last_nodata_ts")
lnNisi_c43Last_notified_ts = loJResp.IntOf("state.groups.nisi_c43.last_notified_ts")
lnNisi_c43Last_resolved_ts = loJResp.IntOf("state.groups.nisi_c43.last_resolved_ts")
lnNisi_c43Last_triggered_ts = loJResp.IntOf("state.groups.nisi_c43.last_triggered_ts")
lcNisi_c43Name = loJResp.StringOf("state.groups.nisi_c43.name")
lcNisi_c43Status = loJResp.StringOf("state.groups.nisi_c43.status")
lnMinim_cLast_nodata_ts = loJResp.IntOf("state.groups.minim_c.last_nodata_ts")
lnMinim_cLast_notified_ts = loJResp.IntOf("state.groups.minim_c.last_notified_ts")
lnMinim_cLast_resolved_ts = loJResp.IntOf("state.groups.minim_c.last_resolved_ts")
lnMinim_cLast_triggered_ts = loJResp.IntOf("state.groups.minim_c.last_triggered_ts")
lcMinim_cName = loJResp.StringOf("state.groups.minim_c.name")
lcMinim_cStatus = loJResp.StringOf("state.groups.minim_c.status")
i = 0
lnCount_i = loJResp.SizeOfArray("matching_downtimes")
DO WHILE i < lnCount_i
loJResp.I = i
lnId = loJResp.IntOf("matching_downtimes[i].id")
lnV_end = loJResp.IntOf("matching_downtimes[i].end")
lnStart = loJResp.IntOf("matching_downtimes[i].start")
j = 0
lnCount_j = loJResp.SizeOfArray("matching_downtimes[i].scope")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("matching_downtimes[i].scope[j]")
j = j + 1
ENDDO
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("options.device_ids")
DO WHILE i < lnCount_i
loJResp.I = i
lcStrVal = loJResp.StringOf("options.device_ids[i]")
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("options.notify_by")
DO WHILE i < lnCount_i
loJResp.I = i
lcStrVal = loJResp.StringOf("options.notify_by[i]")
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("options.renotify_statuses")
DO WHILE i < lnCount_i
loJResp.I = i
lcStrVal = loJResp.StringOf("options.renotify_statuses[i]")
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("options.variables")
DO WHILE i < lnCount_i
loJResp.I = i
lcData_source = loJResp.StringOf("options.variables[i].data_source")
lcAggregation = loJResp.StringOf("options.variables[i].compute.aggregation")
lnInterval = loJResp.IntOf("options.variables[i].compute.interval")
lcComputeMetric = loJResp.StringOf("options.variables[i].compute.metric")
lcName = loJResp.StringOf("options.variables[i].name")
lcQuery = loJResp.StringOf("options.variables[i].search.query")
j = 0
lnCount_j = loJResp.SizeOfArray("options.variables[i].group_by")
DO WHILE j < lnCount_j
loJResp.J = j
lcFacet = loJResp.StringOf("options.variables[i].group_by[j].facet")
lnLimit = loJResp.IntOf("options.variables[i].group_by[j].limit")
lcSortAggregation = loJResp.StringOf("options.variables[i].group_by[j].sort.aggregation")
lcSortMetric = loJResp.StringOf("options.variables[i].group_by[j].sort.metric")
lcOrder = loJResp.StringOf("options.variables[i].group_by[j].sort.order")
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("options.variables[i].indexes")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("options.variables[i].indexes[j]")
j = j + 1
ENDDO
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("restricted_roles")
DO WHILE i < lnCount_i
loJResp.I = i
lcStrVal = loJResp.StringOf("restricted_roles[i]")
i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("tags")
DO WHILE i < lnCount_i
loJResp.I = i
lcStrVal = loJResp.StringOf("tags[i]")
i = i + 1
ENDDO
RELEASE loHttp
RELEASE loJson
RELEASE loSbRequestBody
RELEASE loSbResponseBody
RELEASE loJResp
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}"
}
]
}