()
| 38 | } |
| 39 | |
| 40 | func (m *QueryStreamResponse) SamplesCount() (count int) { |
| 41 | for _, cs := range m.Chunkseries { |
| 42 | for _, c := range cs.Chunks { |
| 43 | switch c.Encoding { |
| 44 | case int32(encoding.PrometheusXorChunk), int32(encoding.PrometheusHistogramChunk), int32(encoding.PrometheusFloatHistogramChunk): |
| 45 | count += int(binary.BigEndian.Uint16(c.Data)) |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | return |
| 50 | } |
| 51 | |
| 52 | func (m *LabelMatcher) MatcherType() (labels.MatchType, error) { |
| 53 | var t labels.MatchType |
no outgoing calls