MCPcopy Create free account
hub / github.com/prometheus/common / Name

Method Name

model/alert.go:45–47  ·  view source on GitHub ↗

Name returns the name of the alert. It is equivalent to the "alertname" label.

()

Source from the content-addressed store, hash-verified

43
44// Name returns the name of the alert. It is equivalent to the "alertname" label.
45func (a *Alert) Name() string {
46 return string(a.Labels[AlertNameLabel])
47}
48
49// Fingerprint returns a unique hash for the alert. It is equivalent to
50// the fingerprint of the alert's label set.

Callers 2

StringMethod · 0.95
TestOAuth2WithFileFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestOAuth2WithFileFunction · 0.36