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-1745494491 \" ,\" 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\" :\" _1166a375f2500467 \" ,\" 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" :
" {\" 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\" :\"\" }}" ,
15+ "body" :
" {\" name\" :\" _1166a375f2500467 \" ,\" createdAt\" :1755116024952 ,\" 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\" :\" shm-tx8-e8x \" ,\" blocking\" :false,\" metadata\" :{\" entities\" :null,\" sources\" :null},\" creationAuthorId\" :1445416,\" creator\" :{\" handle\" :\" [email protected] \" ,\" name\" :\" frog\" },\" updater\" :{\" handle\" :\"\" ,\" name\" :\"\" }}" ,
1616 "headers" : {
1717 "Content-Type" : [
1818 " application/json"
2727 "timeToLive" : {
2828 "unlimited" : true
2929 },
30- "id" : " a0052e92-0cc5-1afd-8479-25de6f328de4 "
30+ "id" : " 745201cb-80f6-ba64-8ed7-6d44e0bb9b2e "
3131 },
3232 {
3333 "httpRequest" : {
3434 "headers" : {},
3535 "method" : " GET" ,
36- "path" : " /api/v2/security_monitoring/rules/e60-iv6-d7e /convert" ,
36+ "path" : " /api/v2/security_monitoring/rules/shm-tx8-e8x /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-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\" }" ,
41+ "body" : " {\" terraformContent\" :\" resource \\\" datadog_security_monitoring_rule\\\" \\\" _1166a375f2500467 \\\" {\\ n\\ tname = \\\" _1166a375f2500467 \\\"\\ 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" : " d9e5f4a7-8eaa-3589-8987-3efd129df113 "
56+ "id" : " 9d3014a8-ac0f-ab57-30d4-0c2833845480 "
5757 },
5858 {
5959 "httpRequest" : {
6060 "headers" : {},
6161 "method" : " DELETE" ,
62- "path" : " /api/v2/security_monitoring/rules/e60-iv6-d7e " ,
62+ "path" : " /api/v2/security_monitoring/rules/shm-tx8-e8x " ,
6363 "keepAlive" : false ,
6464 "secure" : true
6565 },
7474 "timeToLive" : {
7575 "unlimited" : true
7676 },
77- "id" : " 453e930a-3f76-16fa-d5d2-8e2cc982beb0 "
77+ "id" : " 88a9924e-5c70-347c-e9be-b2ff15b95c10 "
7878 }
7979]
0 commit comments