aggregation

package
v1.0.0-aggregation Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 AggregateBodyBuilder

type AggregateBodyBuilder interface {
	ToAggregateBody() (map[string]interface{}, error)
}

type AggregateBodyOpts

type AggregateBodyOpts struct {
	Operation    string `json:"operations"`
	Search       string `json:"search"`
	ResourceType string `json:"resource_type"`
}

func (AggregateBodyOpts) ToAggregateBody

func (opts AggregateBodyOpts) ToAggregateBody() (map[string]interface{}, error)

type AggregateQueryBuilder

type AggregateQueryBuilder interface {
	ToAggregateQuery() (string, error)
}

type AggregateQueryOpts

type AggregateQueryOpts struct {
	Granularity string `q:"granularity"`
	Start       *time.Time
	Stop        *time.Time
}

func (AggregateQueryOpts) ToAggregateQuery

func (opts AggregateQueryOpts) ToAggregateQuery() (string, error)

type AggregatedResult

type AggregatedResult struct {
	Measures struct {
		Aggregated [][]interface{} `json:"aggregated"`
	} `json:"measures"`
}

type GetResult

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

func Aggregate

func Aggregate(c *gophercloud.ServiceClient, bodyOpts AggregateBodyBuilder, queryOpts AggregateQueryBuilder) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*measures.Measure, error)

Jump to

Keyboard shortcuts

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