podmetrics

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package podmetrics contains models for an individual pod's metrics as returned by the K8s metrics APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Timestamp time.Time
	Window    time.Duration
	Value     int64
}

Metric contains pod metric value (the metric values are expected to be the metric as a milli-value)

type MetricsInfo

type MetricsInfo map[string]Metric

MetricsInfo contains pod metrics as a map from pod names to MetricsInfo

Jump to

Keyboard shortcuts

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