MCPcopy Create free account
hub / github.com/cortexproject/cortex / ruleGroupWithRule

Function ruleGroupWithRule

integration/ruler_test.go:1853–1863  ·  view source on GitHub ↗
(groupName string, ruleName string, expression string)

Source from the content-addressed store, hash-verified

1851}
1852
1853func ruleGroupWithRule(groupName string, ruleName string, expression string) rulefmt.RuleGroup {
1854 // Prepare rule group with invalid rule.
1855 return rulefmt.RuleGroup{
1856 Name: groupName,
1857 Interval: 10,
1858 Rules: []rulefmt.Rule{{
1859 Record: ruleName,
1860 Expr: expression,
1861 }},
1862 }
1863}
1864
1865func alertRuleWithKeepFiringFor(groupName string, ruleName string, expression string, keepFiring model.Duration) rulefmt.RuleGroup {
1866 return rulefmt.RuleGroup{

Calls

no outgoing calls

Tested by

no test coverage detected