Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSeriesIterators ¶ added in v0.15.3
func BuildSeriesIterators( series []IngestSeries, start xtime.UnixNano, blockSize time.Duration, opts Options, ) (encoding.SeriesIterators, error)
BuildSeriesIterators builds series iterators from parser data.
Types ¶
type Datapoints ¶
type Datapoints []Datapoint
Datapoints is a JSON serializeable list of values for the series.
type IngestSeries ¶ added in v0.15.3
IngestSeries is a series that can be ingested by the parser.
type Options ¶ added in v0.15.3
type Options struct {
EncoderPool encoding.EncoderPool
IteratorPools encoding.IteratorPools
TagOptions models.TagOptions
InstrumentOptions instrument.Options
Size int
}
Options are options for series parsing.
type Series ¶
type Series struct {
Start time.Time `json:"start"`
End time.Time `json:"end"`
Tags Tags `json:"tags"`
Datapoints Datapoints `json:"datapoints"`
// contains filtered or unexported fields
}
Series is a flat JSON serializable representation of the series.
type SeriesReader ¶ added in v0.15.3
type SeriesReader interface {
SeriesIterators(name string) (encoding.SeriesIterators, error)
Load(reader io.Reader) error
Clear()
}
SeriesReader reads SeriesIterators from a generic io.Reader.
func NewSeriesReader ¶ added in v0.15.3
func NewSeriesReader(opts Options) SeriesReader
NewSeriesReader creates a new SeriesReader that reads entries as a slice of Series.
type Tag ¶
type Tag [2]string
Tag is a simple JSON serializable representation of a tag.
type Value ¶
type Value float64
Value is a JSON serizlizable float64 that allows NaNs.
func (Value) MarshalJSON ¶
MarshalJSON returns state as the JSON encoding of a Value.
func (*Value) UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON-encoded data into a Value.