MCPcopy
hub / github.com/prometheus/client_golang / NoDataWritten

Method NoDataWritten

exp/api/remote/remote_headers.go:174–176  ·  view source on GitHub ↗

NoDataWritten returns true if statistics indicate no data was written.

()

Source from the content-addressed store, hash-verified

172
173// NoDataWritten returns true if statistics indicate no data was written.
174func (s WriteResponseStats) NoDataWritten() bool {
175 return (s.Samples + s.Histograms + s.Exemplars) == 0
176}
177
178// AllSamples returns both float and histogram sample numbers.
179func (s WriteResponseStats) AllSamples() int {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected