Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlertTarget: Enabling HTML Format option for AlertTargets #21

Merged
merged 2 commits into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ type Alert struct {
// ResolveAfterMinutes is the number of minutes the Condition must be un-met
// before the Alert is considered resolved
ResolveAfterMinutes int `json:"resolveAfterMinutes,omitempty"`

// Minutes to wait before re-sending notification of firing alert.
NotificationResendFrequencyMinutes int `json:"notificationResendFrequencyMinutes"`

// Severity is the severity of the Alert, and can be one of SEVERE,
// SMOKE, WARN or INFO
Expand Down
5 changes: 5 additions & 0 deletions target.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ type Target struct {
// EmailSubject is the subject of the email which will be sent for this Target
// (EMAIL targets only)
EmailSubject string `json:"emailSubject"`

// IsHTMLContent is a boolean value for wavefront to add HTML Boilerplate
// while using HTML Templates as email.
// (EMAIL targets only)
IsHtmlContent bool `json:"isHtmlContent"`

// ContentType is the content type for webhook posts (e.g. application/json)
// (WEBHOOK targets only)
Expand Down