metric_go_proto

package
v0.0.0-...-a858404 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricMetadata_Type_name = map[int32]string{
		0: "TYPE_UINT64",
		1: "TYPE_DISTRIBUTION",
	}
	MetricMetadata_Type_value = map[string]int32{
		"TYPE_UINT64":       0,
		"TYPE_DISTRIBUTION": 1,
	}
)

Enum value maps for MetricMetadata_Type.

View Source
var (
	MetricMetadata_Units_name = map[int32]string{
		0: "UNITS_NONE",
		1: "UNITS_NANOSECONDS",
	}
	MetricMetadata_Units_value = map[string]int32{
		"UNITS_NONE":        0,
		"UNITS_NANOSECONDS": 1,
	}
)

Enum value maps for MetricMetadata_Units.

View Source
var File_pkg_metric_metric_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MetricMetadata

type MetricMetadata struct {
	Name                          string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PrometheusName                string                  `protobuf:"bytes,9,opt,name=prometheus_name,json=prometheusName,proto3" json:"prometheus_name,omitempty"`
	Description                   string                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Cumulative                    bool                    `protobuf:"varint,3,opt,name=cumulative,proto3" json:"cumulative,omitempty"`
	Sync                          bool                    `protobuf:"varint,4,opt,name=sync,proto3" json:"sync,omitempty"`
	Type                          MetricMetadata_Type     `protobuf:"varint,5,opt,name=type,proto3,enum=gvisor.MetricMetadata_Type" json:"type,omitempty"`
	Units                         MetricMetadata_Units    `protobuf:"varint,6,opt,name=units,proto3,enum=gvisor.MetricMetadata_Units" json:"units,omitempty"`
	Fields                        []*MetricMetadata_Field `protobuf:"bytes,7,rep,name=fields,proto3" json:"fields,omitempty"`
	DistributionBucketLowerBounds []int64                 `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MetricMetadata) Descriptor deprecated

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

Deprecated: Use MetricMetadata.ProtoReflect.Descriptor instead.

func (*MetricMetadata) GetCumulative

func (x *MetricMetadata) GetCumulative() bool

func (*MetricMetadata) GetDescription

func (x *MetricMetadata) GetDescription() string

func (*MetricMetadata) GetDistributionBucketLowerBounds

func (x *MetricMetadata) GetDistributionBucketLowerBounds() []int64

func (*MetricMetadata) GetFields

func (x *MetricMetadata) GetFields() []*MetricMetadata_Field

func (*MetricMetadata) GetName

func (x *MetricMetadata) GetName() string

func (*MetricMetadata) GetPrometheusName

func (x *MetricMetadata) GetPrometheusName() string

func (*MetricMetadata) GetSync

func (x *MetricMetadata) GetSync() bool

func (*MetricMetadata) GetType

func (x *MetricMetadata) GetType() MetricMetadata_Type

func (*MetricMetadata) GetUnits

func (x *MetricMetadata) GetUnits() MetricMetadata_Units

func (*MetricMetadata) ProtoMessage

func (*MetricMetadata) ProtoMessage()

func (*MetricMetadata) ProtoReflect

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

func (*MetricMetadata) Reset

func (x *MetricMetadata) Reset()

func (*MetricMetadata) String

func (x *MetricMetadata) String() string

type MetricMetadata_Field

type MetricMetadata_Field struct {
	FieldName     string   `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricMetadata_Field) Descriptor deprecated

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

Deprecated: Use MetricMetadata_Field.ProtoReflect.Descriptor instead.

func (*MetricMetadata_Field) GetAllowedValues

func (x *MetricMetadata_Field) GetAllowedValues() []string

func (*MetricMetadata_Field) GetFieldName

func (x *MetricMetadata_Field) GetFieldName() string

func (*MetricMetadata_Field) ProtoMessage

func (*MetricMetadata_Field) ProtoMessage()

func (*MetricMetadata_Field) ProtoReflect

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

func (*MetricMetadata_Field) Reset

func (x *MetricMetadata_Field) Reset()

func (*MetricMetadata_Field) String

func (x *MetricMetadata_Field) String() string

type MetricMetadata_Type

type MetricMetadata_Type int32
const (
	MetricMetadata_TYPE_UINT64       MetricMetadata_Type = 0
	MetricMetadata_TYPE_DISTRIBUTION MetricMetadata_Type = 1
)

func (MetricMetadata_Type) Descriptor

func (MetricMetadata_Type) Enum

func (MetricMetadata_Type) EnumDescriptor deprecated

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

Deprecated: Use MetricMetadata_Type.Descriptor instead.

func (MetricMetadata_Type) Number

func (MetricMetadata_Type) String

func (x MetricMetadata_Type) String() string

func (MetricMetadata_Type) Type

type MetricMetadata_Units

type MetricMetadata_Units int32
const (
	MetricMetadata_UNITS_NONE        MetricMetadata_Units = 0
	MetricMetadata_UNITS_NANOSECONDS MetricMetadata_Units = 1
)

func (MetricMetadata_Units) Descriptor

