v1

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetrics        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetrics          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AggregationTemporality_name = map[int32]string{
	0: "AGGREGATION_TEMPORALITY_UNSPECIFIED",
	1: "AGGREGATION_TEMPORALITY_DELTA",
	2: "AGGREGATION_TEMPORALITY_CUMULATIVE",
}
View Source
var AggregationTemporality_value = map[string]int32{
	"AGGREGATION_TEMPORALITY_UNSPECIFIED": 0,
	"AGGREGATION_TEMPORALITY_DELTA":       1,
	"AGGREGATION_TEMPORALITY_CUMULATIVE":  2,
}

Functions

This section is empty.

Types

type AggregationTemporality added in v0.14.0

type AggregationTemporality int32

AggregationTemporality defines how a metric aggregator reports aggregated values. It describes how those values relate to the time interval over which they are aggregated.

const (
	// UNSPECIFIED is the default AggregationTemporality, it MUST not be used.
	AggregationTemporality_AGGREGATION_TEMPORALITY_UNSPECIFIED AggregationTemporality = 0
	// DELTA is an AggregationTemporality for a metric aggregator which reports
	// changes since last report time. Successive metrics contain aggregation of
	// values from continuous and non-overlapping intervals.
	//
	// The values for a DELTA metric are based only on the time interval
	// associated with one measurement cycle. There is no dependency on
	// previous measurements like is the case for CUMULATIVE metrics.
	//
	// For example, consider a system measuring the number of requests that
	// it receives and reports the sum of these requests every second as a
	// DELTA metric:
	//
	//   1. The system starts receiving at time=t_0.
	//   2. A request is received, the system measures 1 request.
	//   3. A request is received, the system measures 1 request.
	//   4. A request is received, the system measures 1 request.
	//   5. The 1 second collection cycle ends. A metric is exported for the
	//      number of requests received over the interval of time t_0 to
	//      t_0+1 with a value of 3.
	//   6. A request is received, the system measures 1 request.
	//   7. A request is received, the system measures 1 request.
	//   8. The 1 second collection cycle ends. A metric is exported for the
	//      number of requests received over the interval of time t_0+1 to
	//      t_0+2 with a value of 2.
	AggregationTemporality_AGGREGATION_TEMPORALITY_DELTA AggregationTemporality = 1
	// CUMULATIVE is an AggregationTemporality for a metic aggregator which
	// reports changes since a fixed start time. This means that current values
	// of a CUMULATIVE metric depend on all previous measurements since the
	// start time. Because of this, the sender is required to retain this state
	// in some form. If this state is lost or invalidated, the CUMULATIVE metric
	// values MUST be reset and a new fixed start time following the last
	// reported measurement time sent MUST be used.
	//
	// For example, consider a system measuring the number of requests that
	// it receives and reports the sum of these requests every second as a
	// CUMULATIVE metric:
	//
	//   1. The system starts receiving at time=t_0.
	//   2. A request is received, the system measures 1 request.
	//   3. A request is received, the system measures 1 request.
	//   4. A request is received, the system measures 1 request.
	//   5. The 1 second collection cycle ends. A metric is exported for the
	//      number of requests received over the interval of time t_0 to
	//      t_0+1 with a value of 3.
	//   6. A request is received, the system measures 1 request.
	//   7. A request is received, the system measures 1 request.
	//   8. The 1 second collection cycle ends. A metric is exported for the
	//      number of requests received over the interval of time t_0 to
	//      t_0+2 with a value of 5.
	//   9. The system experiences a fault and loses state.
	//   10. The system recovers and resumes receiving at time=t_1.
	//   11. A request is received, the system measures 1 request.
	//   12. The 1 second collection cycle ends. A metric is exported for the
	//      number of requests received over the interval of time t_1 to
	//      t_0+1 with a value of 1.
	//
	// Note: Even though, when reporting changes since last report time, using
	// CUMULATIVE is valid, it is not recommended. This may cause problems for
	// systems that do not use start_time to determine when the aggregation
	// value was reset (e.g. Prometheus).
	AggregationTemporality_AGGREGATION_TEMPORALITY_CUMULATIVE AggregationTemporality = 2
)

func (AggregationTemporality) EnumDescriptor added in v0.14.0

func (AggregationTemporality) EnumDescriptor() ([]byte, []int)

func (AggregationTemporality) String added in v0.14.0

func (x AggregationTemporality) String() string

type DoubleDataPoint

type DoubleDataPoint struct {
	// The set of labels that uniquely identify this timeseries.
	Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// start_time_unix_nano is the last time when the aggregation value was reset
	// to "zero". For some metric types this is ignored, see data types for more
	// details.
	//
	// The aggregation value is over the time interval (start_time_unix_nano,
	// time_unix_nano].
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	//
	// Value of 0 indicates that the timestamp is unspecified. In that case the
	// timestamp may be decided by the backend.
	StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
	// time_unix_nano is the moment when this aggregation value was reported.
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// value itself.
	Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"`
	// (Optional) List of exemplars collected from
	// measurements that were used to form the data point
	Exemplars            []*DoubleExemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.

func (*DoubleDataPoint) Descriptor

func (*DoubleDataPoint) Descriptor() ([]byte, []int)

func (*DoubleDataPoint) GetExemplars added in v0.14.0

func (m *DoubleDataPoint) GetExemplars() []*DoubleExemplar

func (*DoubleDataPoint) GetLabels

func (m *DoubleDataPoint) GetLabels() []*v11.StringKeyValue

func (*DoubleDataPoint) GetStartTimeUnixNano

func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleDataPoint) GetTimeUnixNano

func (m *DoubleDataPoint) GetTimeUnixNano() uint64

func (*DoubleDataPoint) GetValue

func (m *DoubleDataPoint) GetValue() float64

func (*DoubleDataPoint) Marshal

func (m *DoubleDataPoint) Marshal() (dAtA []byte, err error)

func (*DoubleDataPoint) MarshalTo

func (m *DoubleDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DoubleDataPoint) MarshalToSizedBuffer

func (m *DoubleDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleDataPoint) ProtoMessage

func (*DoubleDataPoint) ProtoMessage()

func (*DoubleDataPoint) Reset

func (m *DoubleDataPoint) Reset()

func (*DoubleDataPoint) Size

func (m *DoubleDataPoint) Size() (n int)

func (*DoubleDataPoint) String

func (m *DoubleDataPoint) String() string

func (*DoubleDataPoint) Unmarshal

func (m *DoubleDataPoint) Unmarshal(dAtA []byte) error

func (*DoubleDataPoint) XXX_DiscardUnknown

func (m *DoubleDataPoint) XXX_DiscardUnknown()

func (*DoubleDataPoint) XXX_Marshal

