storage

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOpts

type GetOpts struct {
	// metrics_filter
	MetricsFilter string

	// Start is a start of time time range for the measures.
	Start time.Time

	// End is a stop of time time range for the measures.
	End time.Time

	// step
	Step string
}

GetOpts allows to provide additional options to the Emla storage measures Get request.

func (GetOpts) ToStorageGetQuery

func (opts GetOpts) ToStorageGetQuery() (string, error)

ToStorageGetQuery formats a GetOpts into a query string.

type GetOptsBuilder

type GetOptsBuilder interface {
	ToStorageGetQuery() (string, error)
}

GetOptsBuilder allows extensions to add additional parameters to the Get request.

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

GetResult is the response from a Get operation. Call its Extract method to

func Get

func Get(client *gophercloud.ServiceClient, opts GetOptsBuilder) (r GetResult)

Get returns emla storage metrics data.

func (GetResult) Extract

func (r GetResult) Extract() (*Results, error)

Extract interprets any dashboardResult as a storage metrics.

type Result

type Result struct {
	Data       map[string]interface{} `json:"data"`
	MetricName string                 `json:"metric_name"`
}

Result represents a storage metrics

type Results

type Results struct {
	Results []Result `json:"results"`
}

Results represents a storage metrics.

Jump to

Keyboard shortcuts

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