fix(alerting): Resolve issue with blank GoogleChat messages (#364)
* debug: Print GoogleChat request body * chore: Update TwiN/whois to v1.1.0 * fix: Add missing client changes * test: Improve DNS tests * chore: Remove accidental change * docs: Add note for future change to default behavior * fix(alerting): Don't include URL in Google Chat alert if endpoint type isn't HTTP Fixes #362
This commit is contained in:
@ -79,6 +79,7 @@ func (alert Alert) GetDescription() string {
|
||||
// IsEnabled returns whether an alert is enabled or not
|
||||
func (alert Alert) IsEnabled() bool {
|
||||
if alert.Enabled == nil {
|
||||
// TODO: Default to true in v5.0.0 (unless default-alert.enabled is set to false)
|
||||
return false
|
||||
}
|
||||
return *alert.Enabled
|
||||
|
Reference in New Issue
Block a user