--- http_interactions: - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/email body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '87' body: encoding: ASCII-8BIT string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions body: encoding: UTF-8 string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"notify-to-admins":"joe@acme.org"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json Content-Length: - '101' User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '151' body: encoding: ASCII-8BIT string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email","properties":{"notify-to-admins":"joe@acme.org"}}' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/trigger body: encoding: UTF-8 string: '{"trigger":{"id":"my-cool-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just a test trigger","actions":[{"actionPlugin":"email","actionId":"send-via-email","tenantId":null,"states":null}]},"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","triggerId":null}],"dampenings":[]}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json Content-Length: - '389' User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '835' body: encoding: ASCII-8BIT string: '{"trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-trigger","name":"Just a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"conditions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]}' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '505' body: encoding: ASCII-8BIT string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-trigger","name":"Just a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"}' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '304' body: encoding: ASCII-8BIT string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '2' body: encoding: ASCII-8BIT string: '[]' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: delete uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '0' body: encoding: UTF-8 string: '' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT - request: method: delete uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions/send-via-email/email body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 404 message: Not Found headers: Expires: - '0' Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Date: - Mon, 14 Mar 2016 10:49:44 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '80' body: encoding: ASCII-8BIT string: '{"errorMsg":"ActionPlugin: send-via-email ActionId: email not found for delete"}' http_version: recorded_at: Mon, 14 Mar 2016 10:49:44 GMT recorded_with: VCR 3.0.0