Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 32b1edc

Browse files
author
Roberto Scudeller
committed
- Add OpsGenie Priority as annotations inside check annotations.
- Add Get, Close and Add Note functions to manage alerts already open.
1 parent a4e8805 commit 32b1edc

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic
66
Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [0.0.3] - 2019-08-02
9+
10+
### Added
11+
- Add OpsGenie Priority as annotations inside check annotations.
12+
- Add Get, Close and Add Note functions to manage alerts already open.
13+
814
## [0.0.2] - 2019-07-10
915

1016
### Added

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,28 @@ annotations:
9191
opsgenie_priority: "P1"
9292
```
9393

94+
Or inside check:
95+
```sh
96+
{
97+
"type": "CheckConfig",
98+
"api_version": "core/v2",
99+
"metadata": {
100+
"name": "interval_check",
101+
"namespace": "default",
102+
"annotations": {
103+
"opsgenie_priority": "P2"
104+
}
105+
},
106+
"spec": {
107+
"command": "check-cpu.sh -w 75 -c 90",
108+
"subscriptions": ["system"],
109+
"handlers": ["opsgenie"],
110+
"interval": 60,
111+
"publish": true
112+
}
113+
}
114+
```
115+
94116

95117
## Contributing
96118

0 commit comments

Comments
 (0)