Versions in this module Expand all Collapse all v0 v0.3.0 Jul 8, 2016 Changes in this version + var DefaultEmailConfig = EmailConfig + var DefaultEmailSubject = `{{ template "email.default.subject" . }}` + var DefaultGlobalConfig = GlobalConfig + var DefaultHipchatConfig = HipchatConfig + var DefaultOpsGenieConfig = OpsGenieConfig + var DefaultPagerdutyConfig = PagerdutyConfig + var DefaultPushoverConfig = PushoverConfig + var DefaultSlackConfig = SlackConfig + var DefaultWebhookConfig = WebhookConfig + type Config struct + Global *GlobalConfig + InhibitRules []*InhibitRule + Receivers []*Receiver + Route *Route + Templates []string + XXX map[string]interface{} + func Load(s string) (*Config, error) + func LoadFile(filename string) (*Config, error) + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c Config) String() string + type EmailConfig struct + AuthIdentity string + AuthPassword Secret + AuthSecret Secret + AuthUsername string + From string + HTML string + Headers map[string]string + RequireTLS bool + Smarthost string + To string + XXX map[string]interface{} + func (c *EmailConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type GlobalConfig struct + HipchatAuthToken Secret + HipchatURL string + OpsGenieAPIHost string + PagerdutyURL string + ResolveTimeout model.Duration + SMTPAuthIdentity string + SMTPAuthPassword Secret + SMTPAuthSecret Secret + SMTPAuthUsername string + SMTPFrom string + SMTPSmarthost string + SlackAPIURL Secret + func (c *GlobalConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type HipchatConfig struct + APIURL string + AuthToken Secret + Color string + From string + Message string + MessageFormat string + Notify bool + RoomID string + XXX map[string]interface{} + func (c *HipchatConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type InhibitRule struct + Equal model.LabelNames + SourceMatch map[string]string + SourceMatchRE map[string]Regexp + TargetMatch map[string]string + TargetMatchRE map[string]Regexp + XXX map[string]interface{} + func (r *InhibitRule) UnmarshalYAML(unmarshal func(interface{}) error) error + type NotifierConfig struct + VSendResolved bool + func (nc *NotifierConfig) SendResolved() bool + type OpsGenieConfig struct + APIHost string + APIKey Secret + Description string + Details map[string]string + Source string + Tags string + Teams string + XXX map[string]interface{} + func (c *OpsGenieConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type PagerdutyConfig struct + Client string + ClientURL string + Description string + Details map[string]string + ServiceKey Secret + URL string + XXX map[string]interface{} + func (c *PagerdutyConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type PushoverConfig struct + Expire duration + Message string + Priority string + Retry duration + Title string + Token Secret + URL string + UserKey Secret + XXX map[string]interface{} + func (c *PushoverConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type Receiver struct + EmailConfigs []*EmailConfig + HipchatConfigs []*HipchatConfig + Name string + OpsGenieConfigs []*OpsGenieConfig + PagerdutyConfigs []*PagerdutyConfig + PushoverConfigs []*PushoverConfig + SlackConfigs []*SlackConfig + WebhookConfigs []*WebhookConfig + XXX map[string]interface{} + func (c *Receiver) UnmarshalYAML(unmarshal func(interface{}) error) error + type Regexp struct + func (re *Regexp) MarshalYAML() (interface{}, error) + func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error + type Route struct + Continue bool + GroupBy []model.LabelName + GroupInterval *model.Duration + GroupWait *model.Duration + Match map[string]string + MatchRE map[string]Regexp + Receiver string + RepeatInterval *model.Duration + Routes []*Route + XXX map[string]interface{} + func (r *Route) UnmarshalYAML(unmarshal func(interface{}) error) error + type Secret string + func (s Secret) MarshalYAML() (interface{}, error) + type SlackConfig struct + APIURL Secret + Channel string + Color string + Fallback string + IconEmoji string + Pretext string + Text string + Title string + TitleLink string + Username string + XXX map[string]interface{} + func (c *SlackConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type WebhookConfig struct + URL string + XXX map[string]interface{} + func (c *WebhookConfig) UnmarshalYAML(unmarshal func(interface{}) error) error