pb

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeSeriesFamily_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "GAUGE",
		2: "COUNTER",
		3: "HISTOGRAM",
	}
	TimeSeriesFamily_Type_value = map[string]int32{
		"UNKNOWN":   0,
		"GAUGE":     1,
		"COUNTER":   2,
		"HISTOGRAM": 3,
	}
)

Enum value maps for TimeSeriesFamily_Type.

View Source
var File_gpu_ninja_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CounterValue

type CounterValue struct {

	// Types that are assignable to Total:
	//
	//	*CounterValue_DoubleValue
	//	*CounterValue_IntValue
	Total isCounterValue_Total `protobuf_oneof:"total"`
	// contains filtered or unexported fields
}

func (*CounterValue) Descriptor deprecated

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

Deprecated: Use CounterValue.ProtoReflect.Descriptor instead.

func (*CounterValue) GetDoubleValue

func (x *CounterValue) GetDoubleValue() float64

func (*CounterValue) GetIntValue

func (x *CounterValue) GetIntValue() uint64

func (*CounterValue) GetTotal

func (m *CounterValue) GetTotal() isCounterValue_Total

func (*CounterValue) ProtoMessage

func (*CounterValue) ProtoMessage()

func (*CounterValue) ProtoReflect

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

func (*CounterValue) Reset

func (x *CounterValue) Reset()

func (*CounterValue) String

func (x *CounterValue) String() string

type CounterValue_DoubleValue

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

type CounterValue_IntValue

