Skip to content

RuleGroupBuilder🔗

Constructor🔗

func NewRuleGroupBuilder(title string) *RuleGroupBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *RuleGroupBuilder) Build() (RuleGroup, error)

FolderUid🔗

func (builder *RuleGroupBuilder) FolderUid(folderUid string) *RuleGroupBuilder

Interval🔗

The interval, in seconds, at which all rules in the group are evaluated.

If a group contains many rules, the rules are evaluated sequentially.

func (builder *RuleGroupBuilder) Interval(interval alerting.Duration) *RuleGroupBuilder

Rules🔗

func (builder *RuleGroupBuilder) Rules(rules []cog.Builder[alerting.Rule]) *RuleGroupBuilder

Title🔗

func (builder *RuleGroupBuilder) Title(title string) *RuleGroupBuilder

WithRule🔗

func (builder *RuleGroupBuilder) WithRule(rule cog.Builder[alerting.Rule]) *RuleGroupBuilder

See also🔗