pb

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricsPayload_MetricType_name = map[int32]string{
		0: "UNKNOWN",
		1: "GAUGE",
		4: "INFO",
	}
	MetricsPayload_MetricType_value = map[string]int32{
		"UNKNOWN": 0,
		"GAUGE":   1,
		"INFO":    4,
	}
)

Enum value maps for MetricsPayload_MetricType.

View Source
var File_pkg_proto_metrics_payload_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MetricsPayload

type MetricsPayload struct {
	Metrics []*MetricsPayload_Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricsPayload) Descriptor deprecated

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

Deprecated: Use MetricsPayload.ProtoReflect.Descriptor instead.

func (*MetricsPayload) GetMetrics

func (x *MetricsPayload) GetMetrics() []*MetricsPayload_Metric

func (*MetricsPayload) ProtoMessage

func (*MetricsPayload) ProtoMessage()

func (*MetricsPayload) ProtoReflect

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

func (*MetricsPayload) Reset

func (x *MetricsPayload) Reset()

func (*MetricsPayload) String

func (x *MetricsPayload) String() string

type MetricsPayload_GaugeValue

type MetricsPayload_GaugeValue struct {

	// Required.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Value for GAUGE Metric.

func (*MetricsPayload_GaugeValue) Descriptor deprecated

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

Deprecated: Use MetricsPayload_GaugeValue.ProtoReflect.Descriptor instead.

func (*MetricsPayload_GaugeValue) GetValue

func (x *MetricsPayload_GaugeValue) GetValue() float64

func (*MetricsPayload_GaugeValue) ProtoMessage

func (*MetricsPayload_GaugeValue) ProtoMessage()

func (*MetricsPayload_GaugeValue) ProtoReflect

func (*MetricsPayload_GaugeValue) Reset

func (x *MetricsPayload_GaugeValue) Reset()

func (*MetricsPayload_GaugeValue) String

func (x *MetricsPayload_GaugeValue) String() string

type MetricsPayload_InfoValue

type MetricsPayload_InfoValue struct {

	// Optional.
	Info []*MetricsPayload_Label `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

Value for INFO Metric.

func (*MetricsPayload_InfoValue) Descriptor deprecated

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

Deprecated: Use MetricsPayload_InfoValue.ProtoReflect.Descriptor instead.

func (*MetricsPayload_InfoValue) GetInfo

func (*MetricsPayload_InfoValue) ProtoMessage

func (*MetricsPayload_InfoValue) ProtoMessage()

func (*MetricsPayload_InfoValue) ProtoReflect

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

func (*MetricsPayload_InfoValue) Reset

func (x *MetricsPayload_InfoValue) Reset()

func (*MetricsPayload_InfoValue) String

func (x *MetricsPayload_InfoValue) String() string

type MetricsPayload_Label

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

func (*MetricsPayload_Label) Descriptor deprecated

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

Deprecated: Use MetricsPayload_Label.ProtoReflect.Descriptor instead.

func (*MetricsPayload_Label) GetKey

func (x *MetricsPayload_Label) GetKey() string

func (*MetricsPayload_Label) GetValue

func (x *MetricsPayload_Label) GetValue() string

func (*MetricsPayload_Label) ProtoMessage

func (*MetricsPayload_Label) ProtoMessage()

func (*MetricsPayload_Label) ProtoReflect

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

func (*MetricsPayload_Label) Reset

func (x *MetricsPayload_Label) Reset()

func (*MetricsPayload_Label) String

func (x *MetricsPayload_Label) String() string

type MetricsPayload_Metric

type MetricsPayload_Metric struct {
	Key    string                    `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Type   MetricsPayload_MetricType `protobuf:"varint,2,opt,name=type,proto3,enum=spectate.agent.MetricsPayload_MetricType" json:"type,omitempty"`
	Labels []*MetricsPayload_Label   `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	// Types that are assignable to Value:
	//
	//	*MetricsPayload_Metric_UnknownValue
	//	*MetricsPayload_Metric_GaugeValue
	//	*MetricsPayload_Metric_InfoValue
	Value     isMetricsPayload_Metric_Value `protobuf_oneof:"value"`
	Timestamp *timestamppb.Timestamp        `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricsPayload_Metric) Descriptor deprecated

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

Deprecated: Use MetricsPayload_Metric.ProtoReflect.Descriptor instead.

func (*MetricsPayload_Metric) GetGaugeValue

func (*MetricsPayload_Metric) GetInfoValue

func (*MetricsPayload_Metric) GetKey

func (x *MetricsPayload_Metric) GetKey() string

func (*MetricsPayload_Metric) GetLabels

func (x *MetricsPayload_Metric) GetLabels() []*MetricsPayload_Label

func (*MetricsPayload_Metric) GetTimestamp

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

func (*MetricsPayload_Metric) GetType

func (*MetricsPayload_Metric) GetUnknownValue

func (x *MetricsPayload_Metric) GetUnknownValue() *MetricsPayload_UnknownValue

func (*MetricsPayload_Metric) GetValue

func (m *MetricsPayload_Metric) GetValue() isMetricsPayload_Metric_Value

func (*MetricsPayload_Metric) ProtoMessage

func (*MetricsPayload_Metric) ProtoMessage()

func (*MetricsPayload_Metric) ProtoReflect

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

func (*MetricsPayload_Metric) Reset

func (x *MetricsPayload_Metric) Reset()

func (*MetricsPayload_Metric) String

func (x *MetricsPayload_Metric) String() string

type MetricsPayload_MetricType

type MetricsPayload_MetricType int32

The data type of a Metric value. Deferred from OpenMetrics types.

const (
	MetricsPayload_UNKNOWN MetricsPayload_MetricType = 0 // Default value. Should not be used.
	MetricsPayload_GAUGE   MetricsPayload_MetricType = 1
	MetricsPayload_INFO    MetricsPayload_MetricType = 4
)

func (MetricsPayload_MetricType) Descriptor

func (MetricsPayload_MetricType) Enum

func (MetricsPayload_MetricType) EnumDescriptor deprecated

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

Deprecated: Use MetricsPayload_MetricType.Descriptor instead.

func (MetricsPayload_MetricType) Number

func (MetricsPayload_MetricType) String

func (x MetricsPayload_MetricType) String() string

func (MetricsPayload_MetricType) Type

type MetricsPayload_Metric_GaugeValue

type MetricsPayload_Metric_GaugeValue struct {
	GaugeValue *MetricsPayload_GaugeValue `protobuf:"bytes,5,opt,name=gauge_value,json=gaugeValue,proto3,oneof"`
}

type MetricsPayload_Metric_InfoValue

type MetricsPayload_Metric_InfoValue struct {
	InfoValue *MetricsPayload_InfoValue `protobuf:"bytes,9,opt,name=info_value,json=infoValue,proto3,oneof"`
}

type MetricsPayload_Metric_UnknownValue

type MetricsPayload_Metric_UnknownValue struct {
	UnknownValue *MetricsPayload_UnknownValue `protobuf:"bytes,4,opt,name=unknown_value,json=unknownValue,proto3,oneof"`
}

type MetricsPayload_UnknownValue

type MetricsPayload_UnknownValue struct {

	// Required.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Value for UNKNOWN Metric.

func (*MetricsPayload_UnknownValue) Descriptor deprecated

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

Deprecated: Use MetricsPayload_UnknownValue.ProtoReflect.Descriptor instead.

func (*MetricsPayload_UnknownValue) GetValue

func (x *MetricsPayload_UnknownValue) GetValue() float64

func (*MetricsPayload_UnknownValue) ProtoMessage

func (*MetricsPayload_UnknownValue) ProtoMessage()

func (*MetricsPayload_UnknownValue) ProtoReflect

func (*MetricsPayload_UnknownValue) Reset

func (x *MetricsPayload_UnknownValue) Reset()

func (*MetricsPayload_UnknownValue) String

func (x *MetricsPayload_UnknownValue) String() string

Jump to

Keyboard shortcuts

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