optimize operations for the latest rule resources

Signed-off-by: junotx <junotx@126.com>
This commit is contained in:
junotx
2021-02-02 10:24:09 +08:00
parent 5e7f40e6b9
commit f57d91511d
2 changed files with 14 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ var (
ErrThanosRulerNotEnabled = errors.New("The request operation to custom alerting rule could not be done because thanos ruler is not enabled")
ErrAlertingRuleNotFound = errors.New("The alerting rule was not found")
ErrAlertingRuleAlreadyExists = errors.New("The alerting rule already exists")
ErrAlertingAPIV2NotEnabled = errors.New("The alerting v2 API was not enabled")
ErrAlertingAPIV2NotEnabled = errors.New("The alerting v2 API is not enabled")
templateTestData = template.AlertTemplateData(map[string]string{}, map[string]string{}, 0)
templateTestTextPrefix = "{{$labels := .Labels}}{{$externalLabels := .ExternalLabels}}{{$value := .Value}}"