type CounterValue_IntValue struct {
	IntValue uint64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Event

type Event struct {

	// The unique identifier for this event.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The labels associated with this event.
	Labels []*Label `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	// The time when this event was recorded.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Event is a single discrete event.

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) GetLabels

func (x *Event) GetLabels() []*Label

func (*Event) GetTimestamp

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

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type GaugeValue

type GaugeValue struct {

	// Types that are assignable to Value:
	//
	//	*GaugeValue_DoubleValue
	//	*GaugeValue_IntValue
	Value isGaugeValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*GaugeValue) Descriptor deprecated

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

Deprecated: Use GaugeValue.ProtoReflect.Descriptor instead.

func (*GaugeValue) GetDoubleValue

func (x *GaugeValue) GetDoubleValue() float64

func (*GaugeValue) GetIntValue

func (x *GaugeValue) GetIntValue() int64

func (*GaugeValue) GetValue

func (m *GaugeValue) GetValue() isGaugeValue_Value

func (*GaugeValue) ProtoMessage

func (*GaugeValue) ProtoMessage()

func (*GaugeValue) ProtoReflect

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

func (*GaugeValue) Reset

func (x *GaugeValue) Reset()

func (*GaugeValue) String

func (x *GaugeValue) String() string

type GaugeValue_DoubleValue

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

type GaugeValue_IntValue

type GaugeValue_IntValue struct {
	IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type HistogramValue

type HistogramValue struct {

	// Types that are assignable to Sum:
	//
	//	*HistogramValue_DoubleValue
	//	*HistogramValue_IntValue
	Sum     isHistogramValue_Sum     `protobuf_oneof:"sum"`
	Count   uint64                   `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Buckets []*HistogramValue_Bucket `protobuf:"bytes,4,rep,name=buckets,proto3" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

func (*HistogramValue) Descriptor deprecated

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

Deprecated: Use HistogramValue.ProtoReflect.Descriptor instead.

func (*HistogramValue) GetBuckets

func (x *HistogramValue) GetBuckets() []*HistogramValue_Bucket

func (*HistogramValue) GetCount

func (x *HistogramValue) GetCount() uint64

func (*HistogramValue) GetDoubleValue

func (x *HistogramValue) GetDoubleValue() float64

func (*HistogramValue) GetIntValue

func (x *HistogramValue) GetIntValue() int64

func (*HistogramValue) GetSum

func (m *HistogramValue) GetSum() isHistogramValue_Sum

func (*HistogramValue) ProtoMessage

func (*HistogramValue) ProtoMessage()

func (*HistogramValue) ProtoReflect

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

func (*HistogramValue) Reset

func (x *HistogramValue) Reset()

func (*HistogramValue) String

func (x *HistogramValue) String() string

type HistogramValue_Bucket

type HistogramValue_Bucket struct {
	Count      uint64  `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	UpperBound float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"`
	// contains filtered or unexported fields
}

func (*HistogramValue_Bucket) Descriptor deprecated

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

Deprecated: Use HistogramValue_Bucket.ProtoReflect.Descriptor instead.

func (*HistogramValue_Bucket) GetCount

func (x *HistogramValue_Bucket) GetCount() uint64

func (*HistogramValue_Bucket) GetUpperBound

func (x *HistogramValue_Bucket) GetUpperBound() float64

func (*HistogramValue_Bucket) ProtoMessage

func (*HistogramValue_Bucket) ProtoMessage()

func (*HistogramValue_Bucket) ProtoReflect

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

func (*HistogramValue_Bucket) Reset

func (x *HistogramValue_Bucket) Reset()

func (*HistogramValue_Bucket) String

func (x *HistogramValue_Bucket) String() string

type HistogramValue_DoubleValue

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

type HistogramValue_IntValue

type HistogramValue_IntValue struct {
	IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Label

type Label struct {

	// The key of the label.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The value of the label.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Label is a key-value pair that can be used to tag and filter timeseries / events.

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) GetValue

func (x *Label) GetValue() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type Sample

type Sample struct {

	// The time when this data point was recorded.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The value of the data point.
	//
	// Types that are assignable to Value:
	//
	//	*Sample_GaugeValue
	//	*Sample_CounterValue
	//	*Sample_HistogramValue
	Value isSample_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Sample is a single data point in a timeseries.

func (*Sample) Descriptor deprecated

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

Deprecated: Use Sample.ProtoReflect.Descriptor instead.

func (*Sample) GetCounterValue

func (x *Sample) GetCounterValue() *CounterValue

func (*Sample) GetGaugeValue

func (x *Sample) GetGaugeValue() *GaugeValue

func (*Sample) GetHistogramValue

func (x *Sample) GetHistogramValue() *HistogramValue

func (*Sample) GetTimestamp

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

func (*Sample) GetValue

func (m *Sample) GetValue() isSample_Value

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) ProtoReflect

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

func (*Sample) Reset

func (x *Sample) Reset()

func (*Sample) String

func (x *Sample) String() string

type Sample_CounterValue

type Sample_CounterValue struct {
	CounterValue *CounterValue `protobuf:"bytes,3,opt,name=counter_value,json=counterValue,proto3,oneof"`
}

type Sample_GaugeValue

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

type Sample_HistogramValue

type Sample_HistogramValue struct {
	HistogramValue *HistogramValue `protobuf:"bytes,4,opt,name=histogram_value,json=histogramValue,proto3,oneof"`
}

type TimeSeries

type TimeSeries struct {

	// The labels associated with this timeseries.
	Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// The data points in this timeseries.
	Samples []*Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"`
	// contains filtered or unexported fields
}

TimeSeries is a collection of data points that share the same labels.

func (*TimeSeries) Descriptor deprecated

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

Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.

func (*TimeSeries) GetLabels

func (x *TimeSeries) GetLabels() []*Label

func (*TimeSeries) GetSamples

func (x *TimeSeries) GetSamples() []*Sample

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

type TimeSeriesFamily

type TimeSeriesFamily struct {

	// The name of the timeseries family.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// An optional type for the timeseries family.
	Type TimeSeriesFamily_Type `protobuf:"varint,2,opt,name=type,proto3,enum=gpu_ninja.v1alpha1.TimeSeriesFamily_Type" json:"type,omitempty"`
	// An optional unit for the timeseries family.
	Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	// Optional help text for the timeseries family.
	Help string `protobuf:"bytes,4,opt,name=help,proto3" json:"help,omitempty"`
	// The timeseries in this family.
	TimeSeries []*TimeSeries `protobuf:"bytes,5,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeSeriesFamily) Descriptor deprecated

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

Deprecated: Use TimeSeriesFamily.ProtoReflect.Descriptor instead.

func (*TimeSeriesFamily) GetHelp

func (x *TimeSeriesFamily) GetHelp() string

func (*TimeSeriesFamily) GetName

func (x *TimeSeriesFamily) GetName() string

func (*TimeSeriesFamily) GetTimeSeries

func (x *TimeSeriesFamily) GetTimeSeries() []*TimeSeries

func (*TimeSeriesFamily) GetType

func (*TimeSeriesFamily) GetUnit

func (x *TimeSeriesFamily) GetUnit() string

func (*TimeSeriesFamily) ProtoMessage

func (*TimeSeriesFamily) ProtoMessage()

func (*TimeSeriesFamily) ProtoReflect

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

func (*TimeSeriesFamily) Reset

func (x *TimeSeriesFamily) Reset()

func (*TimeSeriesFamily) String

func (x *TimeSeriesFamily) String() string

type TimeSeriesFamily_Type

type TimeSeriesFamily_Type int32
const (
	TimeSeriesFamily_UNKNOWN   TimeSeriesFamily_Type = 0
	TimeSeriesFamily_GAUGE     TimeSeriesFamily_Type = 1
	TimeSeriesFamily_COUNTER   TimeSeriesFamily_Type = 2
	TimeSeriesFamily_HISTOGRAM TimeSeriesFamily_Type = 3
)

func (TimeSeriesFamily_Type) Descriptor

func (TimeSeriesFamily_Type) Enum

func (TimeSeriesFamily_Type) EnumDescriptor deprecated

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

Deprecated: Use TimeSeriesFamily_Type.Descriptor instead.

func (TimeSeriesFamily_Type) Number

func (TimeSeriesFamily_Type) String

func (x TimeSeriesFamily_Type) String() string

func (TimeSeriesFamily_Type) Type

Directories

Path Synopsis
Code generated by protoc-gen-go-ttrpc.
Code generated by protoc-gen-go-ttrpc.

Jump to

Keyboard shortcuts

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