influxdb/notification
Chris Goller dbcdc8dc59
feat(notification/rule): add _version: 1 to HTTP body (#15028)
This adds the _version: 1 correctly to the body of the HTTP POST.

Additionally, this fixes the imports when using secrets.

The POSTed JSON body now is:

```json
{
  "_check_id": "046cac59e2aa3000",
  "_check_name": "High CPU User Usage",
  "_level": "crit",
  "_measurement": "notifications",
  "_message": "High CPU User Usage: rsavage.prod is crit",
  "_notification_endpoint_id": "046cad0c83aec000",
  "_notification_endpoint_name": "HTTP Endpoint",
  "_notification_rule_id": "046dff53d4183000",
  "_notification_rule_name": "HTTP Notification",
  "_source_measurement": "cpu",
  "_source_timestamp": 1567797375000000000,
  "_start": "2019-09-06T19:15:59Z",
  "_status_timestamp": 1567797376416632300,
  "_stop": "2019-09-06T19:16:20.362006739Z",
  "_time": "2019-09-06T19:16:20.609629338Z",
  "_type": "threshold",
  "_version": 1,
  "cpu": "cpu-total",
  "host": "rsavage.prod",
  "usage_user": 91.12278069517379
}
```
2019-09-06 16:21:27 -05:00
..
check Merge pull request #14962 from influxdata/fix_offset_must_be_smaller 2019-09-06 16:20:49 -04:00
endpoint feat(notification/endpoint): add headers to http endpoint 2019-09-06 12:38:42 -04:00
flux feat(notification/rule): add _version: 1 to HTTP body (#15028) 2019-09-06 16:21:27 -05:00
rule feat(notification/rule): add _version: 1 to HTTP body (#15028) 2019-09-06 16:21:27 -05:00
duration.go fix(notification): offset must be smaller than every 2019-09-05 11:20:59 -04:00
status.go fix(notification): fix the any checkLevel string 2019-09-05 15:11:43 -04:00
status_test.go Add Any to rule levels (#14866) 2019-08-29 17:46:00 -07:00
tag.go feat(swagger): notification rule tag filtering (#14793) 2019-08-28 09:25:54 -07:00
tag_test.go feat(swagger): notification rule tag filtering (#14793) 2019-08-28 09:25:54 -07:00