|
| 1 | +--- |
| 2 | +version: 2 |
| 3 | +interactions: |
| 4 | + - id: 0 |
| 5 | + request: |
| 6 | + proto: HTTP/1.1 |
| 7 | + proto_major: 1 |
| 8 | + proto_minor: 1 |
| 9 | + content_length: 616 |
| 10 | + transfer_encoding: [] |
| 11 | + trailer: {} |
| 12 | + host: api.datadoghq.com |
| 13 | + remote_addr: "" |
| 14 | + request_uri: "" |
| 15 | + body: | |
| 16 | + {"cases":[{"condition":"first \u003e 0","name":"","notifications":[],"status":"high"}],"hasExtendedTitle":false,"isEnabled":false,"message":"acceptance rule triggered","name":"tf-TestAccDatadogSecurityMonitoringRule_AppSecSpansDeprecated-local-1768830816","options":{"detectionMethod":"threshold","evaluationWindow":300,"keepAlive":600,"maxSignalDuration":900},"queries":[{"aggregation":"count","dataSource":"app_sec_spans","distinctFields":[],"groupByFields":["service"],"hasOptionalGroupByFields":false,"metric":"","metrics":[],"name":"first","query":"@appsec.security_activity:*"}],"type":"application_security"} |
| 17 | + form: {} |
| 18 | + headers: |
| 19 | + Accept: |
| 20 | + - application/json |
| 21 | + Content-Type: |
| 22 | + - application/json |
| 23 | + url: https://api.datadoghq.com/api/v2/security_monitoring/rules |
| 24 | + method: POST |
| 25 | + response: |
| 26 | + proto: HTTP/1.1 |
| 27 | + proto_major: 1 |
| 28 | + proto_minor: 1 |
| 29 | + transfer_encoding: [] |
| 30 | + trailer: {} |
| 31 | + content_length: 957 |
| 32 | + uncompressed: false |
| 33 | + body: '{"name":"tf-TestAccDatadogSecurityMonitoringRule_AppSecSpansDeprecated-local-1768830816","createdAt":1768830820073,"isDefault":false,"isPartner":false,"isEnabled":false,"isBeta":false,"isDeleted":false,"isDeprecated":false,"queries":[{"query":"@appsec.security_activity:*","groupByFields":["service"],"hasOptionalGroupByFields":false,"distinctFields":[],"aggregation":"count","name":"first","dataSource":"app_sec_spans"}],"options":{"evaluationWindow":300,"detectionMethod":"threshold","maxSignalDuration":900,"keepAlive":600},"cases":[{"name":"","status":"high","notifications":[],"condition":"first \u003e 0"}],"message":"acceptance rule triggered","tags":[],"hasExtendedTitle":false,"type":"application_security","filters":[],"version":1,"id":"qpe-yxt-eie","blocking":false,"metadata":{"entities":null,"sources":null},"creationAuthorId":65094071,"creator":{"handle":"tanguy.lichau@datadoghq.com","name":"Tanguy Lichau"},"updater":{"handle":"","name":""}}' |
| 34 | + headers: |
| 35 | + Content-Type: |
| 36 | + - application/json |
| 37 | + status: 200 OK |
| 38 | + code: 200 |
| 39 | + duration: 184.057292ms |
| 40 | + - id: 1 |
| 41 | + request: |
| 42 | + proto: HTTP/1.1 |
| 43 | + proto_major: 1 |
| 44 | + proto_minor: 1 |
| 45 | + content_length: 0 |
| 46 | + transfer_encoding: [] |
| 47 | + trailer: {} |
| 48 | + host: api.datadoghq.com |
| 49 | + remote_addr: "" |
| 50 | + request_uri: "" |
| 51 | + body: "" |
| 52 | + form: {} |
| 53 | + headers: |
| 54 | + Accept: |
| 55 | + - application/json |
| 56 | + url: https://api.datadoghq.com/api/v2/security_monitoring/rules/qpe-yxt-eie |
| 57 | + method: GET |
| 58 | + response: |
| 59 | + proto: HTTP/1.1 |
| 60 | + proto_major: 1 |
| 61 | + proto_minor: 1 |
| 62 | + transfer_encoding: [] |
| 63 | + trailer: {} |
| 64 | + content_length: 957 |
| 65 | + uncompressed: false |
| 66 | + body: '{"name":"tf-TestAccDatadogSecurityMonitoringRule_AppSecSpansDeprecated-local-1768830816","createdAt":1768830820073,"isDefault":false,"isPartner":false,"isEnabled":false,"isBeta":false,"isDeleted":false,"isDeprecated":false,"queries":[{"query":"@appsec.security_activity:*","groupByFields":["service"],"hasOptionalGroupByFields":false,"distinctFields":[],"aggregation":"count","name":"first","dataSource":"app_sec_spans"}],"options":{"evaluationWindow":300,"detectionMethod":"threshold","maxSignalDuration":900,"keepAlive":600},"cases":[{"name":"","status":"high","notifications":[],"condition":"first \u003e 0"}],"message":"acceptance rule triggered","tags":[],"hasExtendedTitle":false,"type":"application_security","filters":[],"version":1,"id":"qpe-yxt-eie","blocking":false,"metadata":{"entities":null,"sources":null},"creationAuthorId":65094071,"creator":{"handle":"tanguy.lichau@datadoghq.com","name":"Tanguy Lichau"},"updater":{"handle":"","name":""}}' |
| 67 | + headers: |
| 68 | + Content-Type: |
| 69 | + - application/json |
| 70 | + status: 200 OK |
| 71 | + code: 200 |
| 72 | + duration: 649.4205ms |
| 73 | + - id: 2 |
| 74 | + request: |
| 75 | + proto: HTTP/1.1 |
| 76 | + proto_major: 1 |
| 77 | + proto_minor: 1 |
| 78 | + content_length: 0 |
| 79 | + transfer_encoding: [] |
| 80 | + trailer: {} |
| 81 | + host: api.datadoghq.com |
| 82 | + remote_addr: "" |
| 83 | + request_uri: "" |
| 84 | + body: "" |
| 85 | + form: {} |
| 86 | + headers: |
| 87 | + Accept: |
| 88 | + - application/json |
| 89 | + url: https://api.datadoghq.com/api/v2/security_monitoring/rules/qpe-yxt-eie |
| 90 | + method: GET |
| 91 | + response: |
| 92 | + proto: HTTP/1.1 |
| 93 | + proto_major: 1 |
| 94 | + proto_minor: 1 |
| 95 | + transfer_encoding: [] |
| 96 | + trailer: {} |
| 97 | + content_length: 957 |
| 98 | + uncompressed: false |
| 99 | + body: '{"name":"tf-TestAccDatadogSecurityMonitoringRule_AppSecSpansDeprecated-local-1768830816","createdAt":1768830820073,"isDefault":false,"isPartner":false,"isEnabled":false,"isBeta":false,"isDeleted":false,"isDeprecated":false,"queries":[{"query":"@appsec.security_activity:*","groupByFields":["service"],"hasOptionalGroupByFields":false,"distinctFields":[],"aggregation":"count","name":"first","dataSource":"app_sec_spans"}],"options":{"evaluationWindow":300,"detectionMethod":"threshold","maxSignalDuration":900,"keepAlive":600},"cases":[{"name":"","status":"high","notifications":[],"condition":"first \u003e 0"}],"message":"acceptance rule triggered","tags":[],"hasExtendedTitle":false,"type":"application_security","filters":[],"version":1,"id":"qpe-yxt-eie","blocking":false,"metadata":{"entities":null,"sources":null},"creationAuthorId":65094071,"creator":{"handle":"tanguy.lichau@datadoghq.com","name":"Tanguy Lichau"},"updater":{"handle":"","name":""}}' |
| 100 | + headers: |
| 101 | + Content-Type: |
| 102 | + - application/json |
| 103 | + status: 200 OK |
| 104 | + code: 200 |
| 105 | + duration: 128.227666ms |
| 106 | + - id: 3 |
| 107 | + request: |
| 108 | + proto: HTTP/1.1 |
| 109 | + proto_major: 1 |
| 110 | + proto_minor: 1 |
| 111 | + content_length: 0 |
| 112 | + transfer_encoding: [] |
| 113 | + trailer: {} |
| 114 | + host: api.datadoghq.com |
| 115 | + remote_addr: "" |
| 116 | + request_uri: "" |
| 117 | + body: "" |
| 118 | + form: {} |
| 119 | + headers: |
| 120 | + Accept: |
| 121 | + - '*/*' |
| 122 | + url: https://api.datadoghq.com/api/v2/security_monitoring/rules/qpe-yxt-eie |
| 123 | + method: DELETE |
| 124 | + response: |
| 125 | + proto: HTTP/1.1 |
| 126 | + proto_major: 1 |
| 127 | + proto_minor: 1 |
| 128 | + transfer_encoding: [] |
| 129 | + trailer: {} |
| 130 | + content_length: 0 |
| 131 | + uncompressed: false |
| 132 | + body: "" |
| 133 | + headers: {} |
| 134 | + status: 204 No Content |
| 135 | + code: 204 |
| 136 | + duration: 156.512625ms |
| 137 | + - id: 4 |
| 138 | + request: |
| 139 | + proto: HTTP/1.1 |
| 140 | + proto_major: 1 |
| 141 | + proto_minor: 1 |
| 142 | + content_length: 0 |
| 143 | + transfer_encoding: [] |
| 144 | + trailer: {} |
| 145 | + host: api.datadoghq.com |
| 146 | + remote_addr: "" |
| 147 | + request_uri: "" |
| 148 | + body: "" |
| 149 | + form: {} |
| 150 | + headers: |
| 151 | + Accept: |
| 152 | + - application/json |
| 153 | + url: https://api.datadoghq.com/api/v2/security_monitoring/rules/qpe-yxt-eie |
| 154 | + method: GET |
| 155 | + response: |
| 156 | + proto: HTTP/1.1 |
| 157 | + proto_major: 1 |
| 158 | + proto_minor: 1 |
| 159 | + transfer_encoding: [] |
| 160 | + trailer: {} |
| 161 | + content_length: 86 |
| 162 | + uncompressed: false |
| 163 | + body: '{"error":{"code":"NotFound","message":"Threat detection rule not found: qpe-yxt-eie"}}' |
| 164 | + headers: |
| 165 | + Content-Type: |
| 166 | + - application/json |
| 167 | + status: 404 Not Found |
| 168 | + code: 404 |
| 169 | + duration: 192.879917ms |
0 commit comments