MCPcopy
hub / github.com/prometheus/prometheus / String

Method String

rules/rule.go:45–45  ·  view source on GitHub ↗

String returns a human-readable string representation of the rule.

()

Source from the content-addressed store, hash-verified

43 Eval(ctx context.Context, queryOffset time.Duration, evaluationTime time.Time, queryFunc QueryFunc, externalURL *url.URL, limit int) (promql.Vector, error)
44 // String returns a human-readable string representation of the rule.
45 String() string
46 // Query returns the rule query expression.
47 Query() parser.Expr
48 // SetLastError sets the current error experienced by the rule.

Callers 15

TestBlockWriterFunction · 0.65
requireEqualSamplesFunction · 0.65
nextMethod · 0.65
TestPostingsForMatchersFunction · 0.65
TestPostingsForMatcherFunction · 0.65
TestLeveledCompactorFunction · 0.65
debugCircularBufferFunction · 0.65
CreateBlockFunction · 0.65

Implementers 3

AlertingRulerules/alerting.go
unknownRulerules/origin_test.go
RecordingRulerules/recording.go

Calls

no outgoing calls

Tested by 15

TestBlockWriterFunction · 0.52
TestPostingsForMatchersFunction · 0.52
TestPostingsForMatcherFunction · 0.52
TestLeveledCompactorFunction · 0.52
debugCircularBufferFunction · 0.52
queryHelperFunction · 0.52
queryChunksFunction · 0.52
TestDBAppenderAddRefFunction · 0.52