Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-09 13:48:28.712891",
"spec_repo_commit": "a458c3a4"
"regenerated": "2024-10-09 15:02:56.647690",
"spec_repo_commit": "43ae024c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-09 13:48:28.732891",
"spec_repo_commit": "a458c3a4"
"regenerated": "2024-10-09 15:02:56.665969",
"spec_repo_commit": "43ae024c"
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-01-18T18:30:59.296Z"
"2024-10-09T14:54:54.858Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "ff464b265a52dc41bfd86aba6b323872",
"_id": "204c5443ba9389bc72d5e4f9e3aa9972",
"_order": 0,
"cache": {},
"request": {
"bodySize": 791,
"bodySize": 761,
"cookies": [],
"headers": [
{
Expand All @@ -32,7 +32,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"message\":\"some message Notify: @hipchat-channel\",\"name\":\"Test-Validate_a_monitor_returns_OK_response-1674066659\",\"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:testvalidateamonitorreturnsokresponse1674066659\",\"env:ci\"],\"type\":\"log alert\"}"
"text": "{\"message\":\"some message Notify: @hipchat-channel\",\"name\":\"Test-Validate_a_monitor_returns_OK_response-1728485694\",\"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:testvalidateamonitorreturnsokresponse1728485694\",\"env:ci\"],\"type\":\"log alert\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/monitor/validate"
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 465,
"headersSize": 492,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-01-18T18:30:59.306Z",
"time": 301
"startedDateTime": "2024-10-09T14:54:54.865Z",
"time": 417
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-09-30T16:41:33.797Z"
"2024-10-09T14:54:55.290Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "d52889849c4e433be88c072aa18bcf71",
"_id": "aaae5e4df109932bb7b4280d7bfa8e79",
"_order": 0,
"cache": {},
"request": {
"bodySize": 834,
"bodySize": 803,
"cookies": [],
"headers": [
{
Expand All @@ -32,7 +32,7 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"message\":\"some message Notify: @hipchat-channel\",\"name\":\"Test-Validate_a_multi_alert_monitor_returns_OK_response-1664556093\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"group_retention_duration\":\"2d\",\"groupby_simple_monitor\":false,\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notify_audit\":false,\"notify_by\":[\"status\"],\"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,status\\\").last(\\\"5m\\\") > 2\",\"tags\":[\"test:testvalidateamultialertmonitorreturnsokresponse1664556093\",\"env:ci\"],\"type\":\"log alert\"}"
"text": "{\"message\":\"some message Notify: @hipchat-channel\",\"name\":\"Test-Validate_a_multi_alert_monitor_returns_OK_response-1728485695\",\"options\":{\"enable_logs_sample\":true,\"escalation_message\":\"the situation has escalated\",\"evaluation_delay\":700,\"group_retention_duration\":\"2d\",\"include_tags\":true,\"locked\":false,\"new_host_delay\":600,\"no_data_timeframe\":null,\"notify_audit\":false,\"notify_by\":[\"status\"],\"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,status\\\").last(\\\"5m\\\") > 2\",\"tags\":[\"test:testvalidateamultialertmonitorreturnsokresponse1728485695\",\"env:ci\"],\"type\":\"log alert\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/monitor/validate"
Expand All @@ -51,14 +51,14 @@
"value": "application/json"
}
],
"headersSize": 568,
"headersSize": 492,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-09-30T16:41:33.817Z",
"time": 672
"startedDateTime": "2024-10-09T14:54:55.292Z",
"time": 138
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-01-18T18:37:20.511Z"
"2024-10-09T14:54:55.436Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "a6398d92236de6af6e0c182ccfc97958",
"_id": "2d7f69c082d706ae2adf774fd2e93129",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"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\"}"
"text": "{\"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\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/monitor"
},
"response": {
"bodySize": 1182,
"bodySize": 1237,
"content": {
"mimeType": "application/json",
"size": 1182,
"text": "{\"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"
"size": 1237,
"text": "{\"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"
},
"cookies": [],
"headers": [
Expand All @@ -51,21 +51,21 @@
"value": "application/json"
}
],
"headersSize": 623,
"headersSize": 649,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-01-18T18:37:20.519Z",
"time": 242
"startedDateTime": "2024-10-09T14:54:55.439Z",
"time": 206
},
{
"_id": "b495ccaf91c389cb4434e4eba81e682d",
"_id": "72438c8df7451041b0742f21d93af386",
"_order": 0,
"cache": {},
"request": {
"bodySize": 810,
"bodySize": 780,
"cookies": [],
"headers": [
{
Expand All @@ -85,10 +85,10 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"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\"}"
"text": "{\"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\"}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/monitor/108260307/validate"
"url": "https://api.datadoghq.com/api/v1/monitor/155758542/validate"
},
"response": {
"bodySize": 3,
Expand All @@ -104,17 +104,17 @@
"value": "application/json"
}
],
"headersSize": 465,
"headersSize": 492,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-01-18T18:37:20.767Z",
"time": 202
"startedDateTime": "2024-10-09T14:54:55.650Z",
"time": 155
},
{
"_id": "446ceaa56aae6e109dbabd3db5f74550",
"_id": "a5383955300b73647465a9bf4e2bf5e4",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -131,14 +131,14 @@
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/monitor/108260307"
"url": "https://api.datadoghq.com/api/v1/monitor/155758542"
},
"response": {
"bodySize": 33,
"content": {
"mimeType": "application/json",
"size": 33,
"text": "{\"deleted_monitor_id\":108260307}\n"
"text": "{\"deleted_monitor_id\":155758542}\n"
},
"cookies": [],
"headers": [
Expand All @@ -147,14 +147,14 @@
"value": "application/json"
}
],
"headersSize": 489,
"headersSize": 516,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-01-18T18:37:20.975Z",
"time": 117
"startedDateTime": "2024-10-09T14:54:55.808Z",
"time": 223
}
],
"pages": [],
Expand Down
1 change: 0 additions & 1 deletion examples/v1/monitors/ValidateExistingMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const params: v1.MonitorsApiValidateExistingMonitorRequest = {
enableLogsSample: true,
escalationMessage: "the situation has escalated",
evaluationDelay: 700,
groupbySimpleMonitor: true,
includeTags: true,
locked: false,
newHostDelay: 600,
Expand Down
1 change: 0 additions & 1 deletion examples/v1/monitors/ValidateMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const params: v1.MonitorsApiValidateMonitorRequest = {
enableLogsSample: true,
escalationMessage: "the situation has escalated",
evaluationDelay: 700,
groupbySimpleMonitor: true,
includeTags: true,
locked: false,
newHostDelay: 600,
Expand Down
1 change: 0 additions & 1 deletion examples/v1/monitors/ValidateMonitor_4247196452.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const params: v1.MonitorsApiValidateMonitorRequest = {
escalationMessage: "the situation has escalated",
evaluationDelay: 700,
groupRetentionDuration: "2d",
groupbySimpleMonitor: false,
includeTags: true,
locked: false,
newHostDelay: 600,
Expand Down
1 change: 0 additions & 1 deletion features/v1/monitor_payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"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,
Expand Down
1 change: 0 additions & 1 deletion features/v1/multi_alert_monitor_payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"escalation_message": "the situation has escalated",
"evaluation_delay": 700,
"group_retention_duration": "2d",
"groupby_simple_monitor": false,
"include_tags": true,
"locked": false,
"new_host_delay": 600,
Expand Down
Loading