otel: go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/metrics/v1 Index | Files

package v1

import "go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/metrics/v1"

Index

Package Files

metrics.pb.go

Variables

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

type AggregationTemporality Uses

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 Uses

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

func (AggregationTemporality) String Uses

func (x AggregationTemporality) String() string

type DoubleDataPoint Uses

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 Uses

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

func (*DoubleDataPoint) GetExemplars Uses

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

func (*DoubleDataPoint) GetLabels Uses

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

func (*DoubleDataPoint) GetStartTimeUnixNano Uses

func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleDataPoint) GetTimeUnixNano Uses

func (m *DoubleDataPoint) GetTimeUnixNano() uint64

func (*DoubleDataPoint) GetValue Uses

func (m *DoubleDataPoint) GetValue() float64

func (*DoubleDataPoint) Marshal Uses

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

func (*DoubleDataPoint) MarshalTo Uses

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

func (*DoubleDataPoint) MarshalToSizedBuffer Uses

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

func (*DoubleDataPoint) ProtoMessage Uses

func (*DoubleDataPoint) ProtoMessage()

func (*DoubleDataPoint) Reset Uses

func (m *DoubleDataPoint) Reset()

func (*DoubleDataPoint) Size Uses

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

func (*DoubleDataPoint) String Uses

func (m *DoubleDataPoint) String() string

func (*DoubleDataPoint) Unmarshal Uses

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

func (*DoubleDataPoint) XXX_DiscardUnknown Uses

func (m *DoubleDataPoint) XXX_DiscardUnknown()

func (*DoubleDataPoint) XXX_Marshal Uses

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

func (*DoubleDataPoint) XXX_Merge Uses

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

func (*DoubleDataPoint) XXX_Size Uses

func (m *DoubleDataPoint) XXX_Size() int

func (*DoubleDataPoint) XXX_Unmarshal Uses

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

type DoubleExemplar Uses

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 Uses

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

func (*DoubleExemplar) GetFilteredLabels Uses

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

func (*DoubleExemplar) GetSpanId Uses

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

func (*DoubleExemplar) GetTimeUnixNano Uses

func (m *DoubleExemplar) GetTimeUnixNano() uint64

func (*DoubleExemplar) GetTraceId Uses

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

func (*DoubleExemplar) GetValue Uses

func (m *DoubleExemplar) GetValue() float64

func (*DoubleExemplar) Marshal Uses

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

func (*DoubleExemplar) MarshalTo Uses

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

func (*DoubleExemplar) MarshalToSizedBuffer Uses

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

func (*DoubleExemplar) ProtoMessage Uses

func (*DoubleExemplar) ProtoMessage()

func (*DoubleExemplar) Reset Uses

func (m *DoubleExemplar) Reset()

func (*DoubleExemplar) Size Uses

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

func (*DoubleExemplar) String Uses

func (m *DoubleExemplar) String() string

func (*DoubleExemplar) Unmarshal Uses

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

func (*DoubleExemplar) XXX_DiscardUnknown Uses

func (m *DoubleExemplar) XXX_DiscardUnknown()

func (*DoubleExemplar) XXX_Marshal Uses

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

func (*DoubleExemplar) XXX_Merge Uses

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

func (*DoubleExemplar) XXX_Size Uses

func (m *DoubleExemplar) XXX_Size() int

func (*DoubleExemplar) XXX_Unmarshal Uses

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

type DoubleGauge Uses

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 Uses

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

func (*DoubleGauge) GetDataPoints Uses

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

func (*DoubleGauge) Marshal Uses

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

func (*DoubleGauge) MarshalTo Uses

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

func (*DoubleGauge) MarshalToSizedBuffer Uses

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

func (*DoubleGauge) ProtoMessage Uses

func (*DoubleGauge) ProtoMessage()

func (*DoubleGauge) Reset Uses

func (m *DoubleGauge) Reset()

func (*DoubleGauge) Size Uses

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

func (*DoubleGauge) String Uses

func (m *DoubleGauge) String() string

func (*DoubleGauge) Unmarshal Uses

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

func (*DoubleGauge) XXX_DiscardUnknown Uses

