v1alpha2

package
v4.2.789+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricType_name = map[int32]string{
	0: "UNDEFINED",
	1: "CPU_USAGE_SECONDS_PERCENTAGE",
	2: "MEMORY_USAGE_BYTES",
}
View Source
var MetricType_value = map[string]int32{
	"UNDEFINED":                    0,
	"CPU_USAGE_SECONDS_PERCENTAGE": 1,
	"MEMORY_USAGE_BYTES":           2,
}

Functions

This section is empty.

Types

type ContainerMetric

type ContainerMetric struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// use MetricType as key
	MetricData           map[int32]*MetricData `` /* 180-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

* Represents metric data of a container

func (*ContainerMetric) Descriptor

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

func (*ContainerMetric) GetMetricData

func (m *ContainerMetric) GetMetricData() map[int32]*MetricData

func (*ContainerMetric) GetName

func (m *ContainerMetric) GetName() string

func (*ContainerMetric) ProtoMessage

func (*ContainerMetric) ProtoMessage()

func (*ContainerMetric) Reset

func (m *ContainerMetric) Reset()

func (*ContainerMetric) String

func (m *ContainerMetric) String() string

func (*ContainerMetric) XXX_DiscardUnknown

func (m *ContainerMetric) XXX_DiscardUnknown()

func (*ContainerMetric) XXX_Marshal

func (m *ContainerMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContainerMetric) XXX_Merge

func (m *ContainerMetric) XXX_Merge(src proto.Message)

func (*ContainerMetric) XXX_Size

func (m *ContainerMetric) XXX_Size() int

func (*ContainerMetric) XXX_Unmarshal

func (m *ContainerMetric) XXX_Unmarshal(b []byte) error

type MetricData

type MetricData struct {
	// data can be time series or non-time series
	Data                 []*Sample `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

* Represents a piece of metreic data

func (*MetricData) Descriptor

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

func (*MetricData) GetData

func (m *MetricData) GetData() []*Sample

func (*MetricData) ProtoMessage

func (*MetricData) ProtoMessage()

func (*MetricData) Reset

func (m *MetricData) Reset()

func (*MetricData) String

func (m *MetricData) String() string

func (*MetricData) XXX_DiscardUnknown

func (m *MetricData) XXX_DiscardUnknown()

func (*MetricData) XXX_Marshal

func (m *MetricData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetricData) XXX_Merge

func (m *MetricData) XXX_Merge(src proto.Message)

func (*MetricData) XXX_Size

func (m *MetricData) XXX_Size() int

func (*MetricData) XXX_Unmarshal

func (m *MetricData) XXX_Unmarshal(b []byte) error

type MetricType

type MetricType int32

* Metric type. A metric may be either CPU or memory.

const (
	MetricType_UNDEFINED                    MetricType = 0
	MetricType_CPU_USAGE_SECONDS_PERCENTAGE MetricType = 1
	MetricType_MEMORY_USAGE_BYTES           MetricType = 2
)

func (MetricType) EnumDescriptor

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

func (MetricType) String

func (x MetricType) String() string

type NodeMetric

type NodeMetric struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// use MetricType as key
	MetricData           map[int32]*MetricData `` /* 180-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

* Represents metric data of a node

func (*NodeMetric) Descriptor

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

func (*NodeMetric) GetMetricData

func (m *NodeMetric) GetMetricData() map[int32]*MetricData

func (*NodeMetric) GetName

func (m *NodeMetric) GetName() string

func (*NodeMetric) ProtoMessage

func (*NodeMetric) ProtoMessage()

func (*NodeMetric) Reset

func (m *NodeMetric) Reset()

func (*NodeMetric) String

func (m *NodeMetric) String() string

func (*NodeMetric) XXX_DiscardUnknown

func (m *NodeMetric) XXX_DiscardUnknown()

func (*NodeMetric) XXX_Marshal

func (m *NodeMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeMetric) XXX_Merge

func (m *NodeMetric) XXX_Merge(src proto.Message)

func (*NodeMetric) XXX_Size

func (m *NodeMetric) XXX_Size() int

func (*NodeMetric) XXX_Unmarshal

func (m *NodeMetric) XXX_Unmarshal(b []byte) error

type PodMetric

type PodMetric struct {
	NamespacedName       *v1alpha2.NamespacedName `protobuf:"bytes,1,opt,name=namespaced_name,json=namespacedName,proto3" json:"namespaced_name,omitempty"`
	ContainerMetrics     []*ContainerMetric       `protobuf:"bytes,2,rep,name=container_metrics,json=containerMetrics,proto3" json:"container_metrics,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

* Represents metric data of a pod

func (*PodMetric) Descriptor

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

func (*PodMetric) GetContainerMetrics

func (m *PodMetric) GetContainerMetrics() []*ContainerMetric

func (*PodMetric) GetNamespacedName

func (m *PodMetric) GetNamespacedName() *v1alpha2.NamespacedName

func (*PodMetric) ProtoMessage

func (*PodMetric) ProtoMessage()

func (*PodMetric) Reset

func (m *PodMetric) Reset()

func (*PodMetric) String

func (m *PodMetric) String() string

func (*PodMetric) XXX_DiscardUnknown

func (m *PodMetric) XXX_DiscardUnknown()

func (*PodMetric) XXX_Marshal

func (m *PodMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodMetric) XXX_Merge

func (m *PodMetric) XXX_Merge(src proto.Message)

func (*PodMetric) XXX_Size

func (m *PodMetric) XXX_Size() int

func (*PodMetric) XXX_Unmarshal

func (m *PodMetric) XXX_Unmarshal(b []byte) error

type Sample

type Sample struct {
	Time                 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	NumValue             string               `protobuf:"bytes,2,opt,name=num_value,json=numValue,proto3" json:"num_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* Represents a data point of time-series metric data

func (*Sample) Descriptor

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

func (*Sample) GetNumValue

func (m *Sample) GetNumValue() string

func (*Sample) GetTime

func (m *Sample) GetTime() *timestamp.Timestamp

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) Reset

func (m *Sample) Reset()

func (*Sample) String

func (m *Sample) String() string

func (*Sample) XXX_DiscardUnknown

func (m *Sample) XXX_DiscardUnknown()

func (*Sample) XXX_Marshal

func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sample) XXX_Merge

func (m *Sample) XXX_Merge(src proto.Message)

func (*Sample) XXX_Size

func (m *Sample) XXX_Size() int

func (*Sample) XXX_Unmarshal

func (m *Sample) XXX_Unmarshal(b []byte) error

type TimeRange

type TimeRange struct {
	StartTime            *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime              *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Step                 *duration.Duration   `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* Represents a time range definition

func (*TimeRange) Descriptor

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

func (*TimeRange) GetEndTime

func (m *TimeRange) GetEndTime() *timestamp.Timestamp

func (*TimeRange) GetStartTime

func (m *TimeRange) GetStartTime() *timestamp.Timestamp

func (*TimeRange) GetStep

func (m *TimeRange) GetStep() *duration.Duration

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) Reset

func (m *TimeRange) Reset()

func (*TimeRange) String

func (m *TimeRange) String() string

func (*TimeRange) XXX_DiscardUnknown

func (m *TimeRange) XXX_DiscardUnknown()

func (*TimeRange) XXX_Marshal

func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeRange) XXX_Merge

func (m *TimeRange) XXX_Merge(src proto.Message)

func (*TimeRange) XXX_Size

func (m *TimeRange) XXX_Size() int

func (*TimeRange) XXX_Unmarshal

func (m *TimeRange) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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