moderato

package
v0.0.0-...-78ccd2f Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Items  []report.ModeratoItem
	Labels []string
	Total  int64
}

func GetMetrics

func GetMetrics(reader io.Reader) (*Metrics, error)

GetMetrics returns the metrics data of either inuse_space or cpu

reader contains bytes in the format of .pb or pg.gz

func GetMetricsFromData

func GetMetricsFromData(data []byte) (*Metrics, error)

GetMetricsFromData returns the metrics data of either inuse_space or cpu

reader contains bytes in the format of .pb or pg.gz

func GetMetricsFromFile

func GetMetricsFromFile(path string) (*Metrics, error)

GetMetricsFromFile returns the metrics data of either inuse_space or cpu

Jump to

Keyboard shortcuts

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