pb

package
v1.97.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

README

Documentation

Index

Constants

View Source
const (
	// AggregationTemporalityUnspecified is enum value for AggregationTemporality
	AggregationTemporalityUnspecified = AggregationTemporality(0)
	// AggregationTemporalityDelta is enum value for AggregationTemporality
	AggregationTemporalityDelta = AggregationTemporality(1)
	// AggregationTemporalityCumulative is enum value for AggregationTemporality
	AggregationTemporalityCumulative = AggregationTemporality(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationTemporality

type AggregationTemporality int

AggregationTemporality represents the corresponding OTEL protobuf enum

type AnyValue

type AnyValue struct {
	StringValue  *string
	BoolValue    *bool
	IntValue     *int64
	DoubleValue  *float64
	ArrayValue   *ArrayValue
	KeyValueList *KeyValueList
	BytesValue   *[]byte
}

AnyValue represents the corresponding OTEL protobuf message

func (*AnyValue) FormatString

func (av *AnyValue) FormatString() string

FormatString returns string reperesentation for av.

type ArrayValue

type ArrayValue struct {
	Values []*AnyValue
}

ArrayValue represents the corresponding OTEL protobuf message

type ExportMetricsServiceRequest

type ExportMetricsServiceRequest struct {
	ResourceMetrics []*ResourceMetrics
}

ExportMetricsServiceRequest represents the corresponding OTEL protobuf message

func (*ExportMetricsServiceRequest) MarshalProtobuf added in v1.97.0

func (r *ExportMetricsServiceRequest) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf marshals r to protobuf message, appends it to dst and returns the result.

func (*ExportMetricsServiceRequest) UnmarshalProtobuf added in v1.97.0

func (r *ExportMetricsServiceRequest) UnmarshalProtobuf(src []byte) error

UnmarshalProtobuf unmarshals r from protobuf message at src.

type Gauge

type Gauge struct {
	DataPoints []*NumberDataPoint
}

Gauge represents the corresponding OTEL protobuf message

type Histogram

type Histogram struct {
	DataPoints             []*HistogramDataPoint
	AggregationTemporality AggregationTemporality
}

Histogram represents the corresponding OTEL protobuf message

type HistogramDataPoint

type HistogramDataPoint struct {
	Attributes     []*KeyValue
	TimeUnixNano   uint64
	Count          uint64
	Sum            *float64
	BucketCounts   []uint64
	ExplicitBounds []float64
	Flags          uint32
}

HistogramDataPoint represents the corresponding OTEL protobuf message

type KeyValue

type KeyValue struct {
	Key   string
	Value *AnyValue
}

KeyValue represents the corresponding OTEL protobuf message

type KeyValueList

type KeyValueList struct {
	Values []*KeyValue
}

KeyValueList represents the corresponding OTEL protobuf message

type Metric

type Metric struct {
	Name      string
	Gauge     *Gauge
	Sum       *Sum
	Histogram *Histogram
	Summary   *Summary
}

Metric represents the corresponding OTEL protobuf message

type NumberDataPoint

type NumberDataPoint struct {
	Attributes   []*KeyValue
	TimeUnixNano uint64
	DoubleValue  *float64
	IntValue     *int64
	Flags        uint32
}

NumberDataPoint represents the corresponding OTEL protobuf message

type Resource

type Resource struct {
	Attributes []*KeyValue
}

Resource represents the corresponding OTEL protobuf message

type ResourceMetrics

type ResourceMetrics struct {
	Resource     *Resource
	ScopeMetrics []*ScopeMetrics
}

ResourceMetrics represents the corresponding OTEL protobuf message

type ScopeMetrics

type ScopeMetrics struct {
	Metrics []*Metric
}

ScopeMetrics represents the corresponding OTEL protobuf message

type Sum

type Sum struct {
	DataPoints             []*NumberDataPoint
	AggregationTemporality AggregationTemporality
}

Sum represents the corresponding OTEL protobuf message

type Summary

type Summary struct {
	DataPoints []*SummaryDataPoint
}

Summary represents the corresponding OTEL protobuf message

type SummaryDataPoint

type SummaryDataPoint struct {
	Attributes     []*KeyValue
	TimeUnixNano   uint64
	Count          uint64
	Sum            float64
	QuantileValues []*ValueAtQuantile
	Flags          uint32
}

SummaryDataPoint represents the corresponding OTEL protobuf message

type ValueAtQuantile added in v1.97.0

type ValueAtQuantile struct {
	Quantile float64
	Value    float64
}

ValueAtQuantile represents the corresponding OTEL protobuf message

Jump to

Keyboard shortcuts

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