Chilkat Online Tools

unicodeC / Datadog API Collection / Edit a monitor

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    int v_end;
    int start;
    int j;
    int count_j;
    const wchar_t *strVal;
    const wchar_t *data_source;
    const wchar_t *Aggregation;
    int Interval;
    const wchar_t *computeMetric;
    const wchar_t *Query;
    const wchar_t *facet;
    int limit;
    const wchar_t *sortAggregation;
    const wchar_t *sortMetric;
    const wchar_t *Order;
    const wchar_t *v_type;
    const wchar_t *query;
    const wchar_t *created;
    const wchar_t *v_Email;
    const wchar_t *Handle;
    const wchar_t *Name;
    const wchar_t *deleted;
    int id;
    const wchar_t *message;
    const wchar_t *modified;
    BOOL multi;
    const wchar_t *name;
    const wchar_t *Group_by;
    const wchar_t *Metric;
    const wchar_t *v_Type;
    BOOL Enable_logs_sample;
    BOOL Enable_samples;
    const wchar_t *Escalation_message;
    int Evaluation_delay;
    const wchar_t *Group_retention_duration;
    BOOL Groupby_simple_monitor;
    BOOL Include_tags;
    BOOL Locked;
    int Min_failure_duration;
    int Min_location_failed;
    int New_group_delay;
    int New_host_delay;
    int No_data_timeframe;
    const wchar_t *Notification_preset_name;
    BOOL Notify_audit;
    BOOL Notify_no_data;
    const wchar_t *On_missing_data;
    const wchar_t *Renotify_interval;
    int Renotify_occurrences;
    BOOL Require_full_window;
    const wchar_t *Day_starts;
    int Hour_starts;
    int Month_starts;
    int Non_6f_;
    const wchar_t *Synthetics_check_id;
    const wchar_t *Recovery_window;
    const wchar_t *Trigger_window;
    const wchar_t *Critical;
    const wchar_t *Critical_recovery;
    const wchar_t *Ok;
    const wchar_t *Unknown;
    const wchar_t *Warning;
    const wchar_t *Warning_recovery;
    const wchar_t *Timeout_h;
    const wchar_t *overall_state;
    int priority;
    int Last_nodata_ts;
    int Last_notified_ts;
    int Last_resolved_ts;
    int Last_triggered_ts;
    const wchar_t *Lorem_1Name;
    const wchar_t *Status;
    int Nisi_c43Last_nodata_ts;
    int Nisi_c43Last_notified_ts;
    int Nisi_c43Last_resolved_ts;
    int Nisi_c43Last_triggered_ts;
    const wchar_t *Nisi_c43Name;
    const wchar_t *Nisi_c43Status;
    int Minim_cLast_nodata_ts;
    int Minim_cLast_notified_ts;
    int Minim_cLast_resolved_ts;
    int Minim_cLast_triggered_ts;
    const wchar_t *Minim_cName;
    const wchar_t *Minim_cStatus;
    int i;
    int count_i;

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

    http = CkHttpW_Create();

    // 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"
    // }

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

    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");
    CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);

    resp = CkHttpW_PTextSb(http,L"PUT",L"https://api.app.ddog-gov.com/api/v1/monitor/:monitor_id",sbRequestBody,L"utf-8",L"application/json",FALSE,FALSE);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    v_type = CkJsonObjectW_stringOf(jResp,L"type");
    query = CkJsonObjectW_stringOf(jResp,L"query");
    created = CkJsonObjectW_stringOf(jResp,L"created");
    v_Email = CkJsonObjectW_stringOf(jResp,L"creator.email");
    Handle = CkJsonObjectW_stringOf(jResp,L"creator.handle");
    Name = CkJsonObjectW_stringOf(jResp,L"creator.name");
    deleted = CkJsonObjectW_stringOf(jResp,L"deleted");
    id = CkJsonObjectW_IntOf(jResp,L"id");
    message = CkJsonObjectW_stringOf(jResp,L"message");
    modified = CkJsonObjectW_stringOf(jResp,L"modified");
    multi = CkJsonObjectW_BoolOf(jResp,L"multi");
    name = CkJsonObjectW_stringOf(jResp,L"name");
    Group_by = CkJsonObjectW_stringOf(jResp,L"options.aggregation.group_by");
    Metric = CkJsonObjectW_stringOf(jResp,L"options.aggregation.metric");
    v_Type = CkJsonObjectW_stringOf(jResp,L"options.aggregation.type");
    Enable_logs_sample = CkJsonObjectW_BoolOf(jResp,L"options.enable_logs_sample");
    Enable_samples = CkJsonObjectW_BoolOf(jResp,L"options.enable_samples");
    Escalation_message = CkJsonObjectW_stringOf(jResp,L"options.escalation_message");
    Evaluation_delay = CkJsonObjectW_IntOf(jResp,L"options.evaluation_delay");
    Group_retention_duration = CkJsonObjectW_stringOf(jResp,L"options.group_retention_duration");
    Groupby_simple_monitor = CkJsonObjectW_BoolOf(jResp,L"options.groupby_simple_monitor");
    Include_tags = CkJsonObjectW_BoolOf(jResp,L"options.include_tags");
    Locked = CkJsonObjectW_BoolOf(jResp,L"options.locked");
    Min_failure_duration = CkJsonObjectW_IntOf(jResp,L"options.min_failure_duration");
    Min_location_failed = CkJsonObjectW_IntOf(jResp,L"options.min_location_failed");
    New_group_delay = CkJsonObjectW_IntOf(jResp,L"options.new_group_delay");
    New_host_delay = CkJsonObjectW_IntOf(jResp,L"options.new_host_delay");
    No_data_timeframe = CkJsonObjectW_IntOf(jResp,L"options.no_data_timeframe");
    Notification_preset_name = CkJsonObjectW_stringOf(jResp,L"options.notification_preset_name");
    Notify_audit = CkJsonObjectW_BoolOf(jResp,L"options.notify_audit");
    Notify_no_data = CkJsonObjectW_BoolOf(jResp,L"options.notify_no_data");
    On_missing_data = CkJsonObjectW_stringOf(jResp,L"options.on_missing_data");
    Renotify_interval = CkJsonObjectW_stringOf(jResp,L"options.renotify_interval");
    Renotify_occurrences = CkJsonObjectW_IntOf(jResp,L"options.renotify_occurrences");
    Require_full_window = CkJsonObjectW_BoolOf(jResp,L"options.require_full_window");
    Day_starts = CkJsonObjectW_stringOf(jResp,L"options.scheduling_options.evaluation_window.day_starts");
    Hour_starts = CkJsonObjectW_IntOf(jResp,L"options.scheduling_options.evaluation_window.hour_starts");
    Month_starts = CkJsonObjectW_IntOf(jResp,L"options.scheduling_options.evaluation_window.month_starts");
    Non_6f_ = CkJsonObjectW_IntOf(jResp,L"options.silenced.non_6f_");
    Synthetics_check_id = CkJsonObjectW_stringOf(jResp,L"options.synthetics_check_id");
    Recovery_window = CkJsonObjectW_stringOf(jResp,L"options.threshold_windows.recovery_window");
    Trigger_window = CkJsonObjectW_stringOf(jResp,L"options.threshold_windows.trigger_window");
    Critical = CkJsonObjectW_stringOf(jResp,L"options.thresholds.critical");
    Critical_recovery = CkJsonObjectW_stringOf(jResp,L"options.thresholds.critical_recovery");
    Ok = CkJsonObjectW_stringOf(jResp,L"options.thresholds.ok");
    Unknown = CkJsonObjectW_stringOf(jResp,L"options.thresholds.unknown");
    Warning = CkJsonObjectW_stringOf(jResp,L"options.thresholds.warning");
    Warning_recovery = CkJsonObjectW_stringOf(jResp,L"options.thresholds.warning_recovery");
    Timeout_h = CkJsonObjectW_stringOf(jResp,L"options.timeout_h");
    overall_state = CkJsonObjectW_stringOf(jResp,L"overall_state");
    priority = CkJsonObjectW_IntOf(jResp,L"priority");
    Last_nodata_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.Lorem_1.last_nodata_ts");
    Last_notified_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.Lorem_1.last_notified_ts");
    Last_resolved_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.Lorem_1.last_resolved_ts");
    Last_triggered_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.Lorem_1.last_triggered_ts");
    Lorem_1Name = CkJsonObjectW_stringOf(jResp,L"state.groups.Lorem_1.name");
    Status = CkJsonObjectW_stringOf(jResp,L"state.groups.Lorem_1.status");
    Nisi_c43Last_nodata_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.nisi_c43.last_nodata_ts");
    Nisi_c43Last_notified_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.nisi_c43.last_notified_ts");
    Nisi_c43Last_resolved_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.nisi_c43.last_resolved_ts");
    Nisi_c43Last_triggered_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.nisi_c43.last_triggered_ts");
    Nisi_c43Name = CkJsonObjectW_stringOf(jResp,L"state.groups.nisi_c43.name");
    Nisi_c43Status = CkJsonObjectW_stringOf(jResp,L"state.groups.nisi_c43.status");
    Minim_cLast_nodata_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.minim_c.last_nodata_ts");
    Minim_cLast_notified_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.minim_c.last_notified_ts");
    Minim_cLast_resolved_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.minim_c.last_resolved_ts");
    Minim_cLast_triggered_ts = CkJsonObjectW_IntOf(jResp,L"state.groups.minim_c.last_triggered_ts");
    Minim_cName = CkJsonObjectW_stringOf(jResp,L"state.groups.minim_c.name");
    Minim_cStatus = CkJsonObjectW_stringOf(jResp,L"state.groups.minim_c.status");
    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"matching_downtimes");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        id = CkJsonObjectW_IntOf(jResp,L"matching_downtimes[i].id");
        v_end = CkJsonObjectW_IntOf(jResp,L"matching_downtimes[i].end");
        start = CkJsonObjectW_IntOf(jResp,L"matching_downtimes[i].start");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"matching_downtimes[i].scope");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"matching_downtimes[i].scope[j]");
            j = j + 1;
        }

        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"options.device_ids");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"options.device_ids[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"options.notify_by");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"options.notify_by[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"options.renotify_statuses");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"options.renotify_statuses[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"options.variables");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        data_source = CkJsonObjectW_stringOf(jResp,L"options.variables[i].data_source");
        Aggregation = CkJsonObjectW_stringOf(jResp,L"options.variables[i].compute.aggregation");
        Interval = CkJsonObjectW_IntOf(jResp,L"options.variables[i].compute.interval");
        computeMetric = CkJsonObjectW_stringOf(jResp,L"options.variables[i].compute.metric");
        name = CkJsonObjectW_stringOf(jResp,L"options.variables[i].name");
        Query = CkJsonObjectW_stringOf(jResp,L"options.variables[i].search.query");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"options.variables[i].group_by");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            facet = CkJsonObjectW_stringOf(jResp,L"options.variables[i].group_by[j].facet");
            limit = CkJsonObjectW_IntOf(jResp,L"options.variables[i].group_by[j].limit");
            sortAggregation = CkJsonObjectW_stringOf(jResp,L"options.variables[i].group_by[j].sort.aggregation");
            sortMetric = CkJsonObjectW_stringOf(jResp,L"options.variables[i].group_by[j].sort.metric");
            Order = CkJsonObjectW_stringOf(jResp,L"options.variables[i].group_by[j].sort.order");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"options.variables[i].indexes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"options.variables[i].indexes[j]");
            j = j + 1;
        }

        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"restricted_roles");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"restricted_roles[i]");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"tags");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"tags[i]");
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(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}"
    }
  ]
}