Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { // The Update operation populates the Cluster from a cache. Update(cache.Cache) error // The GetXMetric operations extract timeseries from the Cluster. // The returned time.Time values signify the latest metric timestamp in the cluster. GetClusterMetric(ClusterRequest) ([]store.TimePoint, time.Time, error) GetNodeMetric(NodeRequest) ([]store.TimePoint, time.Time, error) GetNamespaceMetric(NamespaceRequest) ([]store.TimePoint, time.Time, error) GetPodMetric(PodRequest) ([]store.TimePoint, time.Time, error) GetPodContainerMetric(PodContainerRequest) ([]store.TimePoint, time.Time, error) GetFreeContainerMetric(FreeContainerRequest) ([]store.TimePoint, time.Time, error) // The normal Get operations extract information from the Cluster structure. GetAvailableMetrics() []string GetNodes() []string GetNamespaces() []string GetPods(string) []string GetPodContainers(string, string) []string GetFreeContainers(string) []string }
type ClusterInfo ¶
type ClusterInfo struct { InfoType Namespaces map[string]*NamespaceInfo // key: Namespace Name Nodes map[string]*NodeInfo // key: Hostname }
type ClusterRequest ¶
Request Types. Used as parameters to all the Get methods of the model.
type ContainerInfo ¶
type ContainerInfo struct {
InfoType
}
type FreeContainerRequest ¶
type InfoType ¶
type InfoType struct { Metrics map[string]*store.TimeStore // 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]*store.TimePoint // key: metric name }
Internal Types
type NamespaceInfo ¶
type NamespaceRequest ¶
type NodeInfo ¶
type NodeInfo struct { InfoType Pods map[string]*PodInfo // key: Pod Name FreeContainers map[string]*ContainerInfo // key: Container Name }
type NodeRequest ¶
type PodContainerRequest ¶
Click to show internal directories.
Click to hide internal directories.