types

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTopicTSDBSet         = "roles.tsdb.set"
	EventTopicTSDBInc         = "roles.tsdb.inc"
	EventTopicTSDBWrite       = "roles.tsdb.write"
	EventTopicTSDBBeforeWrite = "roles.tsdb.before_write"
)
View Source
const (
	KeyRole   = "tsdb"
	KeySystem = "system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIMetricsGetInput added in v0.9.3

type APIMetricsGetInput struct {
	Role     APIMetricsRole `query:"role" required:"true"`
	Category string         `query:"category"`
	Node     string         `query:"node"`
	Since    *time.Time     `query:"since" description:"Optionally set a start time for which to return datapoints after"`
}

type APIMetricsGetOutput

type APIMetricsGetOutput struct {
	Records []APIMetricsRecord `json:"records" required:"true"`
}

type APIMetricsRecord

type APIMetricsRecord struct {
	Time  time.Time `json:"time" required:"true"`
	Keys  []string  `json:"keys" required:"true"`
	Node  string    `json:"node" required:"true"`
	Value int64     `json:"value" required:"true"`
}

type APIMetricsRole added in v0.9.3

type APIMetricsRole string

func (APIMetricsRole) Enum added in v0.9.3

func (APIMetricsRole) Enum() []interface{}

type Metric

type Metric struct {
	Value        int  `json:"value"`
	ResetOnWrite bool `json:"resetOnWrite"`
}

Jump to

Keyboard shortcuts

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