metricsv1

package
v1.30.0-20230503204408... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricDescriptor_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "GAUGE_INT64",
		2: "GAUGE_DOUBLE",
		3: "GAUGE_DISTRIBUTION",
		4: "CUMULATIVE_INT64",
		5: "CUMULATIVE_DOUBLE",
		6: "CUMULATIVE_DISTRIBUTION",
		7: "SUMMARY",
	}
	MetricDescriptor_Type_value = map[string]int32{
		"UNSPECIFIED":             0,
		"GAUGE_INT64":             1,
		"GAUGE_DOUBLE":            2,
		"GAUGE_DISTRIBUTION":      3,
		"CUMULATIVE_INT64":        4,
		"CUMULATIVE_DOUBLE":       5,
		"CUMULATIVE_DISTRIBUTION": 6,
		"SUMMARY":                 7,
	}
)

Enum value maps for MetricDescriptor_Type.

View Source
var File_opencensus_proto_metrics_v1_metrics_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DistributionValue

type DistributionValue struct {
	Count                 int64                            `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Sum                   float64                          `protobuf:"fixed64,2,opt,name=sum,proto3" json:"sum,omitempty"`
	SumOfSquaredDeviation float64                          `` /* 130-byte string literal not displayed */
	BucketOptions         *DistributionValue_BucketOptions `protobuf:"bytes,4,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
	Buckets               []*DistributionValue_Bucket      `protobuf:"bytes,5,rep,name=buckets,proto3" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

func (*DistributionValue) Descriptor deprecated

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

Deprecated: Use DistributionValue.ProtoReflect.Descriptor instead.

func (*DistributionValue) GetBucketOptions

func (x *DistributionValue) GetBucketOptions() *DistributionValue_BucketOptions

func (*DistributionValue) GetBuckets

func (x *DistributionValue) GetBuckets() []*DistributionValue_Bucket

func (*DistributionValue) GetCount

func (x *DistributionValue) GetCount() int64

func (*DistributionValue) GetSum

func (x *DistributionValue) GetSum() float64

func (*DistributionValue) GetSumOfSquaredDeviation

func (x *DistributionValue) GetSumOfSquaredDeviation() float64

func (*DistributionValue) ProtoMessage

func (*DistributionValue) ProtoMessage()

func (*DistributionValue) ProtoReflect

func (x *DistributionValue) ProtoReflect() protoreflect.Message

func (*DistributionValue) Reset

func (x *DistributionValue) Reset()

func (*DistributionValue) String

func (x *DistributionValue) String() string

type DistributionValue_Bucket

type DistributionValue_Bucket struct {
	Count    int64                       `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Exemplar *DistributionValue_Exemplar `protobuf:"bytes,2,opt,name=exemplar,proto3" json:"exemplar,omitempty"`
	// contains filtered or unexported fields
}

func (*DistributionValue_Bucket) Descriptor deprecated

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

Deprecated: Use DistributionValue_Bucket.ProtoReflect.Descriptor instead.

func (*DistributionValue_Bucket) GetCount

func (x *DistributionValue_Bucket) GetCount() int64

func (*DistributionValue_Bucket) GetExemplar

func (*DistributionValue_Bucket) ProtoMessage

func (*DistributionValue_Bucket) ProtoMessage()

func (*DistributionValue_Bucket) ProtoReflect

func (x *DistributionValue_Bucket) ProtoReflect() protoreflect.Message

func (*DistributionValue_Bucket) Reset

func (x *DistributionValue_Bucket) Reset()

func (*DistributionValue_Bucket) String

func (x *DistributionValue_Bucket) String() string

type DistributionValue_BucketOptions

type DistributionValue_BucketOptions struct {

	// Types that are assignable to Type:
	//
	//	*DistributionValue_BucketOptions_Explicit_
	Type isDistributionValue_BucketOptions_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*DistributionValue_BucketOptions) Descriptor deprecated

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

Deprecated: Use DistributionValue_BucketOptions.ProtoReflect.Descriptor instead.

func (*DistributionValue_BucketOptions) GetExplicit

func (*DistributionValue_BucketOptions) GetType