func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleDataPoint) XXX_Merge

func (m *DoubleDataPoint) XXX_Merge(src proto.Message)

func (*DoubleDataPoint) XXX_Size

func (m *DoubleDataPoint) XXX_Size() int

func (*DoubleDataPoint) XXX_Unmarshal

func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error

type DoubleExemplar added in v0.14.0

type DoubleExemplar struct {
	// The set of labels that were filtered out by the aggregator, but recorded
	// alongside the original measurement. Only labels that were filtered out
	// by the aggregator should be included
	FilteredLabels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=filtered_labels,json=filteredLabels,proto3" json:"filtered_labels,omitempty"`
	// time_unix_nano is the exact time when this exemplar was recorded
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// Numerical double value of the measurement that was recorded.
	Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	// (Optional) Span ID of the exemplar trace.
	// span_id may be missing if the measurement is not recorded inside a trace
	// or if the trace is not sampled.
	SpanId []byte `protobuf:"bytes,4,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	// (Optional) Trace ID of the exemplar trace.
	// trace_id may be missing if the measurement is not recorded inside a trace
	// or if the trace is not sampled.
	TraceId              []byte   `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A representation of an exemplar, which is a sample input double measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.

func (*DoubleExemplar) Descriptor added in v0.14.0

func (*DoubleExemplar) Descriptor() ([]byte, []int)

func (*DoubleExemplar) GetFilteredLabels added in v0.14.0

func (m *DoubleExemplar) GetFilteredLabels() []*v11.StringKeyValue

func (*DoubleExemplar) GetSpanId added in v0.14.0

func (m *DoubleExemplar) GetSpanId() []byte

func (*DoubleExemplar) GetTimeUnixNano added in v0.14.0

func (m *DoubleExemplar) GetTimeUnixNano() uint64

func (*DoubleExemplar) GetTraceId added in v0.14.0

func (m *DoubleExemplar) GetTraceId() []byte

func (*DoubleExemplar) GetValue added in v0.14.0

func (m *DoubleExemplar) GetValue() float64

func (*DoubleExemplar) Marshal added in v0.14.0

func (m *DoubleExemplar) Marshal() (dAtA []byte, err error)

func (*DoubleExemplar) MarshalTo added in v0.14.0

func (m *DoubleExemplar) MarshalTo(dAtA []byte) (int, error)

func (*DoubleExemplar) MarshalToSizedBuffer added in v0.14.0

func (m *DoubleExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleExemplar) ProtoMessage added in v0.14.0

func (*DoubleExemplar) ProtoMessage()

func (*DoubleExemplar) Reset added in v0.14.0

func (m *DoubleExemplar) Reset()

func (*DoubleExemplar) Size added in v0.14.0

func (m *DoubleExemplar) Size() (n int)

func (*DoubleExemplar) String added in v0.14.0

func (m *DoubleExemplar) String() string

func (*DoubleExemplar) Unmarshal added in v0.14.0

func (m *DoubleExemplar) Unmarshal(dAtA []byte) error

func (*DoubleExemplar) XXX_DiscardUnknown added in v0.14.0

func (m *DoubleExemplar) XXX_DiscardUnknown()

func (*DoubleExemplar) XXX_Marshal added in v0.14.0

func (m *DoubleExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleExemplar) XXX_Merge added in v0.14.0

func (m *DoubleExemplar) XXX_Merge(src proto.Message)

func (*DoubleExemplar) XXX_Size added in v0.14.0

func (m *DoubleExemplar) XXX_Size() int

func (*DoubleExemplar) XXX_Unmarshal added in v0.14.0

func (m *DoubleExemplar) XXX_Unmarshal(b []byte) error

type DoubleGauge added in v0.14.0

type DoubleGauge struct {
	DataPoints           []*DoubleDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Gauge represents the type of a double scalar metric that always exports the "current value" for every data point. It should be used for an "unknown" aggregation.

A Gauge does not support different aggregation temporalities. Given the aggregation is unknown, points cannot be combined using the same aggregation, regardless of aggregation temporalities. Therefore, AggregationTemporality is not included. Consequently, this also means "StartTimeUnixNano" is ignored for all data points.

func (*DoubleGauge) Descriptor added in v0.14.0

func (*DoubleGauge) Descriptor() ([]byte, []int)

func (*DoubleGauge) GetDataPoints added in v0.14.0

func (m *DoubleGauge) GetDataPoints() []*DoubleDataPoint

func (*DoubleGauge) Marshal added in v0.14.0

func (m *DoubleGauge) Marshal() (dAtA []byte, err error)

func (*DoubleGauge) MarshalTo added in v0.14.0

func (m *DoubleGauge) MarshalTo(dAtA []byte) (int, error)

func (*DoubleGauge) MarshalToSizedBuffer added in v0.14.0

func (m *DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleGauge) ProtoMessage added in v0.14.0

func (*DoubleGauge) ProtoMessage()

func (*DoubleGauge) Reset added in v0.14.0

func (m *DoubleGauge) Reset()

func (*DoubleGauge) Size added in v0.14.0

func (m *DoubleGauge) Size() (n int)

func (*DoubleGauge) String added in v0.14.0

func (m *DoubleGauge) String() string

func (*DoubleGauge) Unmarshal added in v0.14.0

func (m *DoubleGauge) Unmarshal(dAtA []byte) error

func (*DoubleGauge) XXX_DiscardUnknown added in v0.14.0

func (m *DoubleGauge) XXX_DiscardUnknown()

func (*DoubleGauge) XXX_Marshal added in v0.14.0

func (m *DoubleGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleGauge) XXX_Merge added in v0.14.0

func (m *DoubleGauge) XXX_Merge(src proto.Message)

func (*DoubleGauge) XXX_Size added in v0.14.0

func (m *DoubleGauge) XXX_Size() int

func (*DoubleGauge) XXX_Unmarshal added in v0.14.0

func (m *DoubleGauge) XXX_Unmarshal(b []byte) error

type DoubleHistogram added in v0.14.0

type DoubleHistogram struct {
	DataPoints []*DoubleHistogramDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	// aggregation_temporality describes if the aggregator reports delta changes
	// since last report time, or cumulative changes since a fixed start time.
	AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}               `json:"-"`
	XXX_unrecognized       []byte                 `json:"-"`
	XXX_sizecache          int32                  `json:"-"`
}

Represents the type of a metric that is calculated by aggregating as a Histogram of all reported double measurements over a time interval.

func (*DoubleHistogram) Descriptor added in v0.14.0

func (*DoubleHistogram) Descriptor() ([]byte, []int)

func (*DoubleHistogram) GetAggregationTemporality added in v0.14.0

func (m *DoubleHistogram) GetAggregationTemporality() AggregationTemporality

func (*DoubleHistogram) GetDataPoints added in v0.14.0

func (m *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint

func (*DoubleHistogram) Marshal added in v0.14.0

func (m *DoubleHistogram) Marshal() (dAtA []byte, err error)

func (*DoubleHistogram) MarshalTo added in v0.14.0

func (m *DoubleHistogram) MarshalTo(dAtA []byte) (int, error)

func (*DoubleHistogram) MarshalToSizedBuffer added in v0.14.0

func (m *DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleHistogram) ProtoMessage added in v0.14.0

func (*DoubleHistogram) ProtoMessage()

func (*DoubleHistogram) Reset added in v0.14.0

func (m *DoubleHistogram) Reset()

func (*DoubleHistogram) Size added in v0.14.0

func (m *DoubleHistogram) Size() (n int)

func (*DoubleHistogram) String added in v0.14.0

func (m *DoubleHistogram) String() string

func (*DoubleHistogram) Unmarshal added in v0.14.0

func (m *DoubleHistogram) Unmarshal(dAtA []byte) error

func (*DoubleHistogram) XXX_DiscardUnknown added in v0.14.0

func (m *DoubleHistogram) XXX_DiscardUnknown()

func (*DoubleHistogram) XXX_Marshal added in v0.14.0

func (m *DoubleHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleHistogram) XXX_Merge added in v0.14.0

func (m *DoubleHistogram) XXX_Merge(src proto.Message)

func (*DoubleHistogram) XXX_Size added in v0.14.0

func (m *DoubleHistogram) XXX_Size() int

func (*DoubleHistogram) XXX_Unmarshal added in v0.14.0

func (m *DoubleHistogram) XXX_Unmarshal(b []byte) error

type DoubleHistogramDataPoint added in v0.14.0

type DoubleHistogramDataPoint struct {
	// The set of labels that uniquely identify this timeseries.
	Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// start_time_unix_nano is the last time when the aggregation value was reset
	// to "zero". For some metric types this is ignored, see data types for more
	// details.
	//
	// The aggregation value is over the time interval (start_time_unix_nano,
	// time_unix_nano].
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	//
	// Value of 0 indicates that the timestamp is unspecified. In that case the
	// timestamp may be decided by the backend.
	StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
	// time_unix_nano is the moment when this aggregation value was reported.
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// count is the number of values in the population. Must be non-negative. This
	// value must be equal to the sum of the "count" fields in buckets if a
	// histogram is provided.
	Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"`
	// sum of the values in the population. If count is zero then this field
	// must be zero. This value must be equal to the sum of the "sum" fields in
	// buckets if a histogram is provided.
	Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"`
	// bucket_counts is an optional field contains the count values of histogram
	// for each bucket.
	//
	// The sum of the bucket_counts must equal the value in the count field.
	//
	// The number of elements in bucket_counts array must be by one greater than
	// the number of elements in explicit_bounds array.
	BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
	// explicit_bounds specifies buckets with explicitly defined bounds for values.
	// The bucket boundaries are described by "bounds" field.
	//
	// This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket
	// at index i are:
	//
	// (-infinity, bounds[i]) for i == 0
	// [bounds[i-1], bounds[i]) for 0 < i < N-1
	// [bounds[i], +infinity) for i == N-1
	// The values in bounds array must be strictly increasing.
	//
	// Note: only [a, b) intervals are currently supported for each bucket except the first one.
	// If we decide to also support (a, b] intervals we should add support for these by defining
	// a boolean value which decides what type of intervals to use.
	ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"`
	// (Optional) List of exemplars collected from
	// measurements that were used to form the data point
	Exemplars            []*DoubleExemplar `protobuf:"bytes,8,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of double values. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.

func (*DoubleHistogramDataPoint) Descriptor added in v0.14.0

func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)

func (*DoubleHistogramDataPoint) GetBucketCounts added in v0.14.0

func (m *DoubleHistogramDataPoint) GetBucketCounts() []uint64

func (*DoubleHistogramDataPoint) GetCount added in v0.14.0

func (m *DoubleHistogramDataPoint) GetCount() uint64

func (*DoubleHistogramDataPoint) GetExemplars added in v0.14.0

func (m *DoubleHistogramDataPoint) GetExemplars() []*DoubleExemplar

func (*DoubleHistogramDataPoint) GetExplicitBounds added in v0.14.0

func (m *DoubleHistogramDataPoint) GetExplicitBounds() []float64

func (*DoubleHistogramDataPoint) GetLabels added in v0.14.0

func (m *DoubleHistogramDataPoint) GetLabels() []*v11.StringKeyValue

func (*DoubleHistogramDataPoint) GetStartTimeUnixNano added in v0.14.0

func (m *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) GetSum added in v0.14.0

func (m *DoubleHistogramDataPoint) GetSum() float64

func (*DoubleHistogramDataPoint) GetTimeUnixNano added in v0.14.0

func (m *DoubleHistogramDataPoint) GetTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) Marshal added in v0.14.0

func (m *DoubleHistogramDataPoint) Marshal() (dAtA []byte, err error)

func (*DoubleHistogramDataPoint) MarshalTo added in v0.14.0

func (m *DoubleHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DoubleHistogramDataPoint) MarshalToSizedBuffer added in v0.14.0

func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleHistogramDataPoint) ProtoMessage added in v0.14.0

func (*DoubleHistogramDataPoint) ProtoMessage()

func (*DoubleHistogramDataPoint) Reset added in v0.14.0

func (m *DoubleHistogramDataPoint) Reset()

func (*DoubleHistogramDataPoint) Size added in v0.14.0

func (m *DoubleHistogramDataPoint) Size() (n int)

func (*DoubleHistogramDataPoint) String added in v0.14.0

func (m *DoubleHistogramDataPoint) String() string

func (*DoubleHistogramDataPoint) Unmarshal added in v0.14.0

func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error

func (*DoubleHistogramDataPoint) XXX_DiscardUnknown added in v0.14.0

func (m *DoubleHistogramDataPoint) XXX_DiscardUnknown()

func (*DoubleHistogramDataPoint) XXX_Marshal added in v0.14.0

func (m *DoubleHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleHistogramDataPoint) XXX_Merge added in v0.14.0

func (m *DoubleHistogramDataPoint) XXX_Merge(src proto.Message)

func (*DoubleHistogramDataPoint) XXX_Size added in v0.14.0

func (m *DoubleHistogramDataPoint) XXX_Size() int

func (*DoubleHistogramDataPoint) XXX_Unmarshal added in v0.14.0

func (m *DoubleHistogramDataPoint) XXX_Unmarshal(b []byte) error

type DoubleSum added in v0.14.0

type DoubleSum struct {
	DataPoints []*DoubleDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	// aggregation_temporality describes if the aggregator reports delta changes
	// since last report time, or cumulative changes since a fixed start time.
	AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */
	// If "true" means that the sum is monotonic.
	IsMonotonic          bool     `protobuf:"varint,3,opt,name=is_monotonic,json=isMonotonic,proto3" json:"is_monotonic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Sum represents the type of a numeric double scalar metric that is calculated as a sum of all reported measurements over a time interval.

func (*DoubleSum) Descriptor added in v0.14.0

func (*DoubleSum) Descriptor() ([]byte, []int)

func (*DoubleSum) GetAggregationTemporality added in v0.14.0

func (m *DoubleSum) GetAggregationTemporality() AggregationTemporality

func (*DoubleSum) GetDataPoints added in v0.14.0

func (m *DoubleSum) GetDataPoints() []*DoubleDataPoint

func (*DoubleSum) GetIsMonotonic added in v0.14.0

func (m *DoubleSum) GetIsMonotonic() bool

func (*DoubleSum) Marshal added in v0.14.0

func (m *DoubleSum) Marshal() (dAtA []byte, err error)

func (*DoubleSum) MarshalTo added in v0.14.0

func (m *DoubleSum) MarshalTo(dAtA []byte) (int, error)

func (*DoubleSum) MarshalToSizedBuffer added in v0.14.0

func (m *DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleSum) ProtoMessage added in v0.14.0

func (*DoubleSum) ProtoMessage()

func (*DoubleSum) Reset added in v0.14.0

func (m *DoubleSum) Reset()

func (*DoubleSum) Size added in v0.14.0

func (m *DoubleSum) Size() (n int)

func (*DoubleSum) String added in v0.14.0

func (m *DoubleSum) String() string

func (*DoubleSum) Unmarshal added in v0.14.0

func (m *DoubleSum) Unmarshal(dAtA []byte) error

func (*DoubleSum) XXX_DiscardUnknown added in v0.14.0

func (m *DoubleSum) XXX_DiscardUnknown()

func (*DoubleSum) XXX_Marshal added in v0.14.0

func (m *DoubleSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleSum) XXX_Merge added in v0.14.0

func (m *DoubleSum) XXX_Merge(src proto.Message)

func (*DoubleSum) XXX_Size added in v0.14.0

func (m *DoubleSum) XXX_Size() int

func (*DoubleSum) XXX_Unmarshal added in v0.14.0

func (m *DoubleSum) XXX_Unmarshal(b []byte) error

type InstrumentationLibraryMetrics

type InstrumentationLibraryMetrics struct {
	// The instrumentation library information for the metrics in this message.
	// If this field is not set then no library info is known.
	InstrumentationLibrary *v11.InstrumentationLibrary `` /* 127-byte string literal not displayed */
	// A list of metrics that originate from an instrumentation library.
	Metrics              []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

A collection of Metrics produced by an InstrumentationLibrary.

func (*InstrumentationLibraryMetrics) Descriptor

func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)

func (*InstrumentationLibraryMetrics) GetInstrumentationLibrary

func (m *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *v11.InstrumentationLibrary

func (*InstrumentationLibraryMetrics) GetMetrics

func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric

func (*InstrumentationLibraryMetrics) Marshal

func (m *InstrumentationLibraryMetrics) Marshal() (dAtA []byte, err error)

func (*InstrumentationLibraryMetrics) MarshalTo

func (m *InstrumentationLibraryMetrics) MarshalTo(dAtA []byte) (int, error)

func (*InstrumentationLibraryMetrics) MarshalToSizedBuffer

func (m *InstrumentationLibraryMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InstrumentationLibraryMetrics) ProtoMessage

func (*InstrumentationLibraryMetrics) ProtoMessage()

func (*InstrumentationLibraryMetrics) Reset

func (m *InstrumentationLibraryMetrics) Reset()

func (*InstrumentationLibraryMetrics) Size

func (m *InstrumentationLibraryMetrics) Size() (n int)

func (*InstrumentationLibraryMetrics) String

func (*InstrumentationLibraryMetrics) Unmarshal

func (m *InstrumentationLibraryMetrics) Unmarshal(dAtA []byte) error

func (*InstrumentationLibraryMetrics) XXX_DiscardUnknown

func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown()

func (*InstrumentationLibraryMetrics) XXX_Marshal

func (m *InstrumentationLibraryMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationLibraryMetrics) XXX_Merge

func (m *InstrumentationLibraryMetrics) XXX_Merge(src proto.Message)

func (*InstrumentationLibraryMetrics) XXX_Size

func (m *InstrumentationLibraryMetrics) XXX_Size() int

func (*InstrumentationLibraryMetrics) XXX_Unmarshal

func (m *InstrumentationLibraryMetrics) XXX_Unmarshal(b []byte) error

type IntDataPoint added in v0.14.0

type IntDataPoint struct {
	// The set of labels that uniquely identify this timeseries.
	Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// start_time_unix_nano is the last time when the aggregation value was reset
	// to "zero". For some metric types this is ignored, see data types for more
	// details.
	//
	// The aggregation value is over the time interval (start_time_unix_nano,
	// time_unix_nano].
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	//
	// Value of 0 indicates that the timestamp is unspecified. In that case the
	// timestamp may be decided by the backend.
	StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
	// time_unix_nano is the moment when this aggregation value was reported.
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// value itself.
	Value int64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"`
	// (Optional) List of exemplars collected from
	// measurements that were used to form the data point
	Exemplars            []*IntExemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

IntDataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric.

func (*IntDataPoint) Descriptor added in v0.14.0

func (*IntDataPoint) Descriptor() ([]byte, []int)

func (*IntDataPoint) GetExemplars added in v0.14.0

func (m *IntDataPoint) GetExemplars() []*IntExemplar

func (*IntDataPoint) GetLabels added in v0.14.0

func (m *IntDataPoint) GetLabels() []*v11.StringKeyValue

func (*IntDataPoint) GetStartTimeUnixNano added in v0.14.0

func (m *IntDataPoint) GetStartTimeUnixNano() uint64

func (*IntDataPoint) GetTimeUnixNano added in v0.14.0

func (m *IntDataPoint) GetTimeUnixNano() uint64

func (*IntDataPoint) GetValue added in v0.14.0

func (m *IntDataPoint) GetValue() int64

func (*IntDataPoint) Marshal added in v0.14.0

func (m *IntDataPoint) Marshal() (dAtA []byte, err error)

func (*IntDataPoint) MarshalTo added in v0.14.0

func (m *IntDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*IntDataPoint) MarshalToSizedBuffer added in v0.14.0

func (m *IntDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntDataPoint) ProtoMessage added in v0.14.0

func (*IntDataPoint) ProtoMessage()

func (*IntDataPoint) Reset added in v0.14.0

func (m *IntDataPoint) Reset()

func (*IntDataPoint) Size added in v0.14.0

func (m *IntDataPoint) Size() (n int)

func (*IntDataPoint) String added in v0.14.0

func (m *IntDataPoint) String() string

func (*IntDataPoint) Unmarshal added in v0.14.0

func (m *IntDataPoint) Unmarshal(dAtA []byte) error

func (*IntDataPoint) XXX_DiscardUnknown added in v0.14.0

func (m *IntDataPoint) XXX_DiscardUnknown()

func (*IntDataPoint) XXX_Marshal added in v0.14.0

func (m *IntDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntDataPoint) XXX_Merge added in v0.14.0

func (m *IntDataPoint) XXX_Merge(src proto.Message)

func (*IntDataPoint) XXX_Size added in v0.14.0

func (m *IntDataPoint) XXX_Size() int

func (*IntDataPoint) XXX_Unmarshal added in v0.14.0

func (m *IntDataPoint) XXX_Unmarshal(b []byte) error

type IntExemplar added in v0.14.0

type IntExemplar struct {
	// The set of labels that were filtered out by the aggregator, but recorded
	// alongside the original measurement. Only labels that were filtered out
	// by the aggregator should be included
	FilteredLabels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=filtered_labels,json=filteredLabels,proto3" json:"filtered_labels,omitempty"`
	// time_unix_nano is the exact time when this exemplar was recorded
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// Numerical int value of the measurement that was recorded.
	Value int64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	// (Optional) Span ID of the exemplar trace.
	// span_id may be missing if the measurement is not recorded inside a trace
	// or if the trace is not sampled.
	SpanId []byte `protobuf:"bytes,4,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	// (Optional) Trace ID of the exemplar trace.
	// trace_id may be missing if the measurement is not recorded inside a trace
	// or if the trace is not sampled.
	TraceId              []byte   `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A representation of an exemplar, which is a sample input int measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.

func (*IntExemplar) Descriptor added in v0.14.0

func (*IntExemplar) Descriptor() ([]byte, []int)

func (*IntExemplar) GetFilteredLabels added in v0.14.0

func (m *IntExemplar) GetFilteredLabels() []*v11.StringKeyValue

func (*IntExemplar) GetSpanId added in v0.14.0

func (m *IntExemplar) GetSpanId() []byte

func (*IntExemplar) GetTimeUnixNano added in v0.14.0

func (m *IntExemplar) GetTimeUnixNano() uint64

func (*IntExemplar) GetTraceId added in v0.14.0

func (m *IntExemplar) GetTraceId() []byte

func (*IntExemplar) GetValue added in v0.14.0

func (m *IntExemplar) GetValue() int64

func (*IntExemplar) Marshal added in v0.14.0

func (m *IntExemplar) Marshal() (dAtA []byte, err error)

func (*IntExemplar) MarshalTo added in v0.14.0

func (m *IntExemplar) MarshalTo(dAtA []byte) (int, error)

func (*IntExemplar) MarshalToSizedBuffer added in v0.14.0

func (m *IntExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntExemplar) ProtoMessage added in v0.14.0

func (*IntExemplar) ProtoMessage()

func (*IntExemplar) Reset added in v0.14.0

func (m *IntExemplar) Reset()

func (*IntExemplar) Size added in v0.14.0

func (m *IntExemplar) Size() (n int)

func (*IntExemplar) String added in v0.14.0

func (m *IntExemplar) String() string

func (*IntExemplar) Unmarshal added in v0.14.0

func (m *IntExemplar) Unmarshal(dAtA []byte) error

func (*IntExemplar) XXX_DiscardUnknown added in v0.14.0

func (m *IntExemplar) XXX_DiscardUnknown()

func (*IntExemplar) XXX_Marshal added in v0.14.0

func (m *IntExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntExemplar) XXX_Merge added in v0.14.0

func (m *IntExemplar) XXX_Merge(src proto.Message)

func (*IntExemplar) XXX_Size added in v0.14.0

func (m *IntExemplar) XXX_Size() int

func (*IntExemplar) XXX_Unmarshal added in v0.14.0

func (m *IntExemplar) XXX_Unmarshal(b []byte) error

type IntGauge added in v0.14.0

type IntGauge struct {
	DataPoints           []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Gauge represents the type of a int scalar metric that always exports the "current value" for every data point. It should be used for an "unknown" aggregation.

A Gauge does not support different aggregation temporalities. Given the aggregation is unknown, points cannot be combined using the same aggregation, regardless of aggregation temporalities. Therefore, AggregationTemporality is not included. Consequently, this also means "StartTimeUnixNano" is ignored for all data points.

func (*IntGauge) Descriptor added in v0.14.0

func (*IntGauge) Descriptor() ([]byte, []int)

func (*IntGauge) GetDataPoints added in v0.14.0

func (m *IntGauge) GetDataPoints() []*IntDataPoint

func (*IntGauge) Marshal added in v0.14.0

func (m *IntGauge) Marshal() (dAtA []byte, err error)

func (*IntGauge) MarshalTo added in v0.14.0

func (m *IntGauge) MarshalTo(dAtA []byte) (int, error)

func (*IntGauge) MarshalToSizedBuffer added in v0.14.0

func (m *IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntGauge) ProtoMessage added in v0.14.0

func (*IntGauge) ProtoMessage()

func (*IntGauge) Reset added in v0.14.0

func (m *IntGauge) Reset()

func (*IntGauge) Size added in v0.14.0

func (m *IntGauge) Size() (n int)

func (*IntGauge) String added in v0.14.0

func (m *IntGauge) String() string

func (*IntGauge) Unmarshal added in v0.14.0

func (m *IntGauge) Unmarshal(dAtA []byte) error

func (*IntGauge) XXX_DiscardUnknown added in v0.14.0

func (m *IntGauge) XXX_DiscardUnknown()

func (*IntGauge) XXX_Marshal added in v0.14.0

func (m *IntGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntGauge) XXX_Merge added in v0.14.0

func (m *IntGauge) XXX_Merge(src proto.Message)

func (*IntGauge) XXX_Size added in v0.14.0

func (m *IntGauge) XXX_Size() int

func (*IntGauge) XXX_Unmarshal added in v0.14.0

func (m *IntGauge) XXX_Unmarshal(b []byte) error

type IntHistogram added in v0.14.0

type IntHistogram struct {
	DataPoints []*IntHistogramDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	// aggregation_temporality describes if the aggregator reports delta changes
	// since last report time, or cumulative changes since a fixed start time.
	AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}               `json:"-"`
	XXX_unrecognized       []byte                 `json:"-"`
	XXX_sizecache          int32                  `json:"-"`
}

Represents the type of a metric that is calculated by aggregating as a Histogram of all reported int measurements over a time interval.

func (*IntHistogram) Descriptor added in v0.14.0

func (*IntHistogram) Descriptor() ([]byte, []int)

func (*IntHistogram) GetAggregationTemporality added in v0.14.0

func (m *IntHistogram) GetAggregationTemporality() AggregationTemporality

func (*IntHistogram) GetDataPoints added in v0.14.0

func (m *IntHistogram) GetDataPoints() []*IntHistogramDataPoint

func (*IntHistogram) Marshal added in v0.14.0

func (m *IntHistogram) Marshal() (dAtA []byte, err error)

func (*IntHistogram) MarshalTo added in v0.14.0

func (m *IntHistogram) MarshalTo(dAtA []byte) (int, error)

func (*IntHistogram) MarshalToSizedBuffer added in v0.14.0

func (m *IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntHistogram) ProtoMessage added in v0.14.0

func (*IntHistogram) ProtoMessage()

func (*IntHistogram) Reset added in v0.14.0

func (m *IntHistogram) Reset()

func (*IntHistogram) Size added in v0.14.0

func (m *IntHistogram) Size() (n int)

func (*IntHistogram) String added in v0.14.0

func (m *IntHistogram) String() string

func (*IntHistogram) Unmarshal added in v0.14.0

func (m *IntHistogram) Unmarshal(dAtA []byte) error

func (*IntHistogram) XXX_DiscardUnknown added in v0.14.0

func (m *IntHistogram) XXX_DiscardUnknown()

func (*IntHistogram) XXX_Marshal added in v0.14.0

func (m *IntHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntHistogram) XXX_Merge added in v0.14.0

func (m *IntHistogram) XXX_Merge(src proto.Message)

func (*IntHistogram) XXX_Size added in v0.14.0

func (m *IntHistogram) XXX_Size() int

func (*IntHistogram) XXX_Unmarshal added in v0.14.0

func (m *IntHistogram) XXX_Unmarshal(b []byte) error

type IntHistogramDataPoint added in v0.14.0

type IntHistogramDataPoint struct {
	// The set of labels that uniquely identify this timeseries.
	Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// start_time_unix_nano is the last time when the aggregation value was reset
	// to "zero". For some metric types this is ignored, see data types for more
	// details.
	//
	// The aggregation value is over the time interval (start_time_unix_nano,
	// time_unix_nano].
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	//
	// Value of 0 indicates that the timestamp is unspecified. In that case the
	// timestamp may be decided by the backend.
	StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
	// time_unix_nano is the moment when this aggregation value was reported.
	//
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
	// 1970.
	TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// count is the number of values in the population. Must be non-negative. This
	// value must be equal to the sum of the "count" fields in buckets if a
	// histogram is provided.
	Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"`
	// sum of the values in the population. If count is zero then this field
	// must be zero. This value must be equal to the sum of the "sum" fields in
	// buckets if a histogram is provided.
	Sum int64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"`
	// bucket_counts is an optional field contains the count values of histogram
	// for each bucket.
	//
	// The sum of the bucket_counts must equal the value in the count field.
	//
	// The number of elements in bucket_counts array must be by one greater than
	// the number of elements in explicit_bounds array.
	BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
	// explicit_bounds specifies buckets with explicitly defined bounds for values.
	// The bucket boundaries are described by "bounds" field.
	//
	// This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket
	// at index i are:
	//
	// (-infinity, bounds[i]) for i == 0
	// [bounds[i-1], bounds[i]) for 0 < i < N-1
	// [bounds[i], +infinity) for i == N-1
	// The values in bounds array must be strictly increasing.
	//
	// Note: only [a, b) intervals are currently supported for each bucket except the first one.
	// If we decide to also support (a, b] intervals we should add support for these by defining
	// a boolean value which decides what type of intervals to use.
	ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"`
	// (Optional) List of exemplars collected from
	// measurements that were used to form the data point
	Exemplars            []*IntExemplar `protobuf:"bytes,8,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

IntHistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of int values. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.

func (*IntHistogramDataPoint) Descriptor added in v0.14.0

func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)

func (*IntHistogramDataPoint) GetBucketCounts added in v0.14.0

func (m *IntHistogramDataPoint) GetBucketCounts() []uint64

func (*IntHistogramDataPoint) GetCount added in v0.14.0

func (m *IntHistogramDataPoint) GetCount() uint64

func (*IntHistogramDataPoint) GetExemplars added in v0.14.0

func (m *IntHistogramDataPoint) GetExemplars() []*IntExemplar

func (*IntHistogramDataPoint) GetExplicitBounds added in v0.14.0

func (m *IntHistogramDataPoint) GetExplicitBounds() []float64

func (*IntHistogramDataPoint) GetLabels added in v0.14.0

func (m *IntHistogramDataPoint) GetLabels() []*v11.StringKeyValue

func (*IntHistogramDataPoint) GetStartTimeUnixNano added in v0.14.0

func (m *IntHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*IntHistogramDataPoint) GetSum added in v0.14.0

func (m *IntHistogramDataPoint) GetSum() int64

func (*IntHistogramDataPoint) GetTimeUnixNano added in v0.14.0

func (m *IntHistogramDataPoint) GetTimeUnixNano() uint64

func (*IntHistogramDataPoint) Marshal added in v0.14.0

func (m *IntHistogramDataPoint) Marshal() (dAtA []byte, err error)

func (*IntHistogramDataPoint) MarshalTo added in v0.14.0

func (m *IntHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*IntHistogramDataPoint) MarshalToSizedBuffer added in v0.14.0

func (m *IntHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntHistogramDataPoint) ProtoMessage added in v0.14.0

func (*IntHistogramDataPoint) ProtoMessage()

func (*IntHistogramDataPoint) Reset added in v0.14.0

func (m *IntHistogramDataPoint) Reset()

func (*IntHistogramDataPoint) Size added in v0.14.0

func (m *IntHistogramDataPoint) Size() (n int)

func (*IntHistogramDataPoint) String added in v0.14.0

func (m *IntHistogramDataPoint) String() string

func (*IntHistogramDataPoint) Unmarshal added in v0.14.0

func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error

func (*IntHistogramDataPoint) XXX_DiscardUnknown added in v0.14.0

func (m *IntHistogramDataPoint) XXX_DiscardUnknown()

func (*IntHistogramDataPoint) XXX_Marshal added in v0.14.0

func (m *IntHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntHistogramDataPoint) XXX_Merge added in v0.14.0

func (m *IntHistogramDataPoint) XXX_Merge(src proto.Message)

func (*IntHistogramDataPoint) XXX_Size added in v0.14.0

func (m *IntHistogramDataPoint) XXX_Size() int

func (*IntHistogramDataPoint) XXX_Unmarshal added in v0.14.0

func (m *IntHistogramDataPoint) XXX_Unmarshal(b []byte) error

type IntSum added in v0.14.0

type IntSum struct {
	DataPoints []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
	// aggregation_temporality describes if the aggregator reports delta changes
	// since last report time, or cumulative changes since a fixed start time.
	AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */
	// If "true" means that the sum is monotonic.
	IsMonotonic          bool     `protobuf:"varint,3,opt,name=is_monotonic,json=isMonotonic,proto3" json:"is_monotonic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Sum represents the type of a numeric int scalar metric that is calculated as a sum of all reported measurements over a time interval.

func (*IntSum) Descriptor added in v0.14.0

func (*IntSum) Descriptor() ([]byte, []int)

func (*IntSum) GetAggregationTemporality added in v0.14.0

func (m *IntSum) GetAggregationTemporality() AggregationTemporality

func (*IntSum) GetDataPoints added in v0.14.0

func (m *IntSum) GetDataPoints() []*IntDataPoint

func (*IntSum) GetIsMonotonic added in v0.14.0

func (m *IntSum) GetIsMonotonic() bool

func (*IntSum) Marshal added in v0.14.0

func (m *IntSum) Marshal() (dAtA []byte, err error)

func (*IntSum) MarshalTo added in v0.14.0

func (m *IntSum) MarshalTo(dAtA []byte) (int, error)

func (*IntSum) MarshalToSizedBuffer added in v0.14.0

func (m *IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntSum) ProtoMessage added in v0.14.0

func (*IntSum) ProtoMessage()

func (*IntSum) Reset added in v0.14.0

func (m *IntSum) Reset()

func (*IntSum) Size added in v0.14.0

func (m *IntSum) Size() (n int)

func (*IntSum) String added in v0.14.0

func (m *IntSum) String() string

func (*IntSum) Unmarshal added in v0.14.0

func (m *IntSum) Unmarshal(dAtA []byte) error

func (*IntSum) XXX_DiscardUnknown added in v0.14.0

func (m *IntSum) XXX_DiscardUnknown()

func (*IntSum) XXX_Marshal added in v0.14.0

func (m *IntSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntSum) XXX_Merge added in v0.14.0

func (m *IntSum) XXX_Merge(src proto.Message)

func (*IntSum) XXX_Size added in v0.14.0

func (m *IntSum) XXX_Size() int

func (*IntSum) XXX_Unmarshal added in v0.14.0

func (m *IntSum) XXX_Unmarshal(b []byte) error

type Metric

type Metric struct {
	// name of the metric, including its DNS name prefix. It must be unique.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// description of the metric, which can be used in documentation.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// unit in which the metric value is reported. Follows the format
	// described by http://unitsofmeasure.org/ucum.html.
	Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	// Data determines the aggregation type (if any) of the metric, what is the
	// reported value type for the data points, as well as the relatationship to
	// the time interval over which they are reported.
	//
	// TODO: Update table after the decision on:
	// https://github.com/open-telemetry/opentelemetry-specification/issues/731.
	// By default, metrics recording using the OpenTelemetry API are exported as
	// (the table does not include MeasurementValueType to avoid extra rows):
	//
	//   Instrument         Type
	//   ----------------------------------------------
	//   Counter            Sum(aggregation_temporality=delta;is_monotonic=true)
	//   UpDownCounter      Sum(aggregation_temporality=delta;is_monotonic=false)
	//   ValueRecorder      TBD
	//   SumObserver        Sum(aggregation_temporality=cumulative;is_monotonic=true)
	//   UpDownSumObserver  Sum(aggregation_temporality=cumulative;is_monotonic=false)
	//   ValueObserver      Gauge()
	//
	// Types that are valid to be assigned to Data:
	//	*Metric_IntGauge
	//	*Metric_DoubleGauge
	//	*Metric_IntSum
	//	*Metric_DoubleSum
	//	*Metric_IntHistogram
	//	*Metric_DoubleHistogram
	Data                 isMetric_Data `protobuf_oneof:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Defines a Metric which has one or more timeseries.

The data model and relation between entities is shown in the diagram below. Here, "DataPoint" is the term used to refer to any one of the specific data point value types, and "points" is the term used to refer to any one of the lists of points contained in the Metric.

  • Metric is composed of a metadata and data.

  • Metadata part contains a name, description, unit.

  • Data is one of the possible types (Gauge, Sum, Histogram, etc.).

  • DataPoint contains timestamps, labels, and one of the possible value type fields.

    Metric +------------+ |name | |description | |unit | +---------------------------+ |data |---> |Gauge, Sum, Histogram, ... | +------------+ +---------------------------+

    Data [One of Gauge, Sum, Histogram, ...] +-----------+ |... | // Metadata about the Data. |points |--+ +-----------+ | | +---------------------------+ | |DataPoint 1 | v |+------+------+ +------+ | +-----+ ||label |label |...|label | | | 1 |-->||value1|value2|...|valueN| | +-----+ |+------+------+ +------+ | | . | |+-----+ | | . | ||value| | | . | |+-----+ | | . | +---------------------------+ | . | . | . | . | . | . | . | +---------------------------+ | . | |DataPoint M | +-----+ |+------+------+ +------+ | | M |-->||label |label |...|label | | +-----+ ||value1|value2|...|valueN| | |+------+------+ +------+ | |+-----+ | ||value| | |+-----+ | +---------------------------+

All DataPoint types have three common fields:

  • Labels zero or more key-value pairs associated with the data point.
  • StartTimeUnixNano MUST be set to the start of the interval when the data's type includes an AggregationTemporality. This field is not set otherwise.
  • TimeUnixNano MUST be set to:
  • the moment when an aggregation is reported (independent of the aggregation temporality).
  • the instantaneous time of the event.

func (*Metric) Descriptor

func (*Metric) Descriptor() ([]byte, []int)

func (*Metric) GetData added in v0.14.0

func (m *Metric) GetData() isMetric_Data

func (*Metric) GetDescription added in v0.14.0

func (m *Metric) GetDescription() string

func (*Metric) GetDoubleGauge added in v0.14.0

func (m *Metric) GetDoubleGauge() *DoubleGauge

func (*Metric) GetDoubleHistogram added in v0.14.0

func (m *Metric) GetDoubleHistogram() *DoubleHistogram

func (*Metric) GetDoubleSum added in v0.14.0

func (m *Metric) GetDoubleSum() *DoubleSum

func (*Metric) GetIntGauge added in v0.14.0

func (m *Metric) GetIntGauge() *IntGauge

func (*Metric) GetIntHistogram added in v0.14.0

func (m *Metric) GetIntHistogram() *IntHistogram

func (*Metric) GetIntSum added in v0.14.0

func (m *Metric) GetIntSum() *IntSum

func (*Metric) GetName added in v0.14.0

func (m *Metric) GetName() string

func (*Metric) GetUnit added in v0.14.0

func (m *Metric) GetUnit() string

func (*Metric) Marshal

func (m *Metric) Marshal() (dAtA []byte, err error)

func (*Metric) MarshalTo

func (m *Metric) MarshalTo(dAtA []byte) (int, error)

func (*Metric) MarshalToSizedBuffer

func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) Size

func (m *Metric) Size() (n int)

func (*Metric) String

func (m *Metric) String() string

func (*Metric) Unmarshal

func (m *Metric) Unmarshal(dAtA []byte) error

func (*Metric) XXX_DiscardUnknown

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal

func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metric) XXX_Merge

func (m *Metric) XXX_Merge(src proto.Message)

func (*Metric) XXX_OneofWrappers added in v0.14.0

func (*Metric) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Metric) XXX_Size

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal

func (m *Metric) XXX_Unmarshal(b []byte) error

type Metric_DoubleGauge added in v0.14.0

type Metric_DoubleGauge struct {
	DoubleGauge *DoubleGauge `protobuf:"bytes,5,opt,name=double_gauge,json=doubleGauge,proto3,oneof" json:"double_gauge,omitempty"`
}

func (*Metric_DoubleGauge) MarshalTo added in v0.14.0

func (m *Metric_DoubleGauge) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleGauge) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleGauge) Size added in v0.14.0

func (m *Metric_DoubleGauge) Size() (n int)

type Metric_DoubleHistogram added in v0.14.0

type Metric_DoubleHistogram struct {
	DoubleHistogram *DoubleHistogram `protobuf:"bytes,9,opt,name=double_histogram,json=doubleHistogram,proto3,oneof" json:"double_histogram,omitempty"`
}

func (*Metric_DoubleHistogram) MarshalTo added in v0.14.0

func (m *Metric_DoubleHistogram) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleHistogram) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleHistogram) Size added in v0.14.0

func (m *Metric_DoubleHistogram) Size() (n int)

type Metric_DoubleSum added in v0.14.0

type Metric_DoubleSum struct {
	DoubleSum *DoubleSum `protobuf:"bytes,7,opt,name=double_sum,json=doubleSum,proto3,oneof" json:"double_sum,omitempty"`
}

func (*Metric_DoubleSum) MarshalTo added in v0.14.0

func (m *Metric_DoubleSum) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleSum) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleSum) Size added in v0.14.0

func (m *Metric_DoubleSum) Size() (n int)

type Metric_IntGauge added in v0.14.0

type Metric_IntGauge struct {
	IntGauge *IntGauge `protobuf:"bytes,4,opt,name=int_gauge,json=intGauge,proto3,oneof" json:"int_gauge,omitempty"`
}

func (*Metric_IntGauge) MarshalTo added in v0.14.0

func (m *Metric_IntGauge) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntGauge) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntGauge) Size added in v0.14.0

func (m *Metric_IntGauge) Size() (n int)

type Metric_IntHistogram added in v0.14.0

type Metric_IntHistogram struct {
	IntHistogram *IntHistogram `protobuf:"bytes,8,opt,name=int_histogram,json=intHistogram,proto3,oneof" json:"int_histogram,omitempty"`
}

func (*Metric_IntHistogram) MarshalTo added in v0.14.0

func (m *Metric_IntHistogram) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntHistogram) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntHistogram) Size added in v0.14.0

func (m *Metric_IntHistogram) Size() (n int)

type Metric_IntSum added in v0.14.0

type Metric_IntSum struct {
	IntSum *IntSum `protobuf:"bytes,6,opt,name=int_sum,json=intSum,proto3,oneof" json:"int_sum,omitempty"`
}

func (*Metric_IntSum) MarshalTo added in v0.14.0

func (m *Metric_IntSum) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntSum) MarshalToSizedBuffer added in v0.14.0

func (m *Metric_IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntSum) Size added in v0.14.0

func (m *Metric_IntSum) Size() (n int)

type ResourceMetrics

type ResourceMetrics struct {
	// The resource for the metrics in this message.
	// If this field is not set then no resource info is known.
	Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// A list of metrics that originate from a resource.
	InstrumentationLibraryMetrics []*InstrumentationLibraryMetrics `` /* 150-byte string literal not displayed */
	XXX_NoUnkeyedLiteral          struct{}                         `json:"-"`
	XXX_unrecognized              []byte                           `json:"-"`
	XXX_sizecache                 int32                            `json:"-"`
}

A collection of InstrumentationLibraryMetrics from a Resource.

func (*ResourceMetrics) Descriptor

func (*ResourceMetrics) Descriptor() ([]byte, []int)

func (*ResourceMetrics) GetInstrumentationLibraryMetrics

func (m *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics

func (*ResourceMetrics) GetResource

func (m *ResourceMetrics) GetResource() *v1.Resource

func (*ResourceMetrics) Marshal

func (m *ResourceMetrics) Marshal() (dAtA []byte, err error)

func (*ResourceMetrics) MarshalTo

func (m *ResourceMetrics) MarshalTo(dAtA []byte) (int, error)

func (*ResourceMetrics) MarshalToSizedBuffer

func (m *ResourceMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceMetrics) ProtoMessage

func (*ResourceMetrics) ProtoMessage()

func (*ResourceMetrics) Reset

func (m *ResourceMetrics) Reset()

func (*ResourceMetrics) Size

func (m *ResourceMetrics) Size() (n int)

func (*ResourceMetrics) String

func (m *ResourceMetrics) String() string

func (*ResourceMetrics) Unmarshal

func (m *ResourceMetrics) Unmarshal(dAtA []byte) error

func (*ResourceMetrics) XXX_DiscardUnknown

func (m *ResourceMetrics) XXX_DiscardUnknown()

func (*ResourceMetrics) XXX_Marshal

func (m *ResourceMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceMetrics) XXX_Merge

func (m *ResourceMetrics) XXX_Merge(src proto.Message)

func (*ResourceMetrics) XXX_Size

func (m *ResourceMetrics) XXX_Size() int

func (*ResourceMetrics) XXX_Unmarshal

func (m *ResourceMetrics) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL