Documentation ¶
Index ¶
- Constants
- func RetrievePodsInteractions(name string, isOrphan bool) []byte
- func RetrievePodsInteractionsForAllLivePodsWithCount() ([]models.Pod, error)
- type Children
- type JSONDataWrapper
- func RetrieveClusterHierarchy(view string) JSONDataWrapper
- func RetrieveClusterMetrics(view string) JSONDataWrapper
- func RetrieveContainerHierarchy(name string) JSONDataWrapper
- func RetrieveContainerMetrics(name string) JSONDataWrapper
- func RetrieveDaemonsetHierarchy(name string) JSONDataWrapper
- func RetrieveDaemonsetMetrics(name string) JSONDataWrapper
- func RetrieveDeploymentHierarchy(name string) JSONDataWrapper
- func RetrieveDeploymentMetrics(name string) JSONDataWrapper
- func RetrieveJobHierarchy(name string) JSONDataWrapper
- func RetrieveJobMetrics(name string) JSONDataWrapper
- func RetrieveNamespaceHierarchy(name string) JSONDataWrapper
- func RetrieveNamespaceMetrics(name string) JSONDataWrapper
- func RetrieveNodeHierarchy(name string) JSONDataWrapper
- func RetrieveNodeMetrics(name string) JSONDataWrapper
- func RetrievePVCMetrics(name string) JSONDataWrapper
- func RetrievePVHierarchy(name string) JSONDataWrapper
- func RetrievePVMetrics(name string) JSONDataWrapper
- func RetrievePodHierarchy(name string) JSONDataWrapper
- func RetrievePodMetrics(name string) JSONDataWrapper
- func RetrieveReplicasetHierarchy(name string) JSONDataWrapper
- func RetrieveReplicasetMetrics(name string) JSONDataWrapper
- func RetrieveStatefulsetHierarchy(name string) JSONDataWrapper
- func RetrieveStatefulsetMetrics(name string) JSONDataWrapper
- type Parent
- type ParentWrapper
Constants ¶
const ( All = "" Name = "name" Orphan = "orphan" View = "view" Physical = "physical" Logical = "logical" False = "false" )
Constants used in query parameters
Variables ¶
This section is empty.
Functions ¶
func RetrievePodsInteractions ¶
RetrievePodsInteractions returns inbound and outbound interactions of a pod
func RetrievePodsInteractionsForAllLivePodsWithCount ¶
RetrievePodsInteractionsForAllLivePodsWithCount returns all pods in the dgraph
Types ¶
type Children ¶
type Children struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` CPU float64 `json:"cpu,omitempty"` Memory float64 `json:"memory,omitempty"` Storage float64 `json:"storage,omitempty"` CPUCost float64 `json:"cpuCost,omitempty"` MemoryCost float64 `json:"memoryCost,omitempty"` StorageCost float64 `json:"storageCost,omitempty"` }
Children structure
type JSONDataWrapper ¶
type JSONDataWrapper struct {
Data ParentWrapper `json:"data,omitempty"`
}
JSONDataWrapper structure
func RetrieveClusterHierarchy ¶
func RetrieveClusterHierarchy(view string) JSONDataWrapper
RetrieveClusterHierarchy returns all namespaces if view is logical and returns all nodes with disks if view is physical
func RetrieveClusterMetrics ¶
func RetrieveClusterMetrics(view string) JSONDataWrapper
RetrieveClusterMetrics returns all namespaces with metrics if view is logical and returns all nodes and disks with metrics if view is physical
func RetrieveContainerHierarchy ¶
func RetrieveContainerHierarchy(name string) JSONDataWrapper
RetrieveContainerHierarchy returns hierarchy for a given pod
func RetrieveContainerMetrics ¶
func RetrieveContainerMetrics(name string) JSONDataWrapper
RetrieveContainerMetrics returns hierarchy for a given pod
func RetrieveDaemonsetHierarchy ¶
func RetrieveDaemonsetHierarchy(name string) JSONDataWrapper
RetrieveDaemonsetHierarchy returns hierarchy for a given daemonset
func RetrieveDaemonsetMetrics ¶
func RetrieveDaemonsetMetrics(name string) JSONDataWrapper
RetrieveDaemonsetMetrics returns metrics for a given daemonset
func RetrieveDeploymentHierarchy ¶
func RetrieveDeploymentHierarchy(name string) JSONDataWrapper
RetrieveDeploymentHierarchy returns hierarchy for a given deployment
func RetrieveDeploymentMetrics ¶
func RetrieveDeploymentMetrics(name string) JSONDataWrapper
RetrieveDeploymentMetrics returns metrics for a given deployment
func RetrieveJobHierarchy ¶
func RetrieveJobHierarchy(name string) JSONDataWrapper
RetrieveJobHierarchy returns hierarchy for a given daemonset
func RetrieveJobMetrics ¶
func RetrieveJobMetrics(name string) JSONDataWrapper
RetrieveJobMetrics returns metrics for a given daemonset
func RetrieveNamespaceHierarchy ¶
func RetrieveNamespaceHierarchy(name string) JSONDataWrapper
RetrieveNamespaceHierarchy returns hierarchy for a given namespace
func RetrieveNamespaceMetrics ¶
func RetrieveNamespaceMetrics(name string) JSONDataWrapper
RetrieveNamespaceMetrics returns metrics for a given namespace
func RetrieveNodeHierarchy ¶
func RetrieveNodeHierarchy(name string) JSONDataWrapper
RetrieveNodeHierarchy returns hierarchy for a given node
func RetrieveNodeMetrics ¶
func RetrieveNodeMetrics(name string) JSONDataWrapper
RetrieveNodeMetrics returns metrics for a given node
func RetrievePVCMetrics ¶
func RetrievePVCMetrics(name string) JSONDataWrapper
RetrievePVCMetrics returns metrics for a given pvc
func RetrievePVHierarchy ¶
func RetrievePVHierarchy(name string) JSONDataWrapper
RetrievePVHierarchy returns hierarchy for a given pv
func RetrievePVMetrics ¶
func RetrievePVMetrics(name string) JSONDataWrapper
RetrievePVMetrics returns metrics for a given pv
func RetrievePodHierarchy ¶
func RetrievePodHierarchy(name string) JSONDataWrapper
RetrievePodHierarchy returns hierarchy for a given pod
func RetrievePodMetrics ¶
func RetrievePodMetrics(name string) JSONDataWrapper
RetrievePodMetrics returns metrics for a given pod
func RetrieveReplicasetHierarchy ¶
func RetrieveReplicasetHierarchy(name string) JSONDataWrapper
RetrieveReplicasetHierarchy returns hierarchy for a given replicaset
func RetrieveReplicasetMetrics ¶
func RetrieveReplicasetMetrics(name string) JSONDataWrapper
RetrieveReplicasetMetrics returns replicaset for a given replicaset
func RetrieveStatefulsetHierarchy ¶
func RetrieveStatefulsetHierarchy(name string) JSONDataWrapper
RetrieveStatefulsetHierarchy returns hierarchy for a given statefulset
func RetrieveStatefulsetMetrics ¶
func RetrieveStatefulsetMetrics(name string) JSONDataWrapper
RetrieveStatefulsetMetrics returns metrics for a given statefulset
type Parent ¶
type Parent struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Children []Children `json:"children,omitempty"` CPU float64 `json:"cpu,omitempty"` Memory float64 `json:"memory,omitempty"` Storage float64 `json:"storage,omitempty"` CPUCost float64 `json:"cpuCost,omitempty"` MemoryCost float64 `json:"memoryCost,omitempty"` StorageCost float64 `json:"storageCost,omitempty"` }
Parent structure
type ParentWrapper ¶
type ParentWrapper struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Children []Children `json:"children,omitempty"` Parent []Parent `json:"parent,omitempty"` CPU float64 `json:"cpu,omitempty"` Memory float64 `json:"memory,omitempty"` Storage float64 `json:"storage,omitempty"` CPUCost float64 `json:"cpuCost,omitempty"` MemoryCost float64 `json:"memoryCost,omitempty"` StorageCost float64 `json:"storageCost,omitempty"` }
ParentWrapper structure