Versions in this module Expand all Collapse all v0 v0.0.22 Dec 15, 2025 v0.0.21 Nov 29, 2025 Changes in this version + func BuildMatchers(alertEvent *model.MonitorAlertEvent, l *zap.Logger, useName int8) ([]*labels.Matcher, error) + func CalculateAlertHash(pool *model.MonitorAlertManagerPool) string + func CalculatePromHash(pool *model.MonitorScrapePool) string + func CloneMap(original map[string]string) map[string]string + func CopyMap[K comparable, V any](src map[K]V) map[K]V + func DeepCopyScrapeConfig(sc *pc.ScrapeConfig) *pc.ScrapeConfig + func FormatMap(m map[string]string) string + func FromSliceTuMap(kvs []string) map[string]string + func GenPromDuration(seconds int) promModel.Duration + func ParseExternalLabels(labelsList []string) []string + func ParseTags(tags []string) (map[promModel.LabelName]promModel.LabelValue, error) + func ParseURL(u string) (*pcc.URL, error) + func PostWithJson(ctx context.Context, client *http.Client, l *zap.Logger, url string, ...) ([]byte, error) + func PromqlExprCheck(expr string) (bool, error) + func ValidateScrapeTiming(interval, timeout int) error