top

package
v0.0.0-...-8ba9361 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List retrieves the overall top of the Gnocchi installation.

Types

type Measure

type Measure struct {
	ResourceId   string  `json:"resourceId"`
	ProjectId    string  `json:"projectId"`
	Value        float64 `json:"value"`
	ResourceName string  `json:"resourceName"`
}

Measure represents a Gnocchi top of measurements processing.

func ExtractTop

func ExtractTop(r pagination.Page) ([]Measure, error)

ExtractTop interprets the results of a single page from a Top() call, producing a slice of Top entities.

type TopPage

type TopPage struct {
	pagination.SinglePageBase
}

Jump to

Keyboard shortcuts

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