Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + type Error struct + Err error + Group string + Rule int + RuleName string + func (err *Error) Error() string + type Rule struct + Alert string + Annotations map[string]string + Expr string + For model.Duration + Labels map[string]string + Record string + func (r *Rule) Validate() (errs []error) + type RuleGroup struct + Interval model.Duration + Name string + Rules []Rule + type RuleGroups struct + Groups []RuleGroup + func Parse(content []byte) (*RuleGroups, []error) + func ParseFile(file string) (*RuleGroups, []error) + func (g *RuleGroups) Validate() (errs []error) Other modules containing this package github.com/zpascal/prometheus