MCPcopy Create free account
hub / github.com/cortexproject/cortex / TimeSeriesV2

Struct TimeSeriesV2

pkg/cortexpb/cortex.pb.go:322–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322type TimeSeriesV2 struct {
323 LabelsRefs []uint32 `protobuf:"varint,1,rep,packed,name=labels_refs,json=labelsRefs,proto3" json:"labels_refs,omitempty"`
324 // Timeseries messages can either specify samples or (native) histogram samples
325 // (histogram field), but not both. For a typical sender (real-time metric
326 // streaming), in healthy cases, there will be only one sample or histogram.
327 //
328 // Samples and histograms are sorted by timestamp (older first).
329 Samples []Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples"`
330 Histograms []WrappedHistogram `protobuf:"bytes,3,rep,name=histograms,proto3,customtype=WrappedHistogram" json:"histograms"`
331 // exemplars represents an optional set of exemplars attached to this series' samples.
332 Exemplars []ExemplarV2 `protobuf:"bytes,4,rep,name=exemplars,proto3" json:"exemplars"`
333 // metadata represents the metadata associated with the given series' samples.
334 Metadata MetadataV2 `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata"`
335 // created_timestamp represents an optional created timestamp associated with
336 // this series' samples in ms format, typically for counter or histogram type
337 // metrics. Created timestamp represents the time when the counter started
338 // counting (sometimes referred to as start timestamp), which can increase
339 // the accuracy of query results.
340 //
341 // Note that some receivers might require this and in return fail to
342 // ingest such samples within the Request.
343 //
344 // For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go
345 // for conversion from/to time.Time to Prometheus timestamp.
346 //
347 // Note that the "optional" keyword is omitted due to
348 // https://cloud.google.com/apis/design/design_patterns.md#optional_primitive_fields
349 // Zero value means value not set. If you need to use exactly zero value for
350 // the timestamp, use 1 millisecond before or after.
351 CreatedTimestamp int64 `protobuf:"varint,6,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"`
352}
353
354func (m *TimeSeriesV2) Reset() { *m = TimeSeriesV2{} }
355func (*TimeSeriesV2) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected