Beginning of incident reporting

This commit is contained in:
Matej Kramny
2015-03-16 01:44:48 +01:00
parent 1cadc9b3b3
commit f478ad9895
5 changed files with 91 additions and 16 deletions

11
main.go
View File

@@ -6,10 +6,17 @@ import (
)
func main() {
monitors := []cachet.Monitor{
cachet.Monitor{
monitors := []*cachet.Monitor{
/*&cachet.Monitor{
Url: "https://nodegear.io/ping",
MetricId: 1,
Threshold: 80.0,
},*/
&cachet.Monitor{
Url: "http://localhost:1337",
MetricId: 1,
Threshold: 80.0,
ExpectedStatusCode: 200,
},
}