func (m *DoubleGauge) XXX_DiscardUnknown()

func (*DoubleGauge) XXX_Marshal Uses

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

func (*DoubleGauge) XXX_Merge Uses

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

func (*DoubleGauge) XXX_Size Uses

func (m *DoubleGauge) XXX_Size() int

func (*DoubleGauge) XXX_Unmarshal Uses

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

type DoubleHistogram Uses

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 `protobuf:"varint,2,opt,name=aggregation_temporality,json=aggregationTemporality,proto3,enum=opentelemetry.proto.metrics.v1.AggregationTemporality" json:"aggregation_temporality,omitempty"`
    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 Uses

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

func (*DoubleHistogram) GetAggregationTemporality Uses

func (m *DoubleHistogram) GetAggregationTemporality() AggregationTemporality

func (*DoubleHistogram) GetDataPoints Uses

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

func (*DoubleHistogram) Marshal Uses

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

func (*DoubleHistogram) MarshalTo Uses

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

func (*DoubleHistogram) MarshalToSizedBuffer Uses

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

func (*DoubleHistogram) ProtoMessage Uses

func (*DoubleHistogram) ProtoMessage()

func (*DoubleHistogram) Reset Uses

func (m *DoubleHistogram) Reset()

func (*DoubleHistogram) Size Uses

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

func (*DoubleHistogram) String Uses

func (m *DoubleHistogram) String() string

func (*DoubleHistogram) Unmarshal Uses

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

func (*DoubleHistogram) XXX_DiscardUnknown Uses

func (m *DoubleHistogram) XXX_DiscardUnknown()

func (*DoubleHistogram) XXX_Marshal Uses

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

func (*DoubleHistogram) XXX_Merge Uses

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

func (*DoubleHistogram) XXX_Size Uses

func (m *DoubleHistogram) XXX_Size() int

func (*DoubleHistogram) XXX_Unmarshal Uses

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

type DoubleHistogramDataPoint Uses

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 Uses

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

func (*DoubleHistogramDataPoint) GetBucketCounts Uses

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

func (*DoubleHistogramDataPoint) GetCount Uses

func (m *DoubleHistogramDataPoint) GetCount() uint64

func (*DoubleHistogramDataPoint) GetExemplars Uses

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

func (*DoubleHistogramDataPoint) GetExplicitBounds Uses

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

func (*DoubleHistogramDataPoint) GetLabels Uses

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

func (*DoubleHistogramDataPoint) GetStartTimeUnixNano Uses

func (m *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) GetSum Uses

func (m *DoubleHistogramDataPoint) GetSum() float64

func (*DoubleHistogramDataPoint) GetTimeUnixNano Uses

func (m *DoubleHistogramDataPoint) GetTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) Marshal Uses

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

func (*DoubleHistogramDataPoint) MarshalTo Uses

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

func (*DoubleHistogramDataPoint) MarshalToSizedBuffer Uses

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

func (*DoubleHistogramDataPoint) ProtoMessage Uses

func (*DoubleHistogramDataPoint) ProtoMessage()

func (*DoubleHistogramDataPoint) Reset Uses

func (m *DoubleHistogramDataPoint) Reset()

func (*DoubleHistogramDataPoint) Size Uses

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

func (*DoubleHistogramDataPoint) String Uses

func (m *DoubleHistogramDataPoint) String() string

func (*DoubleHistogramDataPoint) Unmarshal Uses

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

func (*DoubleHistogramDataPoint) XXX_DiscardUnknown Uses

func (m *DoubleHistogramDataPoint) XXX_DiscardUnknown()

func (*DoubleHistogramDataPoint) XXX_Marshal Uses

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

func (*DoubleHistogramDataPoint) XXX_Merge Uses

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

func (*DoubleHistogramDataPoint) XXX_Size Uses

func (m *DoubleHistogramDataPoint) XXX_Size() int

func (*DoubleHistogramDataPoint) XXX_Unmarshal Uses

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

type DoubleSum Uses

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 `protobuf:"varint,2,opt,name=aggregation_temporality,json=aggregationTemporality,proto3,enum=opentelemetry.proto.metrics.v1.AggregationTemporality" json:"aggregation_temporality,omitempty"`
    // 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 Uses

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

