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
- type StatsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchPodRequest ¶
type ClusterInfo ¶
type ClusterInfo struct { InfoType Namespaces map[string]*NamespaceInfo // key: Namespace Name Nodes map[string]*NodeInfo // key: Hostname }
type ContainerInfo ¶
type ContainerInfo struct {
InfoType
}
type EntityListEntry ¶
Listing Types
type FreeContainerMetricRequest ¶
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 ¶
Simple Request Types.
type Model ¶
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() (*StatsResult, error) GetNodeStats(NodeRequest) (*StatsResult, error) GetNamespaceStats(NamespaceRequest) (*StatsResult, error) GetPodStats(PodRequest) (*StatsResult, error) GetPodContainerStats(PodContainerRequest) (*StatsResult, error) GetFreeContainerStats(FreeContainerRequest) (*StatsResult, error) }
type NamespaceInfo ¶
type NamespaceMetricRequest ¶
type NamespaceMetricRequest struct { NamespaceName string MetricRequest }
type NamespaceRequest ¶
type NamespaceRequest struct {
NamespaceName string
}
type NodeMetricRequest ¶
type NodeMetricRequest struct { NodeName string MetricRequest }
type NodeRequest ¶
type NodeRequest struct {
NodeName string
}
type PodContainerMetricRequest ¶
type PodContainerMetricRequest struct { NamespaceName string PodName string ContainerName string MetricRequest }
type PodContainerRequest ¶
type PodMetricRequest ¶
type PodMetricRequest struct { NamespaceName string PodName string MetricRequest }
type PodRequest ¶
type StatBundle ¶
type StatsResult ¶
Click to show internal directories.
Click to hide internal directories.