Skip to content

Commit

Permalink
Add to readme, remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkramny committed May 19, 2016
1 parent 6e9f544 commit 9d0e176
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ type Monitor struct {
ComponentID int `json:"component_id"`

// Threshold = percentage
Threshold float32 `json:"threshold"`
// Saturat
ExpectedStatusCode int `json:"expected_status_code"`
Threshold float32 `json:"threshold"`
ExpectedStatusCode int `json:"expected_status_code"`
// compiled to Regexp
ExpectedBody string `json:"expected_body"`
bodyRegexp *regexp.Regexp
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,10 @@ We made this tool because we felt the need to have our own monitoring software (
The idea is a stateless program which collects data and pushes it to a central cachet instance.

This gives us power to have an army of geographically distributed loggers and reveal issues in both latency & downtime on client websites.

Package usage
-------------

When using `cachet-monitor` as a package in another program, you should follow what `cli/main.go` does. It is important to call `ValidateConfiguration` on `CachetMonitor` and all the monitors inside.

[API Documentation](https://godoc.org/github.com/CastawayLabs/cachet-monitor)

0 comments on commit 9d0e176

Please sign in to comment.