Documentation ¶
Index ¶
- Variables
- type Category
- type Context
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetCategory() Category
- func (x *Metric) GetContext() Context
- func (x *Metric) GetDeviceId() string
- func (x *Metric) GetLastRefresh() int64
- func (x *Metric) GetName() string
- func (x *Metric) GetRefreshInterval() RefreshInterval
- func (x *Metric) GetType() Type
- func (x *Metric) GetUnit() Unit
- func (x *Metric) GetValue() string
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- type MetricsCollection
- func (*MetricsCollection) Descriptor() ([]byte, []int)deprecated
- func (x *MetricsCollection) GetMetrics() []*Metric
- func (*MetricsCollection) ProtoMessage()
- func (x *MetricsCollection) ProtoReflect() protoreflect.Message
- func (x *MetricsCollection) Reset()
- func (x *MetricsCollection) String() string
- type RefreshInterval
- func (RefreshInterval) Descriptor() protoreflect.EnumDescriptor
- func (x RefreshInterval) Enum() *RefreshInterval
- func (RefreshInterval) EnumDescriptor() ([]byte, []int)deprecated
- func (x RefreshInterval) Number() protoreflect.EnumNumber
- func (x RefreshInterval) String() string
- func (RefreshInterval) Type() protoreflect.EnumType
- type Type
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Context_name = map[int32]string{ 0: "CONTEXT_UNDEFINED", 1: "CONTEXT_VM", 2: "CONTEXT_HOST", } Context_value = map[string]int32{ "CONTEXT_UNDEFINED": 0, "CONTEXT_VM": 1, "CONTEXT_HOST": 2, } )
Enum value maps for Context.
View Source
var ( Category_name = map[int32]string{ 0: "CATEGORY_UNDEFINED", 1: "CATEGORY_CONFIG", 2: "CATEGORY_CPU", 3: "CATEGORY_MEMORY", 4: "CATEGORY_NETWORK", 5: "CATEGORY_DISK", } Category_value = map[string]int32{ "CATEGORY_UNDEFINED": 0, "CATEGORY_CONFIG": 1, "CATEGORY_CPU": 2, "CATEGORY_MEMORY": 3, "CATEGORY_NETWORK": 4, "CATEGORY_DISK": 5, } )
Enum value maps for Category.
View Source
var ( Type_name = map[int32]string{ 0: "TYPE_UNDEFINED", 1: "TYPE_INT32", 2: "TYPE_INT64", 3: "TYPE_UINT32", 4: "TYPE_UINT64", 5: "TYPE_REAL32", 6: "TYPE_REAL64", 7: "TYPE_DOUBLE", 8: "TYPE_STRING", } Type_value = map[string]int32{ "TYPE_UNDEFINED": 0, "TYPE_INT32": 1, "TYPE_INT64": 2, "TYPE_UINT32": 3, "TYPE_UINT64": 4, "TYPE_REAL32": 5, "TYPE_REAL64": 6, "TYPE_DOUBLE": 7, "TYPE_STRING": 8, } )
Enum value maps for Type.
View Source
var ( Unit_name = map[int32]string{ 0: "UNIT_UNDEFINED", 1: "UNIT_NONE", 2: "UNIT_MHZ", 3: "UNIT_CU", 4: "UNIT_PERCENT", 5: "UNIT_MB", 6: "UNIT_KBPS", 7: "UNIT_MBPS", 8: "UNIT_MSEC", 9: "UNIT_SEC", 10: "UNIT_BPS", 11: "UNIT_OPS_PER_SEC", 12: "UNIT_PACKETS_PER_SEC", } Unit_value = map[string]int32{ "UNIT_UNDEFINED": 0, "UNIT_NONE": 1, "UNIT_MHZ": 2, "UNIT_CU": 3, "UNIT_PERCENT": 4, "UNIT_MB": 5, "UNIT_KBPS": 6, "UNIT_MBPS": 7, "UNIT_MSEC": 8, "UNIT_SEC": 9, "UNIT_BPS": 10, "UNIT_OPS_PER_SEC": 11, "UNIT_PACKETS_PER_SEC": 12, } )
Enum value maps for Unit.
View Source
var ( RefreshInterval_name = map[int32]string{ 0: "REFRESHINTERVAL_UNDEFINED", 1: "REFRESHINTERVAL_RESTART", 2: "REFRESHINTERVAL_PER_MINUTE", } RefreshInterval_value = map[string]int32{ "REFRESHINTERVAL_UNDEFINED": 0, "REFRESHINTERVAL_RESTART": 1, "REFRESHINTERVAL_PER_MINUTE": 2, } )
Enum value maps for RefreshInterval.
View Source
var (
// optional string xml_name = 460533978;
E_XmlName = &file_metrics_metrics_proto_extTypes[0]
)
Extension fields to descriptor.EnumValueOptions.
View Source
var File_metrics_metrics_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category int32
func (Category) Descriptor ¶
func (Category) Descriptor() protoreflect.EnumDescriptor
func (Category) EnumDescriptor
deprecated
func (Category) Number ¶
func (x Category) Number() protoreflect.EnumNumber
func (Category) Type ¶
func (Category) Type() protoreflect.EnumType
type Context ¶
type Context int32
func (Context) Descriptor ¶
func (Context) Descriptor() protoreflect.EnumDescriptor
func (Context) EnumDescriptor
deprecated
func (Context) Number ¶
func (x Context) Number() protoreflect.EnumNumber
func (Context) Type ¶
func (Context) Type() protoreflect.EnumType
type Metric ¶
type Metric struct { Category Category `` /* 126-byte string literal not displayed */ Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=cloud.partners.sap.gcagent.protos.metrics.Type" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Unit Unit `protobuf:"varint,5,opt,name=unit,proto3,enum=cloud.partners.sap.gcagent.protos.metrics.Unit" json:"unit,omitempty"` Context Context `protobuf:"varint,6,opt,name=context,proto3,enum=cloud.partners.sap.gcagent.protos.metrics.Context" json:"context,omitempty"` LastRefresh int64 `protobuf:"varint,7,opt,name=last_refresh,json=lastRefresh,proto3" json:"last_refresh,omitempty"` RefreshInterval RefreshInterval `` /* 170-byte string literal not displayed */ DeviceId string `protobuf:"bytes,9,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*Metric) Descriptor
deprecated
func (*Metric) GetCategory ¶
func (*Metric) GetContext ¶
func (*Metric) GetDeviceId ¶
func (*Metric) GetLastRefresh ¶
func (*Metric) GetRefreshInterval ¶
func (x *Metric) GetRefreshInterval() RefreshInterval
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type MetricsCollection ¶
type MetricsCollection struct { Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
func (*MetricsCollection) Descriptor
deprecated
func (*MetricsCollection) Descriptor() ([]byte, []int)
Deprecated: Use MetricsCollection.ProtoReflect.Descriptor instead.
func (*MetricsCollection) GetMetrics ¶
func (x *MetricsCollection) GetMetrics() []*Metric
func (*MetricsCollection) ProtoMessage ¶
func (*MetricsCollection) ProtoMessage()
func (*MetricsCollection) ProtoReflect ¶
func (x *MetricsCollection) ProtoReflect() protoreflect.Message
func (*MetricsCollection) Reset ¶
func (x *MetricsCollection) Reset()
func (*MetricsCollection) String ¶
func (x *MetricsCollection) String() string
type RefreshInterval ¶
type RefreshInterval int32
const ( RefreshInterval_REFRESHINTERVAL_UNDEFINED RefreshInterval = 0 RefreshInterval_REFRESHINTERVAL_RESTART RefreshInterval = 1 RefreshInterval_REFRESHINTERVAL_PER_MINUTE RefreshInterval = 2 )
func (RefreshInterval) Descriptor ¶
func (RefreshInterval) Descriptor() protoreflect.EnumDescriptor
func (RefreshInterval) Enum ¶
func (x RefreshInterval) Enum() *RefreshInterval
func (RefreshInterval) EnumDescriptor
deprecated
func (RefreshInterval) EnumDescriptor() ([]byte, []int)
Deprecated: Use RefreshInterval.Descriptor instead.
func (RefreshInterval) Number ¶
func (x RefreshInterval) Number() protoreflect.EnumNumber
func (RefreshInterval) String ¶
func (x RefreshInterval) String() string
func (RefreshInterval) Type ¶
func (RefreshInterval) Type() protoreflect.EnumType
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type Unit ¶
type Unit int32
const ( Unit_UNIT_UNDEFINED Unit = 0 Unit_UNIT_NONE Unit = 1 Unit_UNIT_MHZ Unit = 2 Unit_UNIT_CU Unit = 3 Unit_UNIT_PERCENT Unit = 4 Unit_UNIT_MB Unit = 5 Unit_UNIT_KBPS Unit = 6 Unit_UNIT_MBPS Unit = 7 Unit_UNIT_MSEC Unit = 8 Unit_UNIT_SEC Unit = 9 Unit_UNIT_BPS Unit = 10 Unit_UNIT_OPS_PER_SEC Unit = 11 Unit_UNIT_PACKETS_PER_SEC Unit = 12 )
func (Unit) Descriptor ¶
func (Unit) Descriptor() protoreflect.EnumDescriptor
func (Unit) EnumDescriptor
deprecated
func (Unit) Number ¶
func (x Unit) Number() protoreflect.EnumNumber
func (Unit) Type ¶
func (Unit) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.