common

package
v2.61.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPoint

type DataPoint struct {
	TimeStamp int     `json:"timestamp,omitempty"`
	Value     float64 `json:"value,omitempty"`
}

type GetFromToFilters

type GetFromToFilters struct {
	// The start time (in seconds) for the query. The value is entered in Unix Epoch. If not entered, returns the data for the last 2 hours.
	From int `json:"from,omitempty" url:"from,omitempty"`
	// The end time (in seconds) for the query. The value is entered in Unix Epoch. If not entered, returns the data for the last 2 hours.
	To             int      `json:"to,omitempty" url:"to,omitempty"`
	Loc            []int    `json:"loc,omitempty" url:"loc,omitempty"`
	Dept           []int    `json:"dept,omitempty" url:"dept,omitempty"`
	Geo            []string `json:"geo,omitempty" url:"geo,omitempty"`
	LocationGroups []string `json:"location_groups,omitempty" url:"location_groups,omitempty"`
	MetricName     string   `json:"metric_name,omitempty" url:"metric_name,omitempty"`
	Offset         string   `json:"offset,omitempty" url:"offset,omitempty"`
	// The number of items that must be returned per request from the list.
	Limit int `json:"limit,omitempty" url:"limit,omitempty"`
}

type Metric

type Metric struct {
	Metric     string      `json:"metric,omitempty"`
	Unit       string      `json:"unit,omitempty"`
	DataPoints []DataPoint `json:"datapoints"`
}

Jump to

Keyboard shortcuts

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