diff --git a/.apigentools-info b/.apigentools-info index b1f9c330e11..2694e57521e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-09 14:45:35.688547", - "spec_repo_commit": "79e7c933" + "regenerated": "2025-06-10 19:57:36.715372", + "spec_repo_commit": "593ab828" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-09 14:45:35.704920", - "spec_repo_commit": "79e7c933" + "regenerated": "2025-06-10 19:57:36.756633", + "spec_repo_commit": "593ab828" } } } \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.freeze index 55dce406e38..454c4bb29a3 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:02.871Z \ No newline at end of file +2025-04-10T10:29:43.940Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.json index f8579c6c8d9..a61faa94749 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_Bad_Request_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_bad_request_response-1743713882\",\"host:abc\"]},\"name\":\"test rule\",\"recipients\":[\"@slack-test-channel\",\"@jira-test\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_bad_request_response-1744280983\",\"host:abc\"]},\"name\":\"test rule\",\"recipients\":[\"@slack-test-channel\",\"@jira-test\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "91ecd173-4dcb-846d-34f5-1fa07a268817" + "id": "ca715863-18d9-8dab-d956-c3de955ebfc6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.freeze index d20cd994c4d..86ab3de39bc 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:03.005Z \ No newline at end of file +2025-04-10T10:29:44.273Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.json index ee0d6bbee2d..f50e201c482 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_monitor_notification_rule_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883\"]},\"name\":\"test rule\",\"recipients\":[\"slack-test-channel\",\"jira-test\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984\"]},\"name\":\"test rule\",\"recipients\":[\"slack-test-channel\",\"jira-test\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"id\":\"55959a04-463a-4579-8386-8c2ca120aa52\",\"attributes\":{\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883\"]},\"created_at\":\"2025-04-03T20:58:03.137650+00:00\",\"recipients\":[\"slack-test-channel\",\"jira-test\"],\"name\":\"test rule\",\"modified_at\":\"1970-01-01T00:00:00+00:00\"}}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984\"]},\"recipients\":[\"slack-test-channel\",\"jira-test\"],\"name\":\"test rule\",\"created_at\":\"2025-04-10T10:29:44.595607+00:00\",\"modified_at\":\"1970-01-01T00:00:00+00:00\"},\"id\":\"a3323ef6-2a04-4ef9-8de8-cbcff5c3c203\",\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "e2497b65-0461-9eaa-5eeb-36c854d59233" + "id": "662b9e66-b48e-20b0-3233-13a039dcef82" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/55959a04-463a-4579-8386-8c2ca120aa52", + "path": "/api/v2/monitor/notification_rule/a3323ef6-2a04-4ef9-8de8-cbcff5c3c203", "keepAlive": false, "secure": true }, @@ -52,6 +52,6 @@ "timeToLive": { "unlimited": true }, - "id": "279a9a1e-d299-a6cc-4bf4-2d7bc46bd358" + "id": "2f4a98e8-f9f9-ea2f-a8b4-a9806400e47d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.freeze index 3c3eea7d14c..2590d462ecd 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:03.324Z \ No newline at end of file +2025-04-10T10:29:46.694Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.json index 5402c60662e..2221c9c698c 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_Not_Found_response.json @@ -8,7 +8,7 @@ "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Monitor notification rule not found\"]}", + "body": "{\"errors\":[\"Monitor Notification Rule not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "f20498bf-1a3e-c9d7-0f5a-6a495ad1e2d2" + "id": "f20498bf-1a3e-c9d7-0f5a-6a495ad1e2d1" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.freeze index 66abae37fd4..c1dc706f2cb 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:03.428Z \ No newline at end of file +2025-04-10T10:29:47.053Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.json index 3b0a8444613..884bef3c895 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_monitor_notification_rule_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-delete_a_monitor_notification_rule_returns_ok_response-1743713883\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-delete_a_monitor_notification_rule_returns_ok_response-1744280987\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"id\":\"cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e\",\"attributes\":{\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"test rule\",\"created_at\":\"2025-04-03T20:58:03.555501+00:00\",\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"filter\":{\"tags\":[\"app:test-delete_a_monitor_notification_rule_returns_ok_response-1743713883\"]},\"recipients\":[\"slack-monitor-app\"]}}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}},\"attributes\":{\"filter\":{\"tags\":[\"app:test-delete_a_monitor_notification_rule_returns_ok_response-1744280987\"]},\"created_at\":\"2025-04-10T10:29:47.326243+00:00\",\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"1970-01-01T00:00:00+00:00\"},\"id\":\"66e399af-c07e-414d-b4f2-93e196d7b7b7\"},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "cc9c5eec-9fe0-5613-6313-f12924098385" + "id": "f29d6b1a-1390-0907-8849-e50300212a7b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e", + "path": "/api/v2/monitor/notification_rule/66e399af-c07e-414d-b4f2-93e196d7b7b7", "keepAlive": false, "secure": true }, @@ -52,18 +52,18 @@ "timeToLive": { "unlimited": true }, - "id": "48ef7220-800a-880b-4825-cf5ede8d013f" + "id": "eb4ba1ca-e100-619c-3b62-8ac1142bd6df" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e", + "path": "/api/v2/monitor/notification_rule/66e399af-c07e-414d-b4f2-93e196d7b7b7", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Monitor notification rule not found\"]}", + "body": "{\"errors\":[\"Monitor Notification Rule not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "48ef7220-800a-880b-4825-cf5ede8d0140" + "id": "eb4ba1ca-e100-619c-3b62-8ac1142bd6e0" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.freeze index a8e729593b8..4d52b4ac383 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:03.884Z \ No newline at end of file +2025-04-10T10:29:52.213Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.json index d502eba3a4f..c694f9006ed 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_Not_Found_response.json @@ -8,7 +8,7 @@ "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Monitor notification rule not found\"]}", + "body": "{\"errors\":[\"Monitor Notification Rule not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -23,6 +23,6 @@ "timeToLive": { "unlimited": true }, - "id": "62086be3-6bd7-9596-1d12-378b821b339f" + "id": "62086be3-6bd7-9596-1d12-378b821b339e" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.freeze index 3563f678407..23fa2591c91 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:04.007Z \ No newline at end of file +2025-04-10T10:29:52.537Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.json index e5e2bf3aab5..f637687d5af 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_monitor_notification_rule_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884\"]},\"created_at\":\"2025-04-03T20:58:04.156763+00:00\",\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"test rule\"},\"id\":\"8e0ab047-d891-476c-8fb1-da4d80ddc129\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"created_at\":\"2025-04-10T10:29:52.938158+00:00\",\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992\"]},\"recipients\":[\"slack-monitor-app\"],\"name\":\"test rule\",\"modified_at\":\"1970-01-01T00:00:00+00:00\"},\"id\":\"97afb4ac-6953-445f-9a0a-d225673449a6\",\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "7956666e-a8eb-6ba9-d7a5-8073d1a5aa7c" + "id": "593cae6e-8ecc-720f-3d97-37e2a6c63bce" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/monitor/notification_rule/8e0ab047-d891-476c-8fb1-da4d80ddc129", + "path": "/api/v2/monitor/notification_rule/97afb4ac-6953-445f-9a0a-d225673449a6", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"test rule\",\"created_at\":\"2025-04-03T20:58:04.156763+00:00\",\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"2025-04-03T20:58:04.164001+00:00\",\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884\"]}},\"id\":\"8e0ab047-d891-476c-8fb1-da4d80ddc129\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"name\":\"test rule\",\"created_at\":\"2025-04-10T10:29:52.938158+00:00\",\"recipients\":[\"slack-monitor-app\"],\"filter\":{\"tags\":[\"app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992\"]},\"modified_at\":\"2025-04-10T10:29:52.948837+00:00\"},\"id\":\"97afb4ac-6953-445f-9a0a-d225673449a6\"}}\n", "headers": { "Content-Type": [ "application/json" @@ -53,13 +53,13 @@ "timeToLive": { "unlimited": true }, - "id": "18f18e6d-f41d-a002-53cc-ccacf6a8bbd4" + "id": "13218d68-83b2-80c6-ceb6-9913c766f95b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/8e0ab047-d891-476c-8fb1-da4d80ddc129", + "path": "/api/v2/monitor/notification_rule/97afb4ac-6953-445f-9a0a-d225673449a6", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "a29e4653-0172-86a0-61b2-e0de4a552934" + "id": "d9e984e4-948b-aaa6-c707-88340a9b930f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.freeze index 1b1c436dada..2681e367739 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:04.487Z \ No newline at end of file +2025-04-10T10:29:54.937Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.json index 2e4a00348d0..01480b1d5d8 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_all_monitor_notification_rules_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884\"]},\"recipients\":[\"slack-monitor-app\"],\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"name\":\"test rule\",\"created_at\":\"2025-04-03T20:58:04.604345+00:00\"},\"id\":\"6e5b7a93-37b5-44b8-9098-2d31b6dd84b6\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"name\":\"test rule\",\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994\"]},\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"created_at\":\"2025-04-10T10:29:55.362004+00:00\"},\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}},\"id\":\"b7122864-6517-45d3-8dc1-f226a08dd8f4\"},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "52a915ad-0612-ed1d-fab9-ff3f6f2cbc61" + "id": "4231adbc-f9e7-f24e-f44b-96ee4320eb78" }, { "httpRequest": { @@ -38,7 +38,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"type\":\"monitor-notification-rule\",\"id\":\"6e5b7a93-37b5-44b8-9098-2d31b6dd84b6\",\"attributes\":{\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"],\"created_at\":\"2025-04-03T20:58:04.604345+00:00\",\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884\"]},\"modified_at\":\"2025-04-03T20:58:04.616893+00:00\"}}]}\n", + "body": "{\"data\":[{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"2025-04-10T10:29:55.373154+00:00\",\"created_at\":\"2025-04-10T10:29:55.362004+00:00\"},\"id\":\"b7122864-6517-45d3-8dc1-f226a08dd8f4\"}]}\n", "headers": { "Content-Type": [ "application/json" @@ -53,13 +53,13 @@ "timeToLive": { "unlimited": true }, - "id": "ed428a19-0762-a016-a6b7-d421239edb3a" + "id": "ed428a19-0762-a016-a6b7-d421239edb39" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/6e5b7a93-37b5-44b8-9098-2d31b6dd84b6", + "path": "/api/v2/monitor/notification_rule/b7122864-6517-45d3-8dc1-f226a08dd8f4", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "e335b389-b13a-e786-8b40-c0c8d57b491b" + "id": "9f8eb621-10d7-51ea-8e56-0410896e60e9" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.freeze index f00bc0a89c7..c547acf2ee0 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:04.953Z \ No newline at end of file +2025-04-10T10:29:56.210Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.json index 58b9e6ad01a..8665dc95916 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Bad_Request_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_bad_request_response-1743713884\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_bad_request_response-1744280996\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_bad_request_response-1743713884\"]},\"recipients\":[\"slack-monitor-app\"],\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"name\":\"test rule\",\"created_at\":\"2025-04-03T20:58:05.080336+00:00\"},\"id\":\"30523422-5ed5-477d-b310-211ab89031dc\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_bad_request_response-1744280996\"]},\"created_at\":\"2025-04-10T10:29:56.523436+00:00\",\"recipients\":[\"slack-monitor-app\"],\"name\":\"test rule\",\"modified_at\":\"1970-01-01T00:00:00+00:00\"},\"id\":\"f26ba0a6-1e84-4984-b061-4172a25a1332\",\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,17 +27,17 @@ "timeToLive": { "unlimited": true }, - "id": "291abe79-2f34-4a72-7e10-0188a03f04b1" + "id": "dc68b267-3b60-6e54-9c23-8bc58515432e" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_bad_request_response-1743713884\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"@slack-test-channel\"]},\"id\":\"30523422-5ed5-477d-b310-211ab89031dc\",\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_bad_request_response-1744280996\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"@slack-test-channel\"]},\"id\":\"f26ba0a6-1e84-4984-b061-4172a25a1332\",\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "PATCH", - "path": "/api/v2/monitor/notification_rule/30523422-5ed5-477d-b310-211ab89031dc", + "path": "/api/v2/monitor/notification_rule/f26ba0a6-1e84-4984-b061-4172a25a1332", "keepAlive": false, "secure": true }, @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "5ddf7d50-6e7f-4870-3ff1-edbbee9db1bf" + "id": "57bf6c51-f4db-330f-379d-7d3e18591084" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/30523422-5ed5-477d-b310-211ab89031dc", + "path": "/api/v2/monitor/notification_rule/f26ba0a6-1e84-4984-b061-4172a25a1332", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "0267be28-e973-f0d1-fb9f-113dc17cceed" + "id": "64bffc53-e078-952e-2d43-bfbd00d555dc" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.freeze index becae1657e7..2eae355308b 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:05.447Z \ No newline at end of file +2025-04-10T10:29:57.263Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.json index 6baabe030c4..9d1212e64d0 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_Not_Found_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_not_found_response-1743713885\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"slack-test-channel\",\"jira-test\"]},\"id\":\"00000000-0000-1234-0000-000000000000\",\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_not_found_response-1744280997\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"slack-test-channel\",\"jira-test\"]},\"id\":\"00000000-0000-1234-0000-000000000000\",\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "PATCH", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Monitor notification rule not found\"]}", + "body": "{\"errors\":[\"Monitor Notification Rule not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "dbb1eee5-d6e5-291a-3302-2dbb6966f098" + "id": "628841ca-a128-299d-5e13-8b1a9470b263" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.freeze index bb1ae037885..b7d42a44890 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.freeze @@ -1 +1 @@ -2025-04-03T20:58:05.597Z \ No newline at end of file +2025-04-10T10:29:57.629Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.json index d411456ac3e..c08d53de830 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_monitor_notification_rule_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_ok_response-1743713885\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_ok_response-1744280997\"]},\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"]},\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"recipients\":[\"slack-monitor-app\"],\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"created_at\":\"2025-04-03T20:58:05.737805+00:00\",\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_ok_response-1743713885\"]},\"name\":\"test rule\"},\"id\":\"f81c2483-18e3-4db3-ad1d-56e2e0ce41ef\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"name\":\"test rule\",\"recipients\":[\"slack-monitor-app\"],\"modified_at\":\"1970-01-01T00:00:00+00:00\",\"filter\":{\"tags\":[\"app:test-update_a_monitor_notification_rule_returns_ok_response-1744280997\"]},\"created_at\":\"2025-04-10T10:29:57.930349+00:00\"},\"id\":\"da2c8a3b-94ea-49be-a85b-39c5eff99d6a\",\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,22 +27,22 @@ "timeToLive": { "unlimited": true }, - "id": "262c0985-1992-c2c8-60ce-8a875d60bd21" + "id": "a98f8ac4-d010-c01c-7e07-bc74f9c6448f" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_ok_response-1743713885\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"slack-test-channel\"]},\"id\":\"f81c2483-18e3-4db3-ad1d-56e2e0ce41ef\",\"type\":\"monitor-notification-rule\"}}" + "json": "{\"data\":{\"attributes\":{\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_ok_response-1744280997\",\"host:abc\"]},\"name\":\"updated rule\",\"recipients\":[\"slack-test-channel\"]},\"id\":\"da2c8a3b-94ea-49be-a85b-39c5eff99d6a\",\"type\":\"monitor-notification-rule\"}}" }, "headers": {}, "method": "PATCH", - "path": "/api/v2/monitor/notification_rule/f81c2483-18e3-4db3-ad1d-56e2e0ce41ef", + "path": "/api/v2/monitor/notification_rule/da2c8a3b-94ea-49be-a85b-39c5eff99d6a", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"attributes\":{\"recipients\":[\"slack-test-channel\"],\"created_at\":\"2025-04-03T20:58:05.737806+00:00\",\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_ok_response-1743713885\",\"host:abc\"]},\"name\":\"updated rule\",\"modified_at\":\"2025-04-03T20:58:05.889695+00:00\",\"creator_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"},\"id\":\"f81c2483-18e3-4db3-ad1d-56e2e0ce41ef\"}}\n", + "body": "{\"data\":{\"type\":\"monitor-notification-rule\",\"id\":\"da2c8a3b-94ea-49be-a85b-39c5eff99d6a\",\"attributes\":{\"modified_at\":\"2025-04-10T10:29:58.320928+00:00\",\"recipients\":[\"slack-test-channel\"],\"name\":\"updated rule\",\"filter\":{\"tags\":[\"test:test-update_a_monitor_notification_rule_returns_ok_response-1744280997\",\"host:abc\"]},\"created_at\":\"2025-04-10T10:29:57.930349+00:00\"},\"relationships\":{\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":\"frog\",\"handle\":\"frog@datadoghq.com\",\"created_at\":\"2019-10-02T08:15:39.795051+00:00\",\"modified_at\":\"2025-04-07T20:19:46.118466+00:00\",\"email\":\"frog@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\",\"title\":null,\"verified\":true,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "e43745b3-29e0-a35d-86d7-f62588218297" + "id": "5d8a915a-d4fb-ca3f-07db-dbf76f88609f" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/monitor/notification_rule/f81c2483-18e3-4db3-ad1d-56e2e0ce41ef", + "path": "/api/v2/monitor/notification_rule/da2c8a3b-94ea-49be-a85b-39c5eff99d6a", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "9a92524c-a08c-af2b-307c-c3d6d7653049" + "id": "730c60e4-fa7f-30e5-8a1a-146641ea7397" } ] \ No newline at end of file