Documentation ¶
Index ¶
- Constants
- func AggregateBySeries(aggregateBy string) bool
- func MapToVolumeResponse(mergedVolumes map[string]uint64, limit int) *logproto.VolumeResponse
- func Merge(responses []*logproto.VolumeResponse, limit int32) *logproto.VolumeResponse
- func ValidateAggregateBy(aggregateBy string) bool
- type Accumulator
Constants ¶
View Source
const ( MatchAny = "{}" DefaultLimit = 100 Series = "series" Labels = "labels" DefaultAggregateBy = Series ErrVolumeMaxSeriesHit = "the query hit the max number of series limit (limit: %d series)" )
Variables ¶
This section is empty.
Functions ¶
func AggregateBySeries ¶
func MapToVolumeResponse ¶
func MapToVolumeResponse(mergedVolumes map[string]uint64, limit int) *logproto.VolumeResponse
func Merge ¶
func Merge(responses []*logproto.VolumeResponse, limit int32) *logproto.VolumeResponse
func ValidateAggregateBy ¶
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
TODO(masslessparticle): Lock striping to reduce contention on this map
func NewAccumulator ¶
func NewAccumulator(limit int32, maxSize int) *Accumulator
func (*Accumulator) Volumes ¶
func (acc *Accumulator) Volumes() *logproto.VolumeResponse
Click to show internal directories.
Click to hide internal directories.