--- http_interactions: - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '87' body: encoding: UTF-8 string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: post uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions body: encoding: UTF-8 string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Content-Length: - '111' Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '133' body: encoding: UTF-8 string: '{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: post uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/trigger body: encoding: UTF-8 string: '{"trigger":{"id":"my-cool-email-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":"GT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id1","data2Id":null,"data2Multiplier":null,"triggerId":null}],"dampenings":[]}' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Content-Length: - '434' Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '742' body: encoding: UTF-8 string: '{"trigger":{"tenantId":"hawkular","id":"my-cool-email-trigger","name":"Just a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"conditions":[{"tenantId":"hawkular","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]}' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '455' body: encoding: UTF-8 string: '{"tenantId":"hawkular","id":"my-cool-email-trigger","name":"Just a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"hawkular","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: Tue, 27 Sep 2016 18:17:18 GMT - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/conditions body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '261' body: encoding: UTF-8 string: '[{"tenantId":"hawkular","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/dampenings body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '2' body: encoding: UTF-8 string: "[]" http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: post uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/metrics/metrics/data body: encoding: UTF-8 string: '{"gauges":[{"id":"my-metric-id1","data":[{"timestamp":1475000238000,"value":42}]}],"counters":[],"availabilities":[],"strings":[]}' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Content-Length: - '130' Host: - localhost:8080 response: status: code: 200 message: OK headers: Expires: - '0' Connection: - keep-alive Cache-Control: - no-cache, no-store, must-revalidate X-Powered-By: - Undertow/1 Server: - WildFly/10 Pragma: - no-cache Content-Length: - '0' Date: - Tue, 27 Sep 2016 18:17:18 GMT body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '2' body: encoding: UTF-8 string: "[]" http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: get uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '2' body: encoding: UTF-8 string: "[]" http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: delete uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '0' body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT - request: method: delete uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions/email/send-via-email body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - identity User-Agent: - hawkular-client-ruby Hawkular-Tenant: - hawkular Content-Type: - application/json Host: - localhost:8080 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: - Tue, 27 Sep 2016 18:17:18 GMT Connection: - keep-alive Content-Type: - application/json Content-Length: - '0' body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 27 Sep 2016 18:17:18 GMT recorded_with: VCR 3.0.3