metrics

package
v1.5.1 Latest Latest
Warning

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

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

Documentation

Index

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
const (
	Category_CATEGORY_UNDEFINED Category = 0
	Category_CATEGORY_CONFIG    Category = 1
	Category_CATEGORY_CPU       Category = 2
	Category_CATEGORY_MEMORY    Category = 3
	Category_CATEGORY_NETWORK   Category = 4
	Category_CATEGORY_DISK      Category = 5
)

func (Category) Descriptor

func (Category) Descriptor() protoreflect.EnumDescriptor

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor deprecated

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

Deprecated: Use Category.Descriptor instead.

func (Category) Number

func (x Category) Number() protoreflect.EnumNumber

func (Category) String

func (x Category) String() string

func (Category) Type

type Context

type Context int32
const (
	Context_CONTEXT_UNDEFINED Context = 0
	Context_CONTEXT_VM        Context = 1
	Context_CONTEXT_HOST      Context = 2
)

func (Context) Descriptor

func (Context) Descriptor() protoreflect.EnumDescriptor

func (Context) Enum

func (x Context) Enum() *Context

func (Context) EnumDescriptor deprecated

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

Deprecated: Use Context.Descriptor instead.

func (Context) Number

func (x Context) Number() protoreflect.EnumNumber

func (Context) String

func (x Context) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetCategory

func (x *Metric) GetCategory() Category

func (*Metric) GetContext

func (x *Metric) GetContext() Context

func (*Metric) GetDeviceId

func (x *Metric) GetDeviceId() string

func (*Metric) GetLastRefresh

func (x *Metric) GetLastRefresh() int64

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetRefreshInterval

func (x *Metric) GetRefreshInterval() RefreshInterval

func (*Metric) GetType

func (x *Metric) GetType() Type

func (*Metric) GetUnit

func (x *Metric) GetUnit() Unit

func (*Metric) GetValue

func (x *Metric) GetValue() string

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 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) Enum

func (x RefreshInterval) Enum() *RefreshInterval

func (RefreshInterval) EnumDescriptor deprecated

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

Deprecated: Use RefreshInterval.Descriptor instead.

func (RefreshInterval) Number

func (RefreshInterval) String

func (x RefreshInterval) String() string

func (RefreshInterval) Type

type Type

type Type int32
const (
	Type_TYPE_UNDEFINED Type = 0
	Type_TYPE_INT32     Type = 1
	Type_TYPE_INT64     Type = 2
	Type_TYPE_UINT32    Type = 3
	Type_TYPE_UINT64    Type = 4
	Type_TYPE_REAL32    Type = 5
	Type_TYPE_REAL64    Type = 6
	Type_TYPE_DOUBLE    Type = 7
	Type_TYPE_STRING    Type = 8
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

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) Enum

func (x Unit) Enum() *Unit

func (Unit) EnumDescriptor deprecated

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

Deprecated: Use Unit.Descriptor instead.

func (Unit) Number

func (x Unit) Number() protoreflect.EnumNumber

func (Unit) String

func (x Unit) String() string

func (Unit) Type

func (Unit) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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