func (m *DistributionValue_BucketOptions) GetType() isDistributionValue_BucketOptions_Type

func (*DistributionValue_BucketOptions) ProtoMessage

func (*DistributionValue_BucketOptions) ProtoMessage()

func (*DistributionValue_BucketOptions) ProtoReflect

func (*DistributionValue_BucketOptions) Reset

func (*DistributionValue_BucketOptions) String

type DistributionValue_BucketOptions_Explicit

type DistributionValue_BucketOptions_Explicit struct {
	Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
	// contains filtered or unexported fields
}

func (*DistributionValue_BucketOptions_Explicit) Descriptor deprecated

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

Deprecated: Use DistributionValue_BucketOptions_Explicit.ProtoReflect.Descriptor instead.

func (*DistributionValue_BucketOptions_Explicit) GetBounds

func (*DistributionValue_BucketOptions_Explicit) ProtoMessage

func (*DistributionValue_BucketOptions_Explicit) ProtoReflect

func (*DistributionValue_BucketOptions_Explicit) Reset

func (*DistributionValue_BucketOptions_Explicit) String

type DistributionValue_BucketOptions_Explicit_

type DistributionValue_BucketOptions_Explicit_ struct {
	Explicit *DistributionValue_BucketOptions_Explicit `protobuf:"bytes,1,opt,name=explicit,proto3,oneof"`
}

type DistributionValue_Exemplar

type DistributionValue_Exemplar struct {
	Value       float64                `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Attachments map[string]string      `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DistributionValue_Exemplar) Descriptor deprecated

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

Deprecated: Use DistributionValue_Exemplar.ProtoReflect.Descriptor instead.

func (*DistributionValue_Exemplar) GetAttachments

func (x *DistributionValue_Exemplar) GetAttachments() map[string]string

func (*DistributionValue_Exemplar) GetTimestamp

func (*DistributionValue_Exemplar) GetValue

func (x *DistributionValue_Exemplar) GetValue() float64

func (*DistributionValue_Exemplar) ProtoMessage

func (*DistributionValue_Exemplar) ProtoMessage()

func (*DistributionValue_Exemplar) ProtoReflect

func (*DistributionValue_Exemplar) Reset

func (x *DistributionValue_Exemplar) Reset()

func (*DistributionValue_Exemplar) String

func (x *DistributionValue_Exemplar) String() string

type LabelKey

type LabelKey struct {
	Key         string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*LabelKey) Descriptor deprecated

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

Deprecated: Use LabelKey.ProtoReflect.Descriptor instead.

func (*LabelKey) GetDescription

func (x *LabelKey) GetDescription() string

func (*LabelKey) GetKey

func (x *LabelKey) GetKey() string

func (*LabelKey) ProtoMessage

func (*LabelKey) ProtoMessage()

func (*LabelKey) ProtoReflect

func (x *LabelKey) ProtoReflect() protoreflect.Message

func (*LabelKey) Reset

func (x *LabelKey) Reset()

func (*LabelKey) String

func (x *LabelKey) String() string

type LabelValue

type LabelValue struct {
	Value    string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	HasValue bool   `protobuf:"varint,2,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"`
	// contains filtered or unexported fields
}

func (*LabelValue) Descriptor deprecated

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

Deprecated: Use LabelValue.ProtoReflect.Descriptor instead.

func (*LabelValue) GetHasValue

func (x *LabelValue) GetHasValue() bool

func (*LabelValue) GetValue

func (x *LabelValue) GetValue() string

func (*LabelValue) ProtoMessage

func (*LabelValue) ProtoMessage()

func (*LabelValue) ProtoReflect

func (x *LabelValue) ProtoReflect() protoreflect.Message

func (*LabelValue) Reset

func (x *LabelValue) Reset()

func (*LabelValue) String

func (x *LabelValue) String() string

type Metric

