Documentation ¶
Index ¶
- type BatchPodRequest
- type ClusterInfo
- type ClusterMetricRequest
- type ContainerInfo
- type EntityListEntry
- type FreeContainerMetricRequest
- type FreeContainerRequest
- type InfoType
- type MetricRequest
- type Model
- type NamespaceInfo
- type NamespaceMetricRequest
- type NamespaceRequest
- type NodeInfo
- type NodeMetricRequest
- type NodeRequest
- type PodContainerMetricRequest
- type PodContainerRequest
- type PodInfo
- type PodMetricRequest
- type PodRequest
- type StatBundle
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchPodRequest ¶ added in v0.18.0
type ClusterInfo ¶
type ClusterInfo struct { InfoType Namespaces map[string]*NamespaceInfo // key: Namespace Name Nodes map[string]*NodeInfo // key: Hostname }
type ClusterMetricRequest ¶ added in v0.18.0
type ClusterMetricRequest struct {
MetricRequest
}
Metric Request Types
type ContainerInfo ¶
type ContainerInfo struct {
InfoType
}
type EntityListEntry ¶ added in v0.18.0
Listing Types
type FreeContainerMetricRequest ¶ added in v0.18.0
type FreeContainerMetricRequest struct { NodeName string ContainerName string MetricRequest }
type FreeContainerRequest ¶
type InfoType ¶
type InfoType struct { Creation time.Time Metrics map[string]*daystore.DayStore // key: Metric Name Labels map[string]string // key: Label // Context retains instantaneous state for a specific InfoType. // Currently used for calculating instantaneous metrics from cumulative counterparts. Context map[string]*statstore.TimePoint // key: metric name }
Internal Types
type MetricRequest ¶ added in v0.18.0
Simple Request Types.
type Model ¶ added in v0.18.0
type Model interface { // The Update operation populates the Model from a cache. Update(cache.Cache) error GetCacheListener() cache.CacheListener // The simple Get operations extract structural information from the Model. GetAvailableMetrics() []string GetNodes() []EntityListEntry GetNamespaces() []EntityListEntry GetPods(string) []EntityListEntry GetPodContainers(string, string) []EntityListEntry GetNodePods(string) []EntityListEntry GetFreeContainers(string) []EntityListEntry // The GetXMetric operations extract timeseries from the Model. // The returned time.Time values signify the latest metric timestamp in the cluster. GetClusterMetric(ClusterMetricRequest) ([]statstore.TimePoint, time.Time, error) GetNodeMetric(NodeMetricRequest) ([]statstore.TimePoint, time.Time, error) GetNamespaceMetric(NamespaceMetricRequest) ([]statstore.TimePoint, time.Time, error) GetPodMetric(PodMetricRequest) ([]statstore.TimePoint, time.Time, error) GetBatchPodMetric(req BatchPodRequest) ([][]statstore.TimePoint, time.Time, error) GetPodContainerMetric(PodContainerMetricRequest) ([]statstore.TimePoint, time.Time, error) GetFreeContainerMetric(FreeContainerMetricRequest) ([]statstore.TimePoint, time.Time, error) // The GetXStats operations extract all derived stats for a single entity of the cluster. GetClusterStats() (map[string]StatBundle, time.Duration, error) GetNodeStats(NodeRequest) (map[string]StatBundle, time.Duration, error) GetNamespaceStats(NamespaceRequest) (map[string]StatBundle, time.Duration, error) GetPodStats(PodRequest) (map[string]StatBundle, time.Duration, error) GetPodContainerStats(PodContainerRequest) (map[string]StatBundle, time.Duration, error) GetFreeContainerStats(FreeContainerRequest) (map[string]StatBundle, time.Duration, error) }
type NamespaceInfo ¶
type NamespaceMetricRequest ¶ added in v0.18.0
type NamespaceMetricRequest struct { NamespaceName string MetricRequest }
type NamespaceRequest ¶
type NamespaceRequest struct {
NamespaceName string
}
type NodeMetricRequest ¶ added in v0.18.0
type NodeMetricRequest struct { NodeName string MetricRequest }
type NodeRequest ¶
type NodeRequest struct {
NodeName string
}
type PodContainerMetricRequest ¶ added in v0.18.0
type PodContainerMetricRequest struct { NamespaceName string PodName string ContainerName string MetricRequest }
type PodContainerRequest ¶
type PodMetricRequest ¶ added in v0.18.0
type PodMetricRequest struct { NamespaceName string PodName string MetricRequest }
type PodRequest ¶
type StatBundle ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.