MCPcopy
hub / github.com/prometheus/prometheus / WriteResponseStats

Struct WriteResponseStats

storage/remote/stats.go:29–42  ·  view source on GitHub ↗

WriteResponseStats represents the response write statistics specified in https://github.com/prometheus/docs/pull/2486

Source from the content-addressed store, hash-verified

27
28// WriteResponseStats represents the response write statistics specified in https://github.com/prometheus/docs/pull/2486
29type WriteResponseStats struct {
30 // Samples represents X-Prometheus-Remote-Write-Written-Samples
31 Samples int
32 // Histograms represents X-Prometheus-Remote-Write-Written-Histograms
33 Histograms int
34 // Exemplars represents X-Prometheus-Remote-Write-Written-Exemplars
35 Exemplars int
36
37 // Confirmed means we can trust those statistics from the point of view
38 // of the PRW 2.0 spec. When parsed from headers, it means we got at least one
39 // response header from the Receiver to confirm those numbers, meaning it must
40 // be a at least 2.0 Receiver. See ParseWriteResponseStats for details.
41 Confirmed bool
42}
43
44// NoDataWritten returns true if statistics indicate no data was written.
45func (s WriteResponseStats) NoDataWritten() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected