podmetrics

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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     `json:"timestamp"`
	Window    time.Duration `json:"window"`
	Value     int64         `json:"value"`
}

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