common

package
v2.732.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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"`
	// Search for a user name or email. The search results include active users for the first 1000 matches.
	Q string `json:"q,omitempty" url:"q,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