|
3 | 3 | {
|
4 | 4 | "request": {
|
5 | 5 | "body": {
|
6 |
| - "string": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1719258906\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metrics\":[],\"query\":\"@test:true\"}],\"tags\":[],\"type\":\"log_detection\"}", |
| 6 | + "string": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1745494491\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metrics\":[],\"query\":\"@test:true\"}],\"tags\":[],\"type\":\"log_detection\"}", |
7 | 7 | "encoding": null
|
8 | 8 | },
|
9 | 9 | "headers": {
|
|
19 | 19 | },
|
20 | 20 | "response": {
|
21 | 21 | "body": {
|
22 |
| - "string": "{\"id\":\"eu8-b0k-wzc\",\"version\":1,\"name\":\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1719258906\",\"createdAt\":1719258906588,\"creationAuthorId\":1445416,\"isDefault\":false,\"isPartner\":false,\"isEnabled\":true,\"isDeleted\":false,\"isDeprecated\":false,\"queries\":[{\"query\":\"@test:true\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\"}],\"options\":{\"keepAlive\":3600,\"maxSignalDuration\":86400,\"detectionMethod\":\"threshold\",\"evaluationWindow\":900},\"cases\":[{\"name\":\"\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a > 0\"}],\"message\":\"Test rule\",\"tags\":[],\"hasExtendedTitle\":false,\"type\":\"log_detection\",\"filters\":[]}\n", |
| 22 | + "string": "{\"name\":\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1745494491\",\"createdAt\":1745494491502,\"isDefault\":false,\"isPartner\":false,\"isEnabled\":true,\"isBeta\":false,\"isDeleted\":false,\"isDeprecated\":false,\"queries\":[{\"query\":\"@test:true\",\"groupByFields\":[],\"hasOptionalGroupByFields\":false,\"distinctFields\":[],\"aggregation\":\"count\",\"name\":\"\",\"dataSource\":\"logs\"}],\"options\":{\"evaluationWindow\":900,\"detectionMethod\":\"threshold\",\"maxSignalDuration\":86400,\"keepAlive\":3600},\"cases\":[{\"name\":\"\",\"status\":\"info\",\"notifications\":[],\"condition\":\"a \\u003e 0\"}],\"message\":\"Test rule\",\"tags\":[],\"hasExtendedTitle\":false,\"type\":\"log_detection\",\"filters\":[],\"version\":1,\"id\":\"e60-iv6-d7e\",\"blocking\":false,\"metadata\":{\"entities\":null,\"sources\":null},\"creationAuthorId\":1445416,\"creator\":{\"handle\":\"[email protected]\",\"name\":\"frog\"},\"updater\":{\"handle\":\"\",\"name\":\"\"}}", |
23 | 23 | "encoding": null
|
24 | 24 | },
|
25 | 25 | "headers": {
|
|
32 | 32 | "message": "OK"
|
33 | 33 | }
|
34 | 34 | },
|
35 |
| - "recorded_at": "Mon, 24 Jun 2024 19:55:06 GMT" |
| 35 | + "recorded_at": "Thu, 24 Apr 2025 11:34:51 GMT" |
36 | 36 | },
|
37 | 37 | {
|
38 | 38 | "request": {
|
|
43 | 43 | ]
|
44 | 44 | },
|
45 | 45 | "method": "get",
|
46 |
| - "uri": "https://api.datadoghq.com/api/v2/security_monitoring/rules/eu8-b0k-wzc/convert" |
| 46 | + "uri": "https://api.datadoghq.com/api/v2/security_monitoring/rules/e60-iv6-d7e/convert" |
47 | 47 | },
|
48 | 48 | "response": {
|
49 | 49 | "body": {
|
50 |
| - "string": "{\"terraformContent\":\"resource \\\"datadog_security_monitoring_rule\\\" \\\"test-convert_an_existing_rule_from_json_to_terraform_returns_ok_response-1719258906\\\" {\\n\\tname = \\\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1719258906\\\"\\n\\tenabled = true\\n\\tquery {\\n\\t\\tquery = \\\"@test:true\\\"\\n\\t\\tgroup_by_fields = []\\n\\t\\tdistinct_fields = []\\n\\t\\taggregation = \\\"count\\\"\\n\\t\\tname = \\\"\\\"\\n\\t}\\n\\toptions {\\n\\t\\tkeep_alive = 3600\\n\\t\\tmax_signal_duration = 86400\\n\\t\\tdetection_method = \\\"threshold\\\"\\n\\t\\tevaluation_window = 900\\n\\t}\\n\\tcase {\\n\\t\\tname = \\\"\\\"\\n\\t\\tstatus = \\\"info\\\"\\n\\t\\tnotifications = []\\n\\t\\tcondition = \\\"a > 0\\\"\\n\\t}\\n\\tmessage = \\\"Test rule\\\"\\n\\ttags = []\\n\\thas_extended_title = false\\n\\ttype = \\\"log_detection\\\"\\n}\\n\"}\n", |
| 50 | + "string": "{\"terraformContent\":\"resource \\\"datadog_security_monitoring_rule\\\" \\\"test-convert_an_existing_rule_from_json_to_terraform_returns_ok_response-1745494491\\\" {\\n\\tname = \\\"Test-Convert_an_existing_rule_from_JSON_to_Terraform_returns_OK_response-1745494491\\\"\\n\\tenabled = true\\n\\tquery {\\n\\t\\tquery = \\\"@test:true\\\"\\n\\t\\tgroup_by_fields = []\\n\\t\\tdistinct_fields = []\\n\\t\\taggregation = \\\"count\\\"\\n\\t\\tname = \\\"\\\"\\n\\t\\tdata_source = \\\"logs\\\"\\n\\t}\\n\\toptions {\\n\\t\\tkeep_alive = 3600\\n\\t\\tmax_signal_duration = 86400\\n\\t\\tdetection_method = \\\"threshold\\\"\\n\\t\\tevaluation_window = 900\\n\\t}\\n\\tcase {\\n\\t\\tname = \\\"\\\"\\n\\t\\tstatus = \\\"info\\\"\\n\\t\\tnotifications = []\\n\\t\\tcondition = \\\"a \\u003e 0\\\"\\n\\t}\\n\\tmessage = \\\"Test rule\\\"\\n\\ttags = []\\n\\thas_extended_title = false\\n\\ttype = \\\"log_detection\\\"\\n}\\n\"}", |
51 | 51 | "encoding": null
|
52 | 52 | },
|
53 | 53 | "headers": {
|
|
60 | 60 | "message": "OK"
|
61 | 61 | }
|
62 | 62 | },
|
63 |
| - "recorded_at": "Mon, 24 Jun 2024 19:55:06 GMT" |
| 63 | + "recorded_at": "Thu, 24 Apr 2025 11:34:51 GMT" |
64 | 64 | },
|
65 | 65 | {
|
66 | 66 | "request": {
|
|
71 | 71 | ]
|
72 | 72 | },
|
73 | 73 | "method": "delete",
|
74 |
| - "uri": "https://api.datadoghq.com/api/v2/security_monitoring/rules/eu8-b0k-wzc" |
| 74 | + "uri": "https://api.datadoghq.com/api/v2/security_monitoring/rules/e60-iv6-d7e" |
75 | 75 | },
|
76 | 76 | "response": {
|
77 | 77 | "body": {
|
|
84 | 84 | "message": "No Content"
|
85 | 85 | }
|
86 | 86 | },
|
87 |
| - "recorded_at": "Mon, 24 Jun 2024 19:55:06 GMT" |
| 87 | + "recorded_at": "Thu, 24 Apr 2025 11:34:51 GMT" |
88 | 88 | }
|
89 | 89 | ],
|
90 | 90 | "recorded_with": "VCR 6.0.0"
|
|
0 commit comments