33 "httpRequest" : {
44 "body" : {
55 "type" : " JSON" ,
6- "json" : " {\" 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+ "json" : " {\" 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\" }"
77 },
88 "headers" : {},
99 "method" : " POST" ,
1212 "secure" : true
1313 },
1414 "httpResponse" : {
15- "body" : " {\" 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 " ,
15+ "body" : " {\" 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 \" : \" frog@datadoghq.com \" , \" name \" : \" frog \" }, \" updater \" :{ \" handle \" : \"\" , \" name \" : \"\" }} " ,
1616 "headers" : {
1717 "Content-Type" : [
1818 " application/json"
2727 "timeToLive" : {
2828 "unlimited" : true
2929 },
30- "id" : " c96ac2df-4104-44c5-d951-9c5799ae5647 "
30+ "id" : " a0052e92-0cc5-1afd-8479-25de6f328de4 "
3131 },
3232 {
3333 "httpRequest" : {
3434 "headers" : {},
3535 "method" : " GET" ,
36- "path" : " /api/v2/security_monitoring/rules/eu8-b0k-wzc /convert" ,
36+ "path" : " /api/v2/security_monitoring/rules/e60-iv6-d7e /convert" ,
3737 "keepAlive" : false ,
3838 "secure" : true
3939 },
4040 "httpResponse" : {
41- "body" : " {\" 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 " ,
41+ "body" : " {\" 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\" }" ,
4242 "headers" : {
4343 "Content-Type" : [
4444 " application/json"
5353 "timeToLive" : {
5454 "unlimited" : true
5555 },
56- "id" : " a275424e-b01a-9e22-4f09-21502c0ab3e2 "
56+ "id" : " d9e5f4a7-8eaa-3589-8987-3efd129df113 "
5757 },
5858 {
5959 "httpRequest" : {
6060 "headers" : {},
6161 "method" : " DELETE" ,
62- "path" : " /api/v2/security_monitoring/rules/eu8-b0k-wzc " ,
62+ "path" : " /api/v2/security_monitoring/rules/e60-iv6-d7e " ,
6363 "keepAlive" : false ,
6464 "secure" : true
6565 },
7474 "timeToLive" : {
7575 "unlimited" : true
7676 },
77- "id" : " 8a82e9fa-9f0c-3c4b-4023-08121880806a "
77+ "id" : " 453e930a-3f76-16fa-d5d2-8e2cc982beb0 "
7878 }
7979]
0 commit comments