mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
* feat(multihreading): each url has it's own thread * Fixing broken unit tests * Improving readability when there are multiple URLs registerd and creating new action to upload metrics * Improving error message when there's no file found * Bumping the version Co-authored-by: Alex Berenshtein <aberenshtein@yotpo.com>
This commit is contained in:
49
config.yml
49
config.yml
@@ -1,26 +1,27 @@
|
||||
endpoint:
|
||||
url: http://localhost:8080/swagger
|
||||
method: GET
|
||||
header:
|
||||
SOME-HEADER: SOME-VALUE
|
||||
timeout: 0.01
|
||||
expectation:
|
||||
- type: HTTP_STATUS
|
||||
status_range: 200-300
|
||||
incident: MAJOR
|
||||
- type: LATENCY
|
||||
threshold: 1
|
||||
- type: REGEX
|
||||
regex: '.*(<body).*'
|
||||
allowed_fails: 0
|
||||
endpoints:
|
||||
- name: swagger
|
||||
url: http://localhost:8080/swagger
|
||||
method: GET
|
||||
header:
|
||||
SOME-HEADER: SOME-VALUE
|
||||
timeout: 0.01
|
||||
expectation:
|
||||
- type: HTTP_STATUS
|
||||
status_range: 200-300
|
||||
incident: MAJOR
|
||||
- type: LATENCY
|
||||
threshold: 1
|
||||
- type: REGEX
|
||||
regex: '.*(<body).*'
|
||||
allowed_fails: 0
|
||||
frequency: 30
|
||||
component_id: 1
|
||||
metric_id: 1
|
||||
action:
|
||||
- CREATE_INCIDENT
|
||||
- UPDATE_STATUS
|
||||
public_incidents: true
|
||||
latency_unit: ms
|
||||
cachet:
|
||||
api_url: https://demo.cachethq.io/api/v1
|
||||
token: my_token
|
||||
component_id: 1
|
||||
#metric_id: 1
|
||||
action:
|
||||
- CREATE_INCIDENT
|
||||
- UPDATE_STATUS
|
||||
public_incidents: true
|
||||
latency_unit: ms
|
||||
frequency: 30
|
||||
token: my_token
|
||||
Reference in New Issue
Block a user