You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It also throws using the notifications field on a service.
field notifications not found in type struct { Checks []struct { Name string; Interval patrol.duration; Timeout patrol.duration; Cmd patrol.checkCmd; Type string; MetricUnit string "yaml:"unit"" }; OnFailure []*patrol.singleNotificationConfig "yaml:"on_failure""; OnRecovered []*patrol.singleNotificationConfig "yaml:"on_recovered""; OnSuccess []*patrol.singleNotificationConfig "yaml:"on_success"" }
The example config is unfortuanately incorrect. You should be able to use a top-level or service-level on_failure, on_recovered, and on_success. Just a note - notifications are only partially supported right now. You'll be able to fire off webhooks, but the templating isn't available yet.
Using the example config throws an error because the config type doesn't have a notifications field.
The text was updated successfully, but these errors were encountered: