Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch holds pending logs waiting to be sent to Vali. The aggregation of the logs is used to reduce the number of push request to the Vali
func NewBatch ¶
NewBatch returns a batch where the label set<ls>, timestamp<t> and the log line<line> are added to it.
func (*Batch) GetStreams ¶ added in v0.43.0
GetStreams returns batch streams
func (*Batch) SizeBytesAfter ¶
SizeBytesAfter returns the size of the batch after the log of the next entry is added
type Stream ¶
type Stream struct { Labels model.LabelSet Entries []Entry // contains filtered or unexported fields }
Stream contains a unique labels set as a string and a set of entries for it. We are not using the proto generated version but this custom one so that we can improve serialization see benchmark.
Click to show internal directories.
Click to hide internal directories.