query

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

func RetrievePodsInteractions(name string, isOrphan bool) []byte

RetrievePodsInteractions returns inbound and outbound interactions of a pod

func RetrievePodsInteractionsForAllLivePodsWithCount

func RetrievePodsInteractionsForAllLivePodsWithCount() ([]models.Pod, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL