Documentation ¶
Index ¶
- Variables
- type ContainerMetric
- func (*ContainerMetric) Descriptor() ([]byte, []int)
- func (m *ContainerMetric) GetMetricData() map[int32]*MetricData
- func (m *ContainerMetric) GetName() string
- func (*ContainerMetric) ProtoMessage()
- func (m *ContainerMetric) Reset()
- func (m *ContainerMetric) String() string
- func (m *ContainerMetric) XXX_DiscardUnknown()
- func (m *ContainerMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContainerMetric) XXX_Merge(src proto.Message)
- func (m *ContainerMetric) XXX_Size() int
- func (m *ContainerMetric) XXX_Unmarshal(b []byte) error
- type MetricData
- func (*MetricData) Descriptor() ([]byte, []int)
- func (m *MetricData) GetData() []*Sample
- func (*MetricData) ProtoMessage()
- func (m *MetricData) Reset()
- func (m *MetricData) String() string
- func (m *MetricData) XXX_DiscardUnknown()
- func (m *MetricData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetricData) XXX_Merge(src proto.Message)
- func (m *MetricData) XXX_Size() int
- func (m *MetricData) XXX_Unmarshal(b []byte) error
- type MetricType
- type NodeMetric
- func (*NodeMetric) Descriptor() ([]byte, []int)
- func (m *NodeMetric) GetMetricData() map[int32]*MetricData
- func (m *NodeMetric) GetName() string
- func (*NodeMetric) ProtoMessage()
- func (m *NodeMetric) Reset()
- func (m *NodeMetric) String() string
- func (m *NodeMetric) XXX_DiscardUnknown()
- func (m *NodeMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeMetric) XXX_Merge(src proto.Message)
- func (m *NodeMetric) XXX_Size() int
- func (m *NodeMetric) XXX_Unmarshal(b []byte) error
- type PodMetric
- func (*PodMetric) Descriptor() ([]byte, []int)
- func (m *PodMetric) GetContainerMetrics() []*ContainerMetric
- func (m *PodMetric) GetNamespacedName() *v1alpha2.NamespacedName
- func (*PodMetric) ProtoMessage()
- func (m *PodMetric) Reset()
- func (m *PodMetric) String() string
- func (m *PodMetric) XXX_DiscardUnknown()
- func (m *PodMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodMetric) XXX_Merge(src proto.Message)
- func (m *PodMetric) XXX_Size() int
- func (m *PodMetric) XXX_Unmarshal(b []byte) error
- type Sample
- func (*Sample) Descriptor() ([]byte, []int)
- func (m *Sample) GetNumValue() string
- func (m *Sample) GetTime() *timestamp.Timestamp
- func (*Sample) ProtoMessage()
- func (m *Sample) Reset()
- func (m *Sample) String() string
- func (m *Sample) XXX_DiscardUnknown()
- func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sample) XXX_Merge(src proto.Message)
- func (m *Sample) XXX_Size() int
- func (m *Sample) XXX_Unmarshal(b []byte) error
- type TimeRange
- func (*TimeRange) Descriptor() ([]byte, []int)
- func (m *TimeRange) GetEndTime() *timestamp.Timestamp
- func (m *TimeRange) GetStartTime() *timestamp.Timestamp
- func (m *TimeRange) GetStep() *duration.Duration
- func (*TimeRange) ProtoMessage()
- func (m *TimeRange) Reset()
- func (m *TimeRange) String() string
- func (m *TimeRange) XXX_DiscardUnknown()
- func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeRange) XXX_Merge(src proto.Message)
- func (m *TimeRange) XXX_Size() int
- func (m *TimeRange) XXX_Unmarshal(b []byte) error
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) GetContainerMetrics ¶
func (m *PodMetric) GetContainerMetrics() []*ContainerMetric
func (*PodMetric) GetNamespacedName ¶
func (m *PodMetric) GetNamespacedName() *v1alpha2.NamespacedName
func (*PodMetric) ProtoMessage ¶
func (*PodMetric) ProtoMessage()
func (*PodMetric) XXX_DiscardUnknown ¶
func (m *PodMetric) XXX_DiscardUnknown()
func (*PodMetric) XXX_Marshal ¶
func (*PodMetric) XXX_Unmarshal ¶
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) GetNumValue ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) XXX_DiscardUnknown ¶
func (m *Sample) XXX_DiscardUnknown()
func (*Sample) XXX_Marshal ¶
func (*Sample) XXX_Unmarshal ¶
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) GetEndTime ¶
func (*TimeRange) GetStartTime ¶
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) XXX_DiscardUnknown ¶
func (m *TimeRange) XXX_DiscardUnknown()
func (*TimeRange) XXX_Marshal ¶
func (*TimeRange) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.