Skip to content

Commit 3ddf3de

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix cassettes and update given (#2525)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 749e3e2 commit 3ddf3de

21 files changed

+106
-106
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 23:04:48.898465",
8-
"spec_repo_commit": "672b8739"
7+
"regenerated": "2024-10-10 16:49:00.943995",
8+
"spec_repo_commit": "56b8bb9b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-09 23:04:48.918108",
13-
"spec_repo_commit": "672b8739"
12+
"regenerated": "2024-10-10 16:49:00.961997",
13+
"spec_repo_commit": "56b8bb9b"
1414
}
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-18T18:37:18.314Z
1+
2024-10-10T16:41:03.364Z

src/test/resources/cassettes/features/v1/Check_if_a_monitor_can_be_deleted_returns_OK_response.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Check_if_a_monitor_can_be_deleted_returns_OK_response-1674067038\", \"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:testcheckifamonitorcanbedeletedreturnsokresponse1674067038\", \"env:ci\"], \"type\": \"log alert\"}"
6+
"json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Check_if_a_monitor_can_be_deleted_returns_OK_response-1728578463\", \"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:testcheckifamonitorcanbedeletedreturnsokresponse1728578463\", \"env:ci\"], \"type\": \"log alert\"}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"id\":108260302,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Check_if_a_monitor_can_be_deleted_returns_OK_response-1674067038\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcheckifamonitorcanbedeletedreturnsokresponse1674067038\",\"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\":1674067038000,\"created\":\"2023-01-18T18:37:18.431658+00:00\",\"modified\":\"2023-01-18T18:37:18.431658+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\":155845287,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Check_if_a_monitor_can_be_deleted_returns_OK_response-1728578463\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcheckifamonitorcanbedeletedreturnsokresponse1728578463\",\"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,\"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,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1728578463000,\"created\":\"2024-10-10T16:41:03.666877+00:00\",\"modified\":\"2024-10-10T16:41:03.666877+00:00\",\"deleted\":null,\"restricted_roles\":null,\"priority\":3,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"id\":1445416}}\n",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,7 +27,7 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "af5bca72-0e29-c9bb-da23-83e609a34de0"
30+
"id": "62c1e3de-fa62-bf48-1b4b-4353145ae62f"
3131
},
3232
{
3333
"httpRequest": {
@@ -36,14 +36,14 @@
3636
"path": "/api/v1/monitor/can_delete",
3737
"queryStringParameters": {
3838
"monitor_ids": [
39-
"108260302"
39+
"155845287"
4040
]
4141
},
4242
"keepAlive": false,
4343
"secure": true
4444
},
4545
"httpResponse": {
46-
"body": "{\"data\":{\"ok\":[108260302]},\"errors\":null}\n",
46+
"body": "{\"data\":{\"ok\":[155845287]},\"errors\":null}\n",
4747
"headers": {
4848
"Content-Type": [
4949
"application/json"
@@ -58,18 +58,18 @@
5858
"timeToLive": {
5959
"unlimited": true
6060
},
61-
"id": "d8964720-f877-6ac6-a857-5906ceec018e"
61+
"id": "fe8eb621-0988-4b2c-2e0c-a4de081e1292"
6262
},
6363
{
6464
"httpRequest": {
6565
"headers": {},
6666
"method": "DELETE",
67-
"path": "/api/v1/monitor/108260302",
67+
"path": "/api/v1/monitor/155845287",
6868
"keepAlive": false,
6969
"secure": true
7070
},
7171
"httpResponse": {
72-
"body": "{\"deleted_monitor_id\":108260302}\n",
72+
"body": "{\"deleted_monitor_id\":155845287}\n",
7373
"headers": {
7474
"Content-Type": [
7575
"application/json"
@@ -84,6 +84,6 @@
8484
"timeToLive": {
8585
"unlimited": true
8686
},
87-
"id": "fad2a956-485e-96b4-99e0-993cd06954b3"
87+
"id": "7b83b1db-cc7a-0c77-8618-976742a2bf71"
8888
}
8989
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-18T18:37:16.146Z
1+
2024-10-10T16:45:37.005Z

src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_alert_graph_widget.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_graph_widget-1674067036\", \"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:testcreateanewdashboardwithalertgraphwidget1674067036\", \"env:ci\"], \"type\": \"log alert\"}"
6+
"json": "{\"message\": \"some message Notify: @hipchat-channel\", \"name\": \"Test-Create_a_new_dashboard_with_alert_graph_widget-1728578737\", \"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:testcreateanewdashboardwithalertgraphwidget1728578737\", \"env:ci\"], \"type\": \"log alert\"}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"id\":108260299,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1674067036\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertgraphwidget1674067036\",\"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\":1674067036000,\"created\":\"2023-01-18T18:37:16.358564+00:00\",\"modified\":\"2023-01-18T18:37:16.358564+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\":155845586,\"org_id\":321813,\"type\":\"log alert\",\"name\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1728578737\",\"message\":\"some message Notify: @hipchat-channel\",\"tags\":[\"test:testcreateanewdashboardwithalertgraphwidget1728578737\",\"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,\"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,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":true,\"created_at\":1728578737000,\"created\":\"2024-10-10T16:45:37.282544+00:00\",\"modified\":\"2024-10-10T16:45:37.282544+00:00\",\"deleted\":null,\"restricted_roles\":null,\"priority\":3,\"restriction_policy\":null,\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"id\":1445416}}\n",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"
@@ -27,13 +27,13 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "7cab4340-d73a-9dbc-5f31-0a5d03bdf56c"
30+
"id": "d706321f-2b8a-11b9-cf0b-d3b09b52288e"
3131
},
3232
{
3333
"httpRequest": {
3434
"body": {
3535
"type": "JSON",
36-
"json": "{\"description\":\"\",\"is_read_only\":false,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1674067036\",\"widgets\":[{\"definition\":{\"alert_id\":\"108260299\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}"
36+
"json": "{\"description\":\"\",\"is_read_only\":false,\"layout_type\":\"free\",\"notify_list\":[],\"template_variables\":[],\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1728578737\",\"widgets\":[{\"definition\":{\"alert_id\":\"155845586\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0}}]}"
3737
},
3838
"headers": {},
3939
"method": "POST",
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"notify_list\":[],\"description\":\"\",\"restricted_roles\":[],\"author_name\":null,\"template_variables\":[],\"is_read_only\":false,\"id\":\"tvp-85z-v2d\",\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1674067036\",\"url\":\"/dashboard/tvp-85z-v2d/test-createanewdashboardwithalertgraphwidget-1674067036\",\"created_at\":\"2023-01-18T18:37:16.495648+00:00\",\"modified_at\":\"2023-01-18T18:37:16.495648+00:00\",\"author_handle\":\"frog@datadoghq.com\",\"widgets\":[{\"definition\":{\"title_size\":\"16\",\"viz_type\":\"timeseries\",\"title\":\"\",\"title_align\":\"left\",\"alert_id\":\"108260299\",\"time\":{},\"type\":\"alert_graph\"},\"layout\":{\"y\":0,\"width\":47,\"x\":0,\"height\":15},\"id\":236119153104762}],\"layout_type\":\"free\"}\n",
45+
"body": "{\"id\":\"9y7-dzu-fqr\",\"title\":\"Test-Create_a_new_dashboard_with_alert_graph_widget-1728578737\",\"description\":\"\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"free\",\"url\":\"/dashboard/9y7-dzu-fqr/test-createanewdashboardwithalertgraphwidget-1728578737\",\"is_read_only\":false,\"template_variables\":[],\"widgets\":[{\"definition\":{\"alert_id\":\"155845586\",\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"alert_graph\",\"viz_type\":\"timeseries\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":7729343486286001}],\"notify_list\":[],\"created_at\":\"2024-10-10T16:45:37.490575+00:00\",\"modified_at\":\"2024-10-10T16:45:37.490575+00:00\",\"restricted_roles\":[]}\n",
4646
"headers": {
4747
"Content-Type": [
4848
"application/json"
@@ -57,18 +57,18 @@
5757
"timeToLive": {
5858
"unlimited": true
5959
},
60-
"id": "714e5eb4-1f13-3549-a38a-d019896c5ec1"
60+
"id": "b4ff48de-586a-27c9-94af-5d82e09b7b9a"
6161
},
6262
{
6363
"httpRequest": {
6464
"headers": {},
6565
"method": "DELETE",
66-
"path": "/api/v1/dashboard/tvp-85z-v2d",
66+
"path": "/api/v1/dashboard/9y7-dzu-fqr",
6767
"keepAlive": false,
6868
"secure": true
6969
},
7070
"httpResponse": {
71-
"body": "{\"deleted_dashboard_id\":\"tvp-85z-v2d\"}\n",
71+
"body": "{\"deleted_dashboard_id\":\"9y7-dzu-fqr\"}\n",
7272
"headers": {
7373
"Content-Type": [
7474
"application/json"
@@ -83,18 +83,18 @@
8383
"timeToLive": {
8484
"unlimited": true
8585
},
86-
"id": "7e0a0e07-ac53-fda0-b4f8-f11fb0cd9664"
86+
"id": "0834f466-2ca5-77ca-b120-f11d503b03b8"
8787
},
8888
{
8989
"httpRequest": {
9090
"headers": {},
9191
"method": "DELETE",
92-
"path": "/api/v1/monitor/108260299",
92+
"path": "/api/v1/monitor/155845586",
9393
"keepAlive": false,
9494
"secure": true
9595
},
9696
"httpResponse": {
97-
"body": "{\"deleted_monitor_id\":108260299}\n",
97+
"body": "{\"deleted_monitor_id\":155845586}\n",
9898
"headers": {
9999
"Content-Type": [
100100
"application/json"
@@ -109,6 +109,6 @@
109109
"timeToLive": {
110110
"unlimited": true
111111
},
112-
"id": "d1765d18-bd59-11d0-62ee-545b8379ef4b"
112+
"id": "2e16a3ef-f256-640c-8e5a-606622d21867"
113113
}
114114
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-01-18T18:37:16.878Z
1+
2024-10-10T16:45:04.791Z

0 commit comments

Comments
 (0)