Skip to content

Commit

Permalink
Merge pull request #5 from machadovilaca/update-alert-validation-doc
Browse files Browse the repository at this point in the history
Mention our custom alert validations in documentation
  • Loading branch information
assafad committed Feb 28, 2024
2 parents 6720f1d + 0993e86 commit 4df875e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/AlertsAndRecordingRulesValidation.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ type AlertValidation = func(alert *promv1.Rule) []Problem
func (linter *Linter) AddCustomAlertValidations(validations ...AlertValidation)
```

You can define your own alert validation rules or use some custom validations exported and
available for usage in [pkg/testutil/alert_custom_validations.go](../pkg/testutil/alert_custom_validations.go).

### Linting

`LintRecordingRules(recordingRules []operatorrules.RecordingRule) []Problem`:
Expand Down

0 comments on commit 4df875e

Please sign in to comment.