Skip to content

Commit 3a5f865

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove groupby_simple_monitor (#2203)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e9df6eb commit 3a5f865

12 files changed

+25
-30
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-09 13:48:31.125396",
8-
"spec_repo_commit": "a458c3a4"
7+
"regenerated": "2024-10-09 15:03:03.678250",
8+
"spec_repo_commit": "43ae024c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-09 13:48:31.266147",
13-
"spec_repo_commit": "a458c3a4"
12+
"regenerated": "2024-10-09 15:03:03.695757",
13+
"spec_repo_commit": "43ae024c"
1414
}
1515
}
1616
}

examples/v1/monitors/ValidateExistingMonitor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
enable_logs_sample=True,
3030
escalation_message="the situation has escalated",
3131
evaluation_delay=700,
32-
groupby_simple_monitor=True,
3332
include_tags=True,
3433
locked=False,
3534
new_host_delay=600,

examples/v1/monitors/ValidateMonitor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
enable_logs_sample=True,
2626
escalation_message="the situation has escalated",
2727
evaluation_delay=700,
28-
groupby_simple_monitor=True,
2928
include_tags=True,
3029
locked=False,
3130
new_host_delay=600,

examples/v1/monitors/ValidateMonitor_4247196452.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
escalation_message="the situation has escalated",
2626
evaluation_delay=700,
2727
group_retention_duration="2d",
28-
groupby_simple_monitor=False,
2928
include_tags=True,
3029
locked=False,
3130
new_host_delay=600,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-18T18:30:59.296Z
1+
2024-10-09T14:54:54.858Z

tests/v1/cassettes/test_scenarios/test_validate_a_monitor_returns_ok_response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
interactions:
22
- request:
3-
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_a_monitor_returns_OK_response-1674066659","options":{"enable_logs_sample":true,"escalation_message":"the
4-
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
3+
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_a_monitor_returns_OK_response-1728485694","options":{"enable_logs_sample":true,"escalation_message":"the
4+
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
55
AND type:error\").index(\"main\").rollup(\"count\").by(\"source\").last(\"5m\")
6-
> 2","tags":["test:testvalidateamonitorreturnsokresponse1674066659","env:ci"],"type":"log
6+
> 2","tags":["test:testvalidateamonitorreturnsokresponse1728485694","env:ci"],"type":"log
77
alert"}'
88
headers:
99
accept:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-09-30T16:41:33.797Z
1+
2024-10-09T14:54:55.290Z

tests/v1/cassettes/test_scenarios/test_validate_a_multialert_monitor_returns_ok_response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
interactions:
22
- request:
3-
body: '{"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
4-
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
3+
body: '{"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
4+
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
55
AND type:error\").index(\"main\").rollup(\"count\").by(\"source,status\").last(\"5m\")
6-
> 2","tags":["test:testvalidateamultialertmonitorreturnsokresponse1664556093","env:ci"],"type":"log
6+
> 2","tags":["test:testvalidateamultialertmonitorreturnsokresponse1728485695","env:ci"],"type":"log
77
alert"}'
88
headers:
99
accept:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-18T18:37:20.511Z
1+
2024-10-09T14:54:55.436Z

tests/v1/cassettes/test_scenarios/test_validate_an_existing_monitor_returns_ok_response.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
interactions:
22
- request:
3-
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_an_existing_monitor_returns_OK_response-1674067040","options":{"enable_logs_sample":true,"escalation_message":"the
3+
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_an_existing_monitor_returns_OK_response-1728485695","options":{"enable_logs_sample":true,"escalation_message":"the
44
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
55
AND type:error\").index(\"main\").rollup(\"count\").by(\"source\").last(\"5m\")
6-
> 2","tags":["test:testvalidateanexistingmonitorreturnsokresponse1674067040","env:ci"],"type":"log
6+
> 2","tags":["test:testvalidateanexistingmonitorreturnsokresponse1728485695","env:ci"],"type":"log
77
alert"}'
88
headers:
99
accept:
@@ -14,12 +14,12 @@ interactions:
1414
uri: https://api.datadoghq.com/api/v1/monitor
1515
response:
1616
body:
17-
string: '{"id":108260307,"org_id":321813,"type":"log alert","name":"Test-Validate_an_existing_monitor_returns_OK_response-1674067040","message":"some
18-
message Notify: @hipchat-channel","tags":["test:testvalidateanexistingmonitorreturnsokresponse1674067040","env:ci"],"query":"logs(\"service:foo
17+
string: '{"id":155758542,"org_id":321813,"type":"log alert","name":"Test-Validate_an_existing_monitor_returns_OK_response-1728485695","message":"some
18+
message Notify: @hipchat-channel","tags":["test:testvalidateanexistingmonitorreturnsokresponse1728485695","env:ci"],"query":"logs(\"service:foo
1919
AND type:error\").index(\"main\").rollup(\"count\").by(\"source\").last(\"5m\")
2020
> 2","options":{"enable_logs_sample":true,"escalation_message":"the situation
21-
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
22-
Data","creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com","id":1445416}}
21+
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
22+
Data","creator":{"name":"Anika Maskara","handle":"anika.maskara@datadoghq.com","email":"anika.maskara@datadoghq.com","id":7557262}}
2323
2424
'
2525
headers:
@@ -29,18 +29,18 @@ interactions:
2929
code: 200
3030
message: OK
3131
- request:
32-
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_an_existing_monitor_returns_OK_response-1674067040","options":{"enable_logs_sample":true,"escalation_message":"the
33-
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
32+
body: '{"message":"some message Notify: @hipchat-channel","name":"Test-Validate_an_existing_monitor_returns_OK_response-1728485695","options":{"enable_logs_sample":true,"escalation_message":"the
33+
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
3434
AND type:error\").index(\"main\").rollup(\"count\").by(\"source\").last(\"5m\")
35-
> 2","tags":["test:testvalidateanexistingmonitorreturnsokresponse1674067040","env:ci"],"type":"log
35+
> 2","tags":["test:testvalidateanexistingmonitorreturnsokresponse1728485695","env:ci"],"type":"log
3636
alert"}'
3737
headers:
3838
accept:
3939
- application/json
4040
content-type:
4141
- application/json
4242
method: POST
43-
uri: https://api.datadoghq.com/api/v1/monitor/108260307/validate
43+
uri: https://api.datadoghq.com/api/v1/monitor/155758542/validate
4444
response:
4545
body:
4646
string: '{}
@@ -58,10 +58,10 @@ interactions:
5858
accept:
5959
- application/json
6060
method: DELETE
61-
uri: https://api.datadoghq.com/api/v1/monitor/108260307
61+
uri: https://api.datadoghq.com/api/v1/monitor/155758542
6262
response:
6363
body:
64-
string: '{"deleted_monitor_id":108260307}
64+
string: '{"deleted_monitor_id":155758542}
6565
6666
'
6767
headers:

0 commit comments

Comments
 (0)