Creating push_metrics() method to start pushing the URL latency, if it the metric id is configured.

This commit is contained in:
Mitsuo Takaki
2016-05-03 02:28:58 -07:00
parent a91a1ad0ea
commit f563526a2a
5 changed files with 38 additions and 17 deletions

View File

@@ -8,10 +8,10 @@ endpoint:
- type: LATENCY
threshold: 1
- type: REGEX
regex: ".*<body>.*"
regex: '.*<body>.*'
cachet:
api_url: http://status.cachethq.io/api/v1/
api_url: https://demo.cachethq.io/api/v1
token: my_token
component_id: 1
metric_id: 1
#metric_id: 1
frequency: 30