utils

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusClient added in v0.31.0

type PrometheusClient struct {
	v1.API
}

func NewPrometheusAPI added in v0.31.0

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

func (PrometheusClient) GetHistogramQuantileLatency added in v0.31.0

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

func (PrometheusClient) GetUptime added in v0.31.0

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

type StructTemplater

type StructTemplater struct {
	Values map[string]string
}

func (StructTemplater) Struct

func (w StructTemplater) Struct(reflect.Value) error

this func is required to fulfil the reflectwalk.StructWalker interface

func (StructTemplater) StructField

func (w StructTemplater) StructField(f reflect.StructField, v reflect.Value) error

func (StructTemplater) Template

func (w StructTemplater) Template(val string) string

Jump to

Keyboard shortcuts

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