Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { Resource metav1.Object `json:"resource"` Metrics []*ResourceMetric `json:"metrics,omitempty"` RunType string `json:"runType"` KubernetesMetrics []*k8smetric.Metric `json:"kubernetesMetrics,omitempty"` }
Info defines information fed into a gatherer to retrieve metrics, contains an optional field 'Metrics' for storing the result
type ResourceMetric ¶
type ResourceMetric struct { Resource string `json:"resource,omitempty"` Value string `json:"value,omitempty"` }
ResourceMetric is the result of the custom metric calculation, containing information on the relevant resource and the metric value
Click to show internal directories.
Click to hide internal directories.