metricsquery

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateQueryParamsAvg

func GenerateQueryParamsAvg(windowSeconds int64) *metriccache.QueryParam

func GenerateQueryParamsLast

func GenerateQueryParamsLast(windowSeconds int64) *metriccache.QueryParam

Types

type MetricsQuery

type MetricsQuery interface {
	CollectNodeAndPodMetricLast(collectResUsedIntervalSeconds int64) (
		*metriccache.NodeResourceMetric, []*metriccache.PodResourceMetric)

	CollectNodeMetricsAvg(windowSeconds int64) metriccache.NodeResourceQueryResult

	CollectNodeAndPodMetrics(queryParam *metriccache.QueryParam) (
		*metriccache.NodeResourceMetric, []*metriccache.PodResourceMetric)

	CollectContainerResMetricLast(containerID *string, collectResUsedIntervalSeconds int64) metriccache.ContainerResourceQueryResult

	CollectContainerThrottledMetricLast(containerID *string, collectResUsedIntervalSeconds int64) metriccache.ContainerThrottledQueryResult

	CollectPodMetric(podMeta *statesinformer.PodMeta, queryParam *metriccache.QueryParam) metriccache.PodResourceQueryResult
}

func NewMetricsQuery

func NewMetricsQuery(metricCache metriccache.MetricCache, statesInformer statesinformer.StatesInformer) MetricsQuery

NewMetricsQuery creates an instance which implements interface MetricsQuery.

Jump to

Keyboard shortcuts

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