type Metric struct {
	MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
	Timeseries       []*TimeSeries     `protobuf:"bytes,2,rep,name=timeseries,proto3" json:"timeseries,omitempty"`
	Resource         *v1.Resource      `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetMetricDescriptor

func (x *Metric) GetMetricDescriptor() *MetricDescriptor

func (*Metric) GetResource

func (x *Metric) GetResource() *v1.Resource

func (*Metric) GetTimeseries

func (x *Metric) GetTimeseries() []*TimeSeries

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type MetricDescriptor

type MetricDescriptor struct {
	Name        string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string                `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Unit        string                `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	Type        MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.metrics.v1.MetricDescriptor_Type" json:"type,omitempty"`
	LabelKeys   []*LabelKey           `protobuf:"bytes,5,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricDescriptor) Descriptor deprecated

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

Deprecated: Use MetricDescriptor.ProtoReflect.Descriptor instead.

func (*MetricDescriptor) GetDescription

func (x *MetricDescriptor) GetDescription() string

func (*MetricDescriptor) GetLabelKeys

func (x *MetricDescriptor) GetLabelKeys() []*LabelKey

func (*MetricDescriptor) GetName

func (x *MetricDescriptor) GetName() string

func (*MetricDescriptor) GetType

func (*MetricDescriptor) GetUnit

func (x *MetricDescriptor) GetUnit() string

func (*MetricDescriptor) ProtoMessage

func (*MetricDescriptor) ProtoMessage()

func (*MetricDescriptor) ProtoReflect

func (x *MetricDescriptor) ProtoReflect() protoreflect.Message

func (*MetricDescriptor) Reset

func (x *MetricDescriptor) Reset()

func (*MetricDescriptor) String

func (x *MetricDescriptor) String() string

type MetricDescriptor_Type

type MetricDescriptor_Type int32
const (
	MetricDescriptor_UNSPECIFIED             MetricDescriptor_Type = 0
	MetricDescriptor_GAUGE_INT64             MetricDescriptor_Type = 1
	MetricDescriptor_GAUGE_DOUBLE            MetricDescriptor_Type = 2
	MetricDescriptor_GAUGE_DISTRIBUTION      MetricDescriptor_Type = 3
	MetricDescriptor_CUMULATIVE_INT64        MetricDescriptor_Type = 4
	MetricDescriptor_CUMULATIVE_DOUBLE       MetricDescriptor_Type = 5
	MetricDescriptor_CUMULATIVE_DISTRIBUTION MetricDescriptor_Type = 6
	MetricDescriptor_SUMMARY                 MetricDescriptor_Type = 7
)

func (MetricDescriptor_Type) Descriptor

func (MetricDescriptor_Type) Enum

func (MetricDescriptor_Type) EnumDescriptor deprecated

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

Deprecated: Use MetricDescriptor_Type.Descriptor instead.

func (MetricDescriptor_Type) Number

func (MetricDescriptor_Type) String

func (x MetricDescriptor_Type) String() string

func (MetricDescriptor_Type) Type

type Point

type Point struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Types that are assignable to Value:
	//
	//	*Point_Int64Value
	//	*Point_DoubleValue
	//	*Point_DistributionValue
	//	*Point_SummaryValue
	Value isPoint_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetDistributionValue

func (x *Point) GetDistributionValue() *DistributionValue

func (*Point) GetDoubleValue

func (x *Point) GetDoubleValue() float64

func (*Point) GetInt64Value

func (x *Point) GetInt64Value() int64

func (*Point) GetSummaryValue

func (x *Point) GetSummaryValue() *SummaryValue

func (*Point) GetTimestamp

func (x *Point) GetTimestamp() *timestamppb.Timestamp

func (*Point) GetValue

func (m *Point) GetValue() isPoint_Value

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

func (x *Point) ProtoReflect() protoreflect.Message

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type Point_DistributionValue

type Point_DistributionValue struct {
	DistributionValue *DistributionValue `protobuf:"bytes,4,opt,name=distribution_value,json=distributionValue,proto3,oneof"`
}

type Point_DoubleValue

type Point_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Point_Int64Value

type Point_Int64Value struct {
	Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Point_SummaryValue

type Point_SummaryValue struct {
	SummaryValue *SummaryValue `protobuf:"bytes,5,opt,name=summary_value,json=summaryValue,proto3,oneof"`
}

type SummaryValue

type SummaryValue struct {
	Count    *wrapperspb.Int64Value  `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
	Sum      *wrapperspb.DoubleValue `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
	Snapshot *SummaryValue_Snapshot  `protobuf:"bytes,3,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

func (*SummaryValue) Descriptor deprecated

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

Deprecated: Use SummaryValue.ProtoReflect.Descriptor instead.

func (*SummaryValue) GetCount

func (x *SummaryValue) GetCount() *wrapperspb.Int64Value

func (*SummaryValue) GetSnapshot

func (x *SummaryValue) GetSnapshot() *SummaryValue_Snapshot

func (*SummaryValue) GetSum

func (x *SummaryValue) GetSum() *wrapperspb.DoubleValue

func (*SummaryValue) ProtoMessage

func (*SummaryValue) ProtoMessage()

func (*SummaryValue) ProtoReflect

func (x *SummaryValue) ProtoReflect() protoreflect.Message

func (*SummaryValue) Reset

func (x *SummaryValue) Reset()

func (*SummaryValue) String

func (x *SummaryValue) String() string

type SummaryValue_Snapshot

type SummaryValue_Snapshot struct {
	Count            *wrapperspb.Int64Value                     `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
	Sum              *wrapperspb.DoubleValue                    `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
	PercentileValues []*SummaryValue_Snapshot_ValueAtPercentile `protobuf:"bytes,3,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"`
	// contains filtered or unexported fields
}

func (*SummaryValue_Snapshot) Descriptor deprecated

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

Deprecated: Use SummaryValue_Snapshot.ProtoReflect.Descriptor instead.

func (*SummaryValue_Snapshot) GetCount

func (*SummaryValue_Snapshot) GetPercentileValues

func (*SummaryValue_Snapshot) GetSum

func (*SummaryValue_Snapshot) ProtoMessage

func (*SummaryValue_Snapshot) ProtoMessage()

func (*SummaryValue_Snapshot) ProtoReflect

func (x *SummaryValue_Snapshot) ProtoReflect() protoreflect.Message

func (*SummaryValue_Snapshot) Reset

func (x *SummaryValue_Snapshot) Reset()

func (*SummaryValue_Snapshot) String

func (x *SummaryValue_Snapshot) String() string

type SummaryValue_Snapshot_ValueAtPercentile

type SummaryValue_Snapshot_ValueAtPercentile struct {
	Percentile float64 `protobuf:"fixed64,1,opt,name=percentile,proto3" json:"percentile,omitempty"`
	Value      float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SummaryValue_Snapshot_ValueAtPercentile) Descriptor deprecated

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

Deprecated: Use SummaryValue_Snapshot_ValueAtPercentile.ProtoReflect.Descriptor instead.

func (*SummaryValue_Snapshot_ValueAtPercentile) GetPercentile

func (*SummaryValue_Snapshot_ValueAtPercentile) GetValue

func (*SummaryValue_Snapshot_ValueAtPercentile) ProtoMessage

func (*SummaryValue_Snapshot_ValueAtPercentile) ProtoReflect

func (*SummaryValue_Snapshot_ValueAtPercentile) Reset

func (*SummaryValue_Snapshot_ValueAtPercentile) String

type TimeSeries

type TimeSeries struct {
	StartTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	LabelValues    []*LabelValue          `protobuf:"bytes,2,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"`
	Points         []*Point               `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeSeries) Descriptor deprecated

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

Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.

func (*TimeSeries) GetLabelValues

func (x *TimeSeries) GetLabelValues() []*LabelValue

func (*TimeSeries) GetPoints

func (x *TimeSeries) GetPoints() []*Point

func (*TimeSeries) GetStartTimestamp

func (x *TimeSeries) GetStartTimestamp() *timestamppb.Timestamp

func (*TimeSeries) ProtoMessage

func (*TimeSeries) ProtoMessage()

func (*TimeSeries) ProtoReflect

func (x *TimeSeries) ProtoReflect() protoreflect.Message

func (*TimeSeries) Reset

func (x *TimeSeries) Reset()

func (*TimeSeries) String

func (x *TimeSeries) String() string

Jump to

Keyboard shortcuts

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