prometheus

package
v1.0.259 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrometheusURL string

Functions

This section is empty.

Types

type PrometheusClient

type PrometheusClient struct {
	v1.API
}

func NewPrometheusAPI

func NewPrometheusAPI(url string) (*PrometheusClient, error)

func (PrometheusClient) GetHistogramQuantileLatency

func (p PrometheusClient) GetHistogramQuantileLatency(percentile, checkKey, duration string) (latency float64, err error)

func (PrometheusClient) GetUptime

func (p PrometheusClient) GetUptime(checkKey, duration string) (float64, error)

Jump to

Keyboard shortcuts

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