Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + type Config struct + AlertmanagerConfig string + RulesConfig RulesConfig + TemplateFiles map[string]string + func (c *Config) UnmarshalJSON(data []byte) error + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c Config) MarshalJSON() ([]byte, error) + func (c Config) MarshalYAML() (interface{}, error) + type ID int + type RuleFormatVersion int + const RuleFormatV1 + const RuleFormatV2 + func (v *RuleFormatVersion) UnmarshalJSON(data []byte) error + func (v *RuleFormatVersion) UnmarshalYAML(unmarshal func(interface{}) error) error + func (v RuleFormatVersion) IsValid() bool + func (v RuleFormatVersion) MarshalJSON() ([]byte, error) + func (v RuleFormatVersion) MarshalYAML() (interface{}, error) + type RulesConfig struct + Files map[string]string + FormatVersion RuleFormatVersion + func (c RulesConfig) Equal(o RulesConfig) bool + func (c RulesConfig) Parse() (map[string][]rules.Rule, error) + func (c RulesConfig) ParseFormatted() (map[string]rulefmt.RuleGroups, error) + type VersionedRulesConfig struct + Config RulesConfig + DeletedAt time.Time + ID ID + func (vr VersionedRulesConfig) IsDeleted() bool + type View struct + Config Config + DeletedAt time.Time + ID ID + func (v View) GetVersionedRulesConfig() *VersionedRulesConfig + func (v View) IsDeleted() bool