33 "httpRequest" : {
44 "body" : {
55 "type" : " JSON" ,
6- "json" : " {\" message\" : \" some message Notify: @hipchat-channel\" , \" name\" : \" Test-Validate_an_existing_monitor_returns_OK_response-1674067040 \" , \" options\" : {\" enable_logs_sample\" : true, \" escalation_message\" : \" the situation has escalated\" , \" evaluation_delay\" : 700, \" groupby_simple_monitor\" : true, \" include_tags\" : true, \" locked\" : false, \" new_host_delay\" : 600, \" no_data_timeframe\" : null, \" notification_preset_name\" : \" hide_handles\" , \" notify_audit\" : false, \" notify_no_data\" : false, \" on_missing_data\" : \" show_and_notify_no_data\" , \" renotify_interval\" : 60, \" require_full_window\" : true, \" thresholds\" : {\" critical\" : 2, \" warning\" : 1}, \" timeout_h\" : 24}, \" priority\" : 3, \" query\" : \" logs(\\\" service:foo AND type:error\\\" ).index(\\\" main\\\" ).rollup(\\\" count\\\" ).by(\\\" source\\\" ).last(\\\" 5m\\\" ) > 2\" , \" tags\" : [\" test:testvalidateanexistingmonitorreturnsokresponse1674067040 \" , \" env:ci\" ], \" type\" : \" log alert\" }"
6+ "json" : " {\" message\" : \" some message Notify: @hipchat-channel\" , \" name\" : \" Test-Validate_an_existing_monitor_returns_OK_response-1728485695 \" , \" options\" : {\" enable_logs_sample\" : true, \" escalation_message\" : \" the situation has escalated\" , \" evaluation_delay\" : 700, \" groupby_simple_monitor\" : true, \" include_tags\" : true, \" locked\" : false, \" new_host_delay\" : 600, \" no_data_timeframe\" : null, \" notification_preset_name\" : \" hide_handles\" , \" notify_audit\" : false, \" notify_no_data\" : false, \" on_missing_data\" : \" show_and_notify_no_data\" , \" renotify_interval\" : 60, \" require_full_window\" : true, \" thresholds\" : {\" critical\" : 2, \" warning\" : 1}, \" timeout_h\" : 24}, \" priority\" : 3, \" query\" : \" logs(\\\" service:foo AND type:error\\\" ).index(\\\" main\\\" ).rollup(\\\" count\\\" ).by(\\\" source\\\" ).last(\\\" 5m\\\" ) > 2\" , \" tags\" : [\" test:testvalidateanexistingmonitorreturnsokresponse1728485695 \" , \" env:ci\" ], \" type\" : \" log alert\" }"
77 },
88 "headers" : {},
99 "method" : " POST" ,
1212 "secure" : true
1313 },
1414 "httpResponse" : {
15- "body": "{\"id\":108260307,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Validate_an_existing_monitor_returns_OK_response-1674067040\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testvalidateanexistingmonitorreturnsokresponse1674067040\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"groupby_simple_monitor\":true,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"silenced\":{}},\"multi\":true,\"created_at\":1674067040000,\"created\":\"2023-01-18T18:37:20.717952+00:00\",\"modified\":\"2023-01-18T18:37:20.717952+00:00\",\"deleted\":null,\"restricted_roles\":null,\"priority\":3,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"id\":1445416}}\n",
15+ "body": "{\"id\":155758542,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Validate_an_existing_monitor_returns_OK_response-1728485695\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testvalidateanexistingmonitorreturnsokresponse1728485695\",\"env:ci\"],\"query\":\"logs(\\\"service:foo AND type:error\\\").index(\\\"main\\\").rollup(\\\"count\\\").by(\\\"source\\\").last(\\\"5m\\\") > 2\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"groupby_simple_monitor\":true,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notification_preset_name\":\"hide_handles\",\"notify_audit\":false,\"notify_no_data\":false,\"on_missing_data\":\"show_and_notify_no_data\",\"renotify_interval\":60,\"require_full_window\":true,\"thresholds\":{\"critical\":2.0,\"warning\":1.0},\"timeout_h\":24,\"silenced\":{}},\"multi\":true,\"created_at\":1728485695000,\"created\":\"2024-10-09T14:54:55.594487+00:00\",\"modified\":\"2024-10-09T14:54:55.594487+00:00\",\"deleted\":null,\"restricted_roles\":null,\"priority\":3,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":\"Anika Maskara\",\"handle\":\"anika.maskara@datadoghq.com\",\"email\":\"anika.maskara@datadoghq.com\",\"id\":7557262}}\n",
1616 "headers" : {
1717 "Content-Type" : [
1818 " application/json"
2727 "timeToLive" : {
2828 "unlimited" : true
2929 },
30- "id" : " a6398d92-236d-e6af-6e0c-182ccfc97958 "
30+ "id" : " 2d7f69c0-82d7-06ae-2adf-774fd2e93129 "
3131 },
3232 {
3333 "httpRequest" : {
3434 "body" : {
3535 "type" : " JSON" ,
36- "json" : " {\" message\" : \" some message Notify: @hipchat-channel\" , \" name\" : \" Test-Validate_an_existing_monitor_returns_OK_response-1674067040 \" , \" options\" : {\" enable_logs_sample\" : true, \" escalation_message\" : \" the situation has escalated\" , \" evaluation_delay\" : 700, \" groupby_simple_monitor \" : true, \" include_tags\" : true, \" locked\" : false, \" new_host_delay\" : 600, \" no_data_timeframe\" : null, \" notification_preset_name\" : \" hide_handles\" , \" notify_audit\" : false, \" notify_no_data\" : false, \" on_missing_data\" : \" show_and_notify_no_data\" , \" renotify_interval\" : 60, \" require_full_window\" : true, \" thresholds\" : {\" critical\" : 2, \" warning\" : 1}, \" timeout_h\" : 24}, \" priority\" : 3, \" query\" : \" logs(\\\" service:foo AND type:error\\\" ).index(\\\" main\\\" ).rollup(\\\" count\\\" ).by(\\\" source\\\" ).last(\\\" 5m\\\" ) > 2\" , \" tags\" : [\" test:testvalidateanexistingmonitorreturnsokresponse1674067040 \" , \" env:ci\" ], \" type\" : \" log alert\" }"
36+ "json" : " {\" message\" : \" some message Notify: @hipchat-channel\" , \" name\" : \" Test-Validate_an_existing_monitor_returns_OK_response-1728485695 \" , \" options\" : {\" enable_logs_sample\" : true, \" escalation_message\" : \" the situation has escalated\" , \" evaluation_delay\" : 700, \" include_tags\" : true, \" locked\" : false, \" new_host_delay\" : 600, \" no_data_timeframe\" : null, \" notification_preset_name\" : \" hide_handles\" , \" notify_audit\" : false, \" notify_no_data\" : false, \" on_missing_data\" : \" show_and_notify_no_data\" , \" renotify_interval\" : 60, \" require_full_window\" : true, \" thresholds\" : {\" critical\" : 2, \" warning\" : 1}, \" timeout_h\" : 24}, \" priority\" : 3, \" query\" : \" logs(\\\" service:foo AND type:error\\\" ).index(\\\" main\\\" ).rollup(\\\" count\\\" ).by(\\\" source\\\" ).last(\\\" 5m\\\" ) > 2\" , \" tags\" : [\" test:testvalidateanexistingmonitorreturnsokresponse1728485695 \" , \" env:ci\" ], \" type\" : \" log alert\" }"
3737 },
3838 "headers" : {},
3939 "method" : " POST" ,
40- "path" : " /api/v1/monitor/108260307 /validate" ,
40+ "path" : " /api/v1/monitor/155758542 /validate" ,
4141 "keepAlive" : false ,
4242 "secure" : true
4343 },
5757 "timeToLive" : {
5858 "unlimited" : true
5959 },
60- "id" : " b495ccaf-91c3-89cb-4434-e4eba81e682d "
60+ "id" : " 72438c8d-f745-1041-b074-2f21d93af386 "
6161 },
6262 {
6363 "httpRequest" : {
6464 "headers" : {},
6565 "method" : " DELETE" ,
66- "path" : " /api/v1/monitor/108260307 " ,
66+ "path" : " /api/v1/monitor/155758542 " ,
6767 "keepAlive" : false ,
6868 "secure" : true
6969 },
7070 "httpResponse" : {
71- "body" : " {\" deleted_monitor_id\" :108260307 }\n " ,
71+ "body" : " {\" deleted_monitor_id\" :155758542 }\n " ,
7272 "headers" : {
7373 "Content-Type" : [
7474 " application/json"
8383 "timeToLive" : {
8484 "unlimited" : true
8585 },
86- "id" : " 446ceaa5-6aae-6e10-9dba-bd3db5f74550 "
86+ "id" : " a5383955-300b-7364-7465-a9bf4e2bf5e4 "
8787 }
8888]
0 commit comments