func (MetricMetadata_Units) Enum

func (MetricMetadata_Units) EnumDescriptor deprecated

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

Deprecated: Use MetricMetadata_Units.Descriptor instead.

func (MetricMetadata_Units) Number

func (MetricMetadata_Units) String

func (x MetricMetadata_Units) String() string

func (MetricMetadata_Units) Type

type MetricRegistration

type MetricRegistration struct {
	Metrics []*MetricMetadata `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	Stages  []string          `protobuf:"bytes,2,rep,name=stages,proto3" json:"stages,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricRegistration) Descriptor deprecated

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

Deprecated: Use MetricRegistration.ProtoReflect.Descriptor instead.

func (*MetricRegistration) GetMetrics

func (x *MetricRegistration) GetMetrics() []*MetricMetadata

func (*MetricRegistration) GetStages

func (x *MetricRegistration) GetStages() []string

func (*MetricRegistration) ProtoMessage

func (*MetricRegistration) ProtoMessage()

func (*MetricRegistration) ProtoReflect

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

func (*MetricRegistration) Reset

func (x *MetricRegistration) Reset()

func (*MetricRegistration) String

func (x *MetricRegistration) String() string

type MetricUpdate

type MetricUpdate struct {
	Metrics     []*MetricValue `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	StageTiming []*StageTiming `protobuf:"bytes,2,rep,name=stage_timing,json=stageTiming,proto3" json:"stage_timing,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricUpdate) Descriptor deprecated

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

Deprecated: Use MetricUpdate.ProtoReflect.Descriptor instead.

func (*MetricUpdate) GetMetrics

func (x *MetricUpdate) GetMetrics() []*MetricValue

func (*MetricUpdate) GetStageTiming

func (x *MetricUpdate) GetStageTiming() []*StageTiming

func (*MetricUpdate) ProtoMessage

func (*MetricUpdate) ProtoMessage()

func (*MetricUpdate) ProtoReflect

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

func (*MetricUpdate) Reset

func (x *MetricUpdate) Reset()

func (*MetricUpdate) String

func (x *MetricUpdate) String() string

type MetricValue

type MetricValue struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Value:
	//
	//	*MetricValue_Uint64Value
	//	*MetricValue_DistributionValue
	Value       isMetricValue_Value `protobuf_oneof:"value"`
	FieldValues []string            `protobuf:"bytes,4,rep,name=field_values,json=fieldValues,proto3" json:"field_values,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricValue) Descriptor deprecated

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

Deprecated: Use MetricValue.ProtoReflect.Descriptor instead.

func (*MetricValue) GetDistributionValue

func (x *MetricValue) GetDistributionValue() *Samples

func (*MetricValue) GetFieldValues

func (x *MetricValue) GetFieldValues() []string

func (*MetricValue) GetName

func (x *MetricValue) GetName() string

func (*MetricValue) GetUint64Value

func (x *MetricValue) GetUint64Value() uint64

func (*MetricValue) GetValue

func (m *MetricValue) GetValue() isMetricValue_Value

func (*MetricValue) ProtoMessage

func (*MetricValue) ProtoMessage()

func (*MetricValue) ProtoReflect

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

func (*MetricValue) Reset

func (x *MetricValue) Reset()

func (*MetricValue) String

func (x *MetricValue) String() string

type MetricValue_DistributionValue

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

type MetricValue_Uint64Value

type MetricValue_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,2,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
}

type Samples

type Samples struct {
	NewSamples []uint64 `protobuf:"varint,1,rep,packed,name=new_samples,json=newSamples,proto3" json:"new_samples,omitempty"`
	// contains filtered or unexported fields
}

func (*Samples) Descriptor deprecated

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

Deprecated: Use Samples.ProtoReflect.Descriptor instead.

func (*Samples) GetNewSamples

func (x *Samples) GetNewSamples() []uint64

func (*Samples) ProtoMessage

func (*Samples) ProtoMessage()

func (*Samples) ProtoReflect

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

func (*Samples) Reset

func (x *Samples) Reset()

func (*Samples) String

func (x *Samples) String() string

type StageTiming

type StageTiming struct {
	Stage   string                 `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
	Started *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started,proto3" json:"started,omitempty"`
	Ended   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended,proto3" json:"ended,omitempty"`
	// contains filtered or unexported fields
}

func (*StageTiming) Descriptor deprecated

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

Deprecated: Use StageTiming.ProtoReflect.Descriptor instead.

func (*StageTiming) GetEnded

func (x *StageTiming) GetEnded() *timestamppb.Timestamp

func (*StageTiming) GetStage

func (x *StageTiming) GetStage() string

func (*StageTiming) GetStarted

func (x *StageTiming) GetStarted() *timestamppb.Timestamp

func (*StageTiming) ProtoMessage

func (*StageTiming) ProtoMessage()

func (*StageTiming) ProtoReflect

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

func (*StageTiming) Reset

func (x *StageTiming) Reset()

func (*StageTiming) String

func (x *StageTiming) String() string

Jump to

Keyboard shortcuts

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