func (*DoubleSum) GetAggregationTemporality Uses

func (m *DoubleSum) GetAggregationTemporality() AggregationTemporality

func (*DoubleSum) GetDataPoints Uses

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

func (*DoubleSum) GetIsMonotonic Uses

func (m *DoubleSum) GetIsMonotonic() bool

func (*DoubleSum) Marshal Uses

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

func (*DoubleSum) MarshalTo Uses

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

func (*DoubleSum) MarshalToSizedBuffer Uses

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

func (*DoubleSum) ProtoMessage Uses

func (*DoubleSum) ProtoMessage()

func (*DoubleSum) Reset Uses

func (m *DoubleSum) Reset()

func (*DoubleSum) Size Uses

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

func (*DoubleSum) String Uses

func (m *DoubleSum) String() string

func (*DoubleSum) Unmarshal Uses

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

func (*DoubleSum) XXX_DiscardUnknown Uses

func (m *DoubleSum) XXX_DiscardUnknown()

func (*DoubleSum) XXX_Marshal Uses

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

func (*DoubleSum) XXX_Merge Uses

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

func (*DoubleSum) XXX_Size Uses

func (m *DoubleSum) XXX_Size() int

func (*DoubleSum) XXX_Unmarshal Uses

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

type InstrumentationLibraryMetrics Uses

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 `protobuf:"bytes,1,opt,name=instrumentation_library,json=instrumentationLibrary,proto3" json:"instrumentation_library,omitempty"`
    // 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 Uses

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

func (*InstrumentationLibraryMetrics) GetInstrumentationLibrary Uses

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

func (*InstrumentationLibraryMetrics) GetMetrics Uses

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

func (*InstrumentationLibraryMetrics) Marshal Uses

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

func (*InstrumentationLibraryMetrics) MarshalTo Uses

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

func (*InstrumentationLibraryMetrics) MarshalToSizedBuffer Uses

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

func (*InstrumentationLibraryMetrics) ProtoMessage Uses

func (*InstrumentationLibraryMetrics) ProtoMessage()

func (*InstrumentationLibraryMetrics) Reset Uses

func (m *InstrumentationLibraryMetrics) Reset()

func (*InstrumentationLibraryMetrics) Size Uses

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

func (*InstrumentationLibraryMetrics) String Uses

func (m *InstrumentationLibraryMetrics) String() string

func (*InstrumentationLibraryMetrics) Unmarshal Uses

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

func (*InstrumentationLibraryMetrics) XXX_DiscardUnknown Uses

func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown()

func (*InstrumentationLibraryMetrics) XXX_Marshal Uses

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

func (*InstrumentationLibraryMetrics) XXX_Merge Uses

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

func (*InstrumentationLibraryMetrics) XXX_Size Uses

func (m *InstrumentationLibraryMetrics) XXX_Size() int

func (*InstrumentationLibraryMetrics) XXX_Unmarshal Uses

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

type IntDataPoint Uses

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 Uses

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

func (*IntDataPoint) GetExemplars Uses

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

func (*IntDataPoint) GetLabels Uses

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

func (*IntDataPoint) GetStartTimeUnixNano Uses

func (m *IntDataPoint) GetStartTimeUnixNano() uint64

func (*IntDataPoint) GetTimeUnixNano Uses

func (m *IntDataPoint) GetTimeUnixNano() uint64

func (*IntDataPoint) GetValue Uses

func (m *IntDataPoint) GetValue() int64

func (*IntDataPoint) Marshal Uses

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

func (*IntDataPoint) MarshalTo Uses

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

func (*IntDataPoint) MarshalToSizedBuffer Uses

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

func (*IntDataPoint) ProtoMessage Uses

func (*IntDataPoint) ProtoMessage()

func (*IntDataPoint) Reset Uses

func (m *IntDataPoint) Reset()

func (*IntDataPoint) Size Uses

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

func (*IntDataPoint) String Uses

func (m *IntDataPoint) String() string

func (*IntDataPoint) Unmarshal Uses

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

func (*IntDataPoint) XXX_DiscardUnknown Uses

func (m *IntDataPoint) XXX_DiscardUnknown()

func (*IntDataPoint) XXX_Marshal Uses

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

func (*IntDataPoint) XXX_Merge Uses

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

func (*IntDataPoint) XXX_Size Uses

func (m *IntDataPoint) XXX_Size() int

func (*IntDataPoint) XXX_Unmarshal Uses

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

type IntExemplar Uses

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 Uses

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

func (*IntExemplar) GetFilteredLabels Uses

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

func (*IntExemplar) GetSpanId Uses

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

func (*IntExemplar) GetTimeUnixNano Uses

func (m *IntExemplar) GetTimeUnixNano() uint64

func (*IntExemplar) GetTraceId Uses

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

func (*IntExemplar) GetValue Uses

func (m *IntExemplar) GetValue() int64

func (*IntExemplar) Marshal Uses

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

func (*IntExemplar) MarshalTo Uses

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

func (*IntExemplar) MarshalToSizedBuffer Uses

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

func (*IntExemplar) ProtoMessage Uses

func (*IntExemplar) ProtoMessage()

func (*IntExemplar) Reset Uses

func (m *IntExemplar) Reset()

func (*IntExemplar) Size Uses

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

func (*IntExemplar) String Uses

func (m *IntExemplar) String() string

func (*IntExemplar) Unmarshal Uses

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

func (*IntExemplar) XXX_DiscardUnknown Uses

func (m *IntExemplar) XXX_DiscardUnknown()

func (*IntExemplar) XXX_Marshal Uses

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

func (*IntExemplar) XXX_Merge Uses

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

func (*IntExemplar) XXX_Size Uses

func (m *IntExemplar) XXX_Size() int

func (*IntExemplar) XXX_Unmarshal Uses

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

type IntGauge Uses

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 Uses

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

func (*IntGauge) GetDataPoints Uses

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

func (*IntGauge) Marshal Uses

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

func (*IntGauge) MarshalTo Uses

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

func (*IntGauge) MarshalToSizedBuffer Uses

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

func (*IntGauge) ProtoMessage Uses

func (*IntGauge) ProtoMessage()

func (*IntGauge) Reset Uses

func (m *IntGauge) Reset()

func (*IntGauge) Size Uses

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

func (*IntGauge) String Uses

func (m *IntGauge) String() string

func (*IntGauge) Unmarshal Uses

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

func (*IntGauge) XXX_DiscardUnknown Uses

func (m *IntGauge) XXX_DiscardUnknown()

func (*IntGauge) XXX_Marshal Uses

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

func (*IntGauge) XXX_Merge Uses

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

func (*IntGauge) XXX_Size Uses

func (m *IntGauge) XXX_Size() int

func (*IntGauge) XXX_Unmarshal Uses

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

type IntHistogram Uses

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 `protobuf:"varint,2,opt,name=aggregation_temporality,json=aggregationTemporality,proto3,enum=opentelemetry.proto.metrics.v1.AggregationTemporality" json:"aggregation_temporality,omitempty"`
    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 Uses

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

func (*IntHistogram) GetAggregationTemporality Uses

func (m *IntHistogram) GetAggregationTemporality() AggregationTemporality

func (*IntHistogram) GetDataPoints Uses

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

func (*IntHistogram) Marshal Uses

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

func (*IntHistogram) MarshalTo Uses

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

func (*IntHistogram) MarshalToSizedBuffer Uses

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

func (*IntHistogram) ProtoMessage Uses

func (*IntHistogram) ProtoMessage()

func (*IntHistogram) Reset Uses

func (m *IntHistogram) Reset()

func (*IntHistogram) Size Uses

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

func (*IntHistogram) String Uses

func (m *IntHistogram) String() string

func (*IntHistogram) Unmarshal Uses

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

func (*IntHistogram) XXX_DiscardUnknown Uses

func (m *IntHistogram) XXX_DiscardUnknown()

func (*IntHistogram) XXX_Marshal Uses

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

func (*IntHistogram) XXX_Merge Uses

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

func (*IntHistogram) XXX_Size Uses

func (m *IntHistogram) XXX_Size() int

func (*IntHistogram) XXX_Unmarshal Uses

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

type IntHistogramDataPoint Uses

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 Uses

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

func (*IntHistogramDataPoint) GetBucketCounts Uses

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

func (*IntHistogramDataPoint) GetCount Uses

func (m *IntHistogramDataPoint) GetCount() uint64

func (*IntHistogramDataPoint) GetExemplars Uses

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

func (*IntHistogramDataPoint) GetExplicitBounds Uses

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

func (*IntHistogramDataPoint) GetLabels Uses

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

func (*IntHistogramDataPoint) GetStartTimeUnixNano Uses

func (m *IntHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*IntHistogramDataPoint) GetSum Uses

func (m *IntHistogramDataPoint) GetSum() int64

func (*IntHistogramDataPoint) GetTimeUnixNano Uses

func (m *IntHistogramDataPoint) GetTimeUnixNano() uint64

func (*IntHistogramDataPoint) Marshal Uses

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

func (*IntHistogramDataPoint) MarshalTo Uses

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

func (*IntHistogramDataPoint) MarshalToSizedBuffer Uses

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

func (*IntHistogramDataPoint) ProtoMessage Uses

func (*IntHistogramDataPoint) ProtoMessage()

func (*IntHistogramDataPoint) Reset Uses

func (m *IntHistogramDataPoint) Reset()

func (*IntHistogramDataPoint) Size Uses

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

func (*IntHistogramDataPoint) String Uses

func (m *IntHistogramDataPoint) String() string

func (*IntHistogramDataPoint) Unmarshal Uses

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

func (*IntHistogramDataPoint) XXX_DiscardUnknown Uses

func (m *IntHistogramDataPoint) XXX_DiscardUnknown()

func (*IntHistogramDataPoint) XXX_Marshal Uses

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

func (*IntHistogramDataPoint) XXX_Merge Uses

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

func (*IntHistogramDataPoint) XXX_Size Uses

func (m *IntHistogramDataPoint) XXX_Size() int

func (*IntHistogramDataPoint) XXX_Unmarshal Uses

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

type IntSum Uses

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 `protobuf:"varint,2,opt,name=aggregation_temporality,json=aggregationTemporality,proto3,enum=opentelemetry.proto.metrics.v1.AggregationTemporality" json:"aggregation_temporality,omitempty"`
    // 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 Uses

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

func (*IntSum) GetAggregationTemporality Uses

func (m *IntSum) GetAggregationTemporality() AggregationTemporality

func (*IntSum) GetDataPoints Uses

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

func (*IntSum) GetIsMonotonic Uses

func (m *IntSum) GetIsMonotonic() bool

func (*IntSum) Marshal Uses

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

func (*IntSum) MarshalTo Uses

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

func (*IntSum) MarshalToSizedBuffer Uses

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

func (*IntSum) ProtoMessage Uses

func (*IntSum) ProtoMessage()

func (*IntSum) Reset Uses

func (m *IntSum) Reset()

func (*IntSum) Size Uses

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

func (*IntSum) String Uses

func (m *IntSum) String() string

func (*IntSum) Unmarshal Uses

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

func (*IntSum) XXX_DiscardUnknown Uses

func (m *IntSum) XXX_DiscardUnknown()

func (*IntSum) XXX_Marshal Uses

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

func (*IntSum) XXX_Merge Uses

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

func (*IntSum) XXX_Size Uses

func (m *IntSum) XXX_Size() int

func (*IntSum) XXX_Unmarshal Uses

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

type Metric Uses

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 Uses

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

func (*Metric) GetData Uses

func (m *Metric) GetData() isMetric_Data

func (*Metric) GetDescription Uses

func (m *Metric) GetDescription() string

func (*Metric) GetDoubleGauge Uses

func (m *Metric) GetDoubleGauge() *DoubleGauge

func (*Metric) GetDoubleHistogram Uses

func (m *Metric) GetDoubleHistogram() *DoubleHistogram

func (*Metric) GetDoubleSum Uses

func (m *Metric) GetDoubleSum() *DoubleSum

func (*Metric) GetIntGauge Uses

func (m *Metric) GetIntGauge() *IntGauge

func (*Metric) GetIntHistogram Uses

func (m *Metric) GetIntHistogram() *IntHistogram

func (*Metric) GetIntSum Uses

func (m *Metric) GetIntSum() *IntSum

func (*Metric) GetName Uses

func (m *Metric) GetName() string

func (*Metric) GetUnit Uses

func (m *Metric) GetUnit() string

func (*Metric) Marshal Uses

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

func (*Metric) MarshalTo Uses

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

func (*Metric) MarshalToSizedBuffer Uses

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

func (*Metric) ProtoMessage Uses

func (*Metric) ProtoMessage()

func (*Metric) Reset Uses

func (m *Metric) Reset()

func (*Metric) Size Uses

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

func (*Metric) String Uses

func (m *Metric) String() string

func (*Metric) Unmarshal Uses

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

func (*Metric) XXX_DiscardUnknown Uses

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal Uses

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

func (*Metric) XXX_Merge Uses

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

func (*Metric) XXX_OneofWrappers Uses

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*Metric) XXX_Size Uses

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal Uses

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

type Metric_DoubleGauge Uses

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 Uses

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

func (*Metric_DoubleGauge) MarshalToSizedBuffer Uses

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

func (*Metric_DoubleGauge) Size Uses

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

type Metric_DoubleHistogram Uses

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 Uses

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

func (*Metric_DoubleHistogram) MarshalToSizedBuffer Uses

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

func (*Metric_DoubleHistogram) Size Uses

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

type Metric_DoubleSum Uses

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 Uses

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

func (*Metric_DoubleSum) MarshalToSizedBuffer Uses

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

func (*Metric_DoubleSum) Size Uses

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

type Metric_IntGauge Uses

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 Uses

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

func (*Metric_IntGauge) MarshalToSizedBuffer Uses

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

func (*Metric_IntGauge) Size Uses

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

type Metric_IntHistogram Uses

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 Uses

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

func (*Metric_IntHistogram) MarshalToSizedBuffer Uses

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

func (*Metric_IntHistogram) Size Uses

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

type Metric_IntSum Uses

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 Uses

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

func (*Metric_IntSum) MarshalToSizedBuffer Uses

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

func (*Metric_IntSum) Size Uses

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

type ResourceMetrics Uses

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 `protobuf:"bytes,2,rep,name=instrumentation_library_metrics,json=instrumentationLibraryMetrics,proto3" json:"instrumentation_library_metrics,omitempty"`
    XXX_NoUnkeyedLiteral          struct{}                         `json:"-"`
    XXX_unrecognized              []byte                           `json:"-"`
    XXX_sizecache                 int32                            `json:"-"`
}

A collection of InstrumentationLibraryMetrics from a Resource.

func (*ResourceMetrics) Descriptor Uses

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

func (*ResourceMetrics) GetInstrumentationLibraryMetrics Uses

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

func (*ResourceMetrics) GetResource Uses

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

func (*ResourceMetrics) Marshal Uses

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

func (*ResourceMetrics) MarshalTo Uses

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

func (*ResourceMetrics) MarshalToSizedBuffer Uses

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

func (*ResourceMetrics) ProtoMessage Uses

func (*ResourceMetrics) ProtoMessage()

func (*ResourceMetrics) Reset Uses

func (m *ResourceMetrics) Reset()

func (*ResourceMetrics) Size Uses

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

func (*ResourceMetrics) String Uses

func (m *ResourceMetrics) String() string

func (*ResourceMetrics) Unmarshal Uses

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

func (*ResourceMetrics) XXX_DiscardUnknown Uses

func (m *ResourceMetrics) XXX_DiscardUnknown()

func (*ResourceMetrics) XXX_Marshal Uses

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

func (*ResourceMetrics) XXX_Merge Uses

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

func (*ResourceMetrics) XXX_Size Uses

func (m *ResourceMetrics) XXX_Size() int

func (*ResourceMetrics) XXX_Unmarshal Uses

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

Package v1 imports 8 packages (graph) and is imported by 2 packages. Updated 2020-10-20. Refresh now. Tools for package owners.