Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_V_end
integer li_Start
integer j
integer li_Count_j
string ls_StrVal
string ls_Data_source
string ls_Aggregation
integer li_Interval
string ls_ComputeMetric
string ls_Query
string ls_Facet
integer li_Limit
string ls_SortAggregation
string ls_SortMetric
string ls_Order
string ls_V_type
string ls_Query
string ls_Created
string ls_V_Email
string ls_Handle
string ls_Name
string ls_Deleted
integer li_Id
string ls_Message
string ls_Modified
integer li_Multi
string ls_Name
string ls_Group_by
string ls_Metric
string ls_V_Type
integer li_Enable_logs_sample
integer li_Enable_samples
string ls_Escalation_message
integer li_Evaluation_delay
string ls_Group_retention_duration
integer li_Groupby_simple_monitor
integer li_Include_tags
integer li_Locked
integer li_Min_failure_duration
integer li_Min_location_failed
integer li_New_group_delay
integer li_New_host_delay
integer li_No_data_timeframe
string ls_Notification_preset_name
integer li_Notify_audit
integer li_Notify_no_data
string ls_On_missing_data
string ls_Renotify_interval
integer li_Renotify_occurrences
integer li_Require_full_window
string ls_Day_starts
integer li_Hour_starts
integer li_Month_starts
integer li_Non_6f_
string ls_Synthetics_check_id
string ls_Recovery_window
string ls_Trigger_window
string ls_Critical
string ls_Critical_recovery
string ls_Ok
string ls_Unknown
string ls_Warning
string ls_Warning_recovery
string ls_Timeout_h
string ls_Overall_state
integer li_Priority
integer li_Last_nodata_ts
integer li_Last_notified_ts
integer li_Last_resolved_ts
integer li_Last_triggered_ts
string ls_Lorem_1Name
string ls_Status
integer li_Nisi_c43Last_nodata_ts
integer li_Nisi_c43Last_notified_ts
integer li_Nisi_c43Last_resolved_ts
integer li_Nisi_c43Last_triggered_ts
string ls_Nisi_c43Name
string ls_Nisi_c43Status
integer li_Minim_cLast_nodata_ts
integer li_Minim_cLast_notified_ts
integer li_Minim_cLast_resolved_ts
integer li_Minim_cLast_triggered_ts
string ls_Minim_cName
string ls_Minim_cStatus
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Http.SetRequestHeader("Accept","application/json")
loo_Resp = loo_Http.QuickRequest("POST","https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
destroy loo_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
ls_V_type = loo_JResp.StringOf("type")
ls_Query = loo_JResp.StringOf("query")
ls_Created = loo_JResp.StringOf("created")
ls_V_Email = loo_JResp.StringOf("creator.email")
ls_Handle = loo_JResp.StringOf("creator.handle")
ls_Name = loo_JResp.StringOf("creator.name")
ls_Deleted = loo_JResp.StringOf("deleted")
li_Id = loo_JResp.IntOf("id")
ls_Message = loo_JResp.StringOf("message")
ls_Modified = loo_JResp.StringOf("modified")
li_Multi = loo_JResp.BoolOf("multi")
ls_Name = loo_JResp.StringOf("name")
ls_Group_by = loo_JResp.StringOf("options.aggregation.group_by")
ls_Metric = loo_JResp.StringOf("options.aggregation.metric")
ls_V_Type = loo_JResp.StringOf("options.aggregation.type")
li_Enable_logs_sample = loo_JResp.BoolOf("options.enable_logs_sample")
li_Enable_samples = loo_JResp.BoolOf("options.enable_samples")
ls_Escalation_message = loo_JResp.StringOf("options.escalation_message")
li_Evaluation_delay = loo_JResp.IntOf("options.evaluation_delay")
ls_Group_retention_duration = loo_JResp.StringOf("options.group_retention_duration")
li_Groupby_simple_monitor = loo_JResp.BoolOf("options.groupby_simple_monitor")
li_Include_tags = loo_JResp.BoolOf("options.include_tags")
li_Locked = loo_JResp.BoolOf("options.locked")
li_Min_failure_duration = loo_JResp.IntOf("options.min_failure_duration")
li_Min_location_failed = loo_JResp.IntOf("options.min_location_failed")
li_New_group_delay = loo_JResp.IntOf("options.new_group_delay")
li_New_host_delay = loo_JResp.IntOf("options.new_host_delay")
li_No_data_timeframe = loo_JResp.IntOf("options.no_data_timeframe")
ls_Notification_preset_name = loo_JResp.StringOf("options.notification_preset_name")
li_Notify_audit = loo_JResp.BoolOf("options.notify_audit")
li_Notify_no_data = loo_JResp.BoolOf("options.notify_no_data")
ls_On_missing_data = loo_JResp.StringOf("options.on_missing_data")
ls_Renotify_interval = loo_JResp.StringOf("options.renotify_interval")
li_Renotify_occurrences = loo_JResp.IntOf("options.renotify_occurrences")
li_Require_full_window = loo_JResp.BoolOf("options.require_full_window")
ls_Day_starts = loo_JResp.StringOf("options.scheduling_options.evaluation_window.day_starts")
li_Hour_starts = loo_JResp.IntOf("options.scheduling_options.evaluation_window.hour_starts")
li_Month_starts = loo_JResp.IntOf("options.scheduling_options.evaluation_window.month_starts")
li_Non_6f_ = loo_JResp.IntOf("options.silenced.non_6f_")
ls_Synthetics_check_id = loo_JResp.StringOf("options.synthetics_check_id")
ls_Recovery_window = loo_JResp.StringOf("options.threshold_windows.recovery_window")
ls_Trigger_window = loo_JResp.StringOf("options.threshold_windows.trigger_window")
ls_Critical = loo_JResp.StringOf("options.thresholds.critical")
ls_Critical_recovery = loo_JResp.StringOf("options.thresholds.critical_recovery")
ls_Ok = loo_JResp.StringOf("options.thresholds.ok")
ls_Unknown = loo_JResp.StringOf("options.thresholds.unknown")
ls_Warning = loo_JResp.StringOf("options.thresholds.warning")
ls_Warning_recovery = loo_JResp.StringOf("options.thresholds.warning_recovery")
ls_Timeout_h = loo_JResp.StringOf("options.timeout_h")
ls_Overall_state = loo_JResp.StringOf("overall_state")
li_Priority = loo_JResp.IntOf("priority")
li_Last_nodata_ts = loo_JResp.IntOf("state.groups.Lorem_1.last_nodata_ts")
li_Last_notified_ts = loo_JResp.IntOf("state.groups.Lorem_1.last_notified_ts")
li_Last_resolved_ts = loo_JResp.IntOf("state.groups.Lorem_1.last_resolved_ts")
li_Last_triggered_ts = loo_JResp.IntOf("state.groups.Lorem_1.last_triggered_ts")
ls_Lorem_1Name = loo_JResp.StringOf("state.groups.Lorem_1.name")
ls_Status = loo_JResp.StringOf("state.groups.Lorem_1.status")
li_Nisi_c43Last_nodata_ts = loo_JResp.IntOf("state.groups.nisi_c43.last_nodata_ts")
li_Nisi_c43Last_notified_ts = loo_JResp.IntOf("state.groups.nisi_c43.last_notified_ts")
li_Nisi_c43Last_resolved_ts = loo_JResp.IntOf("state.groups.nisi_c43.last_resolved_ts")
li_Nisi_c43Last_triggered_ts = loo_JResp.IntOf("state.groups.nisi_c43.last_triggered_ts")
ls_Nisi_c43Name = loo_JResp.StringOf("state.groups.nisi_c43.name")
ls_Nisi_c43Status = loo_JResp.StringOf("state.groups.nisi_c43.status")
li_Minim_cLast_nodata_ts = loo_JResp.IntOf("state.groups.minim_c.last_nodata_ts")
li_Minim_cLast_notified_ts = loo_JResp.IntOf("state.groups.minim_c.last_notified_ts")
li_Minim_cLast_resolved_ts = loo_JResp.IntOf("state.groups.minim_c.last_resolved_ts")
li_Minim_cLast_triggered_ts = loo_JResp.IntOf("state.groups.minim_c.last_triggered_ts")
ls_Minim_cName = loo_JResp.StringOf("state.groups.minim_c.name")
ls_Minim_cStatus = loo_JResp.StringOf("state.groups.minim_c.status")
i = 0
li_Count_i = loo_JResp.SizeOfArray("matching_downtimes")
do while i < li_Count_i
loo_JResp.I = i
li_Id = loo_JResp.IntOf("matching_downtimes[i].id")
li_V_end = loo_JResp.IntOf("matching_downtimes[i].end")
li_Start = loo_JResp.IntOf("matching_downtimes[i].start")
j = 0
li_Count_j = loo_JResp.SizeOfArray("matching_downtimes[i].scope")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("matching_downtimes[i].scope[j]")
j = j + 1
loop
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.device_ids")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("options.device_ids[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.notify_by")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("options.notify_by[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.renotify_statuses")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("options.renotify_statuses[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("options.variables")
do while i < li_Count_i
loo_JResp.I = i
ls_Data_source = loo_JResp.StringOf("options.variables[i].data_source")
ls_Aggregation = loo_JResp.StringOf("options.variables[i].compute.aggregation")
li_Interval = loo_JResp.IntOf("options.variables[i].compute.interval")
ls_ComputeMetric = loo_JResp.StringOf("options.variables[i].compute.metric")
ls_Name = loo_JResp.StringOf("options.variables[i].name")
ls_Query = loo_JResp.StringOf("options.variables[i].search.query")
j = 0
li_Count_j = loo_JResp.SizeOfArray("options.variables[i].group_by")
do while j < li_Count_j
loo_JResp.J = j
ls_Facet = loo_JResp.StringOf("options.variables[i].group_by[j].facet")
li_Limit = loo_JResp.IntOf("options.variables[i].group_by[j].limit")
ls_SortAggregation = loo_JResp.StringOf("options.variables[i].group_by[j].sort.aggregation")
ls_SortMetric = loo_JResp.StringOf("options.variables[i].group_by[j].sort.metric")
ls_Order = loo_JResp.StringOf("options.variables[i].group_by[j].sort.order")
j = j + 1
loop
j = 0
li_Count_j = loo_JResp.SizeOfArray("options.variables[i].indexes")
do while j < li_Count_j
loo_JResp.J = j
ls_StrVal = loo_JResp.StringOf("options.variables[i].indexes[j]")
j = j + 1
loop
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("restricted_roles")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("restricted_roles[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("tags")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("tags[i]")
i = i + 1
loop
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
Curl Command
curl -X POST
-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425
Postman Collection Item JSON
{
"name": "Mute a monitor",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"variable": [
{
"key": "monitor_id",
"value": "-62147425"
}
]
},
"description": "Mute the specified monitor."
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"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": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"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": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"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": "Monitor Not Found error",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"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": "POST",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/monitor/:monitor_id/mute?scope=role:db&end=-62147425",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"monitor",
":monitor_id",
"mute"
],
"query": [
{
"key": "scope",
"value": "role:db",
"description": "The scope to apply the mute to.\nFor example, if your alert is grouped by `{host}`, you might mute `host:app1`."
},
{
"key": "end",
"value": "-62147425",
"description": "A POSIX timestamp for when the mute should end."
}
],
"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}"
}
]
}