MCPcopy Index your code
hub / github.com/prometheus/alertmanager / String

Method String

notify/util.go:193–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193func (k Key) String() string {
194 return string(k)
195}
196
197// GetTemplateData creates the template data from the context and the alerts.
198func GetTemplateData(ctx context.Context, tmpl *template.Template, alerts []*types.Alert, l *slog.Logger) *template.Data {

Callers 15

fetchIndexAndAssetsFunction · 0.45
processAlertMethod · 0.45
MutesMethod · 0.45
NewInhibitRuleFunction · 0.45
extractAlertGroupInfoFunction · 0.45
ExecMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45
execMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45

Calls

no outgoing calls

Tested by 15

fetchIndexAndAssetsFunction · 0.36
TestTelegramUnmarshalFunction · 0.36
TestPagerDutyTemplatingFunction · 0.36
TestEventSizeEnforcementFunction · 0.36
TestEmailRejectedFunction · 0.36
mockSMTPServerFunction · 0.36
TestPushoverRedactedURLFunction · 0.36