Add slack

This commit is contained in:
Mac Chiang
2019-12-18 11:54:43 +08:00
parent df31238a1f
commit 43510e18e2
8 changed files with 126 additions and 7 deletions

3
cli/Makefile Normal file
View File

@@ -0,0 +1,3 @@
build:
docker build --pull -t ${PREFIX}/$$(gcloud config get-value project 2> /dev/null)/status-monitor:$(TAG) .

3
cli/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module main
go 1.13

View File

@@ -12,7 +12,7 @@ import (
"sync"
"github.com/Sirupsen/logrus"
cachet "github.com/castawaylabs/cachet-monitor"
cachet "github.com/macchiang/cachet-monitor"
docopt "github.com/docopt/docopt-go"
"github.com/mitchellh/mapstructure"
"gopkg.in/yaml.v2"
@@ -38,7 +38,7 @@ Options:
-h --help Show this screen.
--version Show version
--immediate Tick immediately (by default waits for first defined interval)
Environment varaibles:
CACHET_API override API url from configuration
CACHET_TOKEN override API token from configuration