forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request influxdata#341 from influxdata/nc-issue#340
Decouple global setting from state-changes-only
- Loading branch information
Showing
11 changed files
with
86 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,14 +367,14 @@ type PostHandler struct { | |
// to = ["[email protected]"] | ||
// # Set global to true so all alert trigger emails. | ||
// global = true | ||
// state-changes-only = true | ||
// | ||
// Example: | ||
// stream... | ||
// .alert() | ||
// | ||
// Send email to '[email protected]' from '[email protected]' | ||
// | ||
// **NOTE**: The global option for email also implies stateChangesOnly is set on all alerts. | ||
// tick:property | ||
func (a *AlertNode) Email(to ...string) *EmailHandler { | ||
em := &EmailHandler{ | ||
|
@@ -596,14 +596,13 @@ type PagerDutyHandler struct { | |
// room = "Test Room" | ||
// token = "9hiWoDOZ9IbmHsOTeST123ABciWTIqXQVFDo63h9" | ||
// global = true | ||
// state-changes-only = true | ||
// | ||
// Example: | ||
// stream... | ||
// .alert() | ||
// | ||
// Send alert to HipChat using default room 'Test Room'. | ||
// **NOTE**: The global option for HipChat also implies stateChangesOnly is set on all alerts. | ||
// Also, the room can either be the room id (numerical) or the room name. | ||
// tick:property | ||
func (a *AlertNode) HipChat() *HipChatHandler { | ||
hipchat := &HipChatHandler{ | ||
|
@@ -797,14 +796,13 @@ type SensuHandler struct { | |
// url = "https://hooks.slack.com/services/xxxxxxxxx/xxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx" | ||
// channel = "#general" | ||
// global = true | ||
// state-changes-only = true | ||
// | ||
// Example: | ||
// stream... | ||
// .alert() | ||
// | ||
// Send alert to Slack using default channel '#general'. | ||
// **NOTE**: The global option for Slack also implies stateChangesOnly is set on all alerts. | ||
// tick:property | ||
func (a *AlertNode) Slack() *SlackHandler { | ||
slack := &SlackHandler{ | ||
AlertNode: a, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters