prometheus

package
v1.0.260-beta.84 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 11 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 {
	promV1.API
}

func NewPrometheusAPI

func NewPrometheusAPI(ctx dutyContext.Context, url string, auth types.Authentication) (*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