package
0.0.0-20220812090954-57dc9257a988
Repository: https://github.com/elchead/k8s-cluster-simulator.git
Documentation: pkg.go.dev

# Functions

BuildMetrics builds a Metrics at the given clock.
NewFileWriter creates a new FileWriter with an output device or file at the given path, and the formatter that formats metrics to a string If /dev/stdout or stdout is given, the standard out is set.

# Constants

ClockKey is the key associated to a clock.Clock.
NodesMetricsKey is the key associated to a map of node.Metrics.
PodsMetricsKey is the key associated to a map of pod.Metrics.
QueueMetricsKey is the key associated to a queue.Metrics.

# Structs

FileWriter is a Writer that writes metrics to a file.
HumanReadableFormatter is a Foramtter that formats metrics in a human-readable style.
JSONFormatter is a Formatter that formats metrics to a JSON string.
TableFormatter is a Formatter that formats metrics in a table.

# Interfaces

Formatter defines the interface of metrics formatter.
Writer defines the interface of metrics writer.

# Type aliases

Metrics represents a metrics at one time point, in the following structure.