victoriametrics

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID = "victoriametrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ResultType string   `json:"resultType"`
	Result     []Result `json:"result"`
}

type Metric

type Metric struct {
	Instance string `json:"instance"`
}

type MetricsResponse

type MetricsResponse struct {
	Status string `json:"status"`
	Data   Data   `json:"data"`
	Stats  Stats  `json:"stats"`
}

type Result

type Result struct {
	Metric Metric        `json:"metric"`
	Value  []interface{} `json:"value"`
}

type Stats

type Stats struct {
	SeriesFetched     string `json:"seriesFetched"`
	ExecutionTimeMsec int    `json:"executionTimeMsec"`
}

type VictoriaMetrics

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

func NewVictoriaMetrics

func NewVictoriaMetrics() *VictoriaMetrics

func (*VictoriaMetrics) Query

func (i *VictoriaMetrics) Query(expression string) (*MetricsResponse, error)

Jump to

Keyboard shortcuts

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