metric

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

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

Jump to

Keyboard shortcuts

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