Documentation ¶
Index ¶
Constants ¶
View Source
const ( LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" TypeSlack = "slack" TypeEmail = "email" TypePagerDuty = "pagerduty" // # of letter indices fitting in 63 bits )
Variables ¶
This section is empty.
Functions ¶
func CreateNameStub ¶
func GenerateRandomString ¶
GenerateRandomString borrowed from here https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go
func IsAlertEqual ¶
func IsAlertEqual(rule rulefmt.RuleNode, grafanaRule grafana_alerts.GrafanaAlertRule) bool
IsAlertEqual compares two AlertRule objects for equality.
func ParseDuration ¶
ParseDuration turns a duration string (example: 5m, 1h) into an int64 value
Types ¶
Click to show internal directories.
Click to hide internal directories.