aggregate

package
v0.33.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PivotByNamespace bool
View Source
var Servers []string

Functions

func Handler

func Handler(w nethttp.ResponseWriter, req *nethttp.Request)

Types

type AggregateCheck

type AggregateCheck struct {
	CanaryName   string                       `json:"canaryName"`
	Description  string                       `json:"description"`
	DisplayType  string                       `json:"displayType"`
	Endpoint     string                       `json:"endpoint"`
	Health       map[string]CheckHealth       `json:"health"`
	IconURL      string                       `json:"iconURL"`
	Interval     uint64                       `json:"interval"`
	Key          string                       `json:"key"`
	Labels       map[string]string            `json:"labels"`
	Name         string                       `json:"name"`
	Namespace    string                       `json:"namespace"`
	Owner        string                       `json:"owner"`
	RunnerLabels map[string]string            `json:"runner"`
	Schedule     string                       `json:"schedule"`
	ServerURL    string                       `json:"serverURL"`
	Severity     string                       `json:"severity"`
	Statuses     map[string][]pkg.CheckStatus `json:"checkStatuses"`
	Type         string                       `json:"type"`
}

type AggregateChecks

type AggregateChecks []AggregateCheck // nolint: golint

func (AggregateChecks) Len

func (c AggregateChecks) Len() int

func (AggregateChecks) Less

func (c AggregateChecks) Less(i, j int) bool

func (AggregateChecks) Swap

func (c AggregateChecks) Swap(i, j int)

type CheckHealth added in v0.11.5

type CheckHealth struct {
	Latency Latency `json:"latency"`
	Uptime  Uptime  `json:"uptime"`
}

type Latency added in v0.31.0

type Latency struct {
	Percentile99 string `json:"p99,omitempty"`
	Percentile97 string `json:"p97,omitempty"`
	Percentile95 string `json:"p95,omitempty"`
	Rolling1H    string `json:"rolling1h"`
}

type Response

type Response struct {
	Checks  []AggregateCheck `json:"checks"`
	Servers []string         `json:"servers"`
}

type Uptime added in v0.31.0

type Uptime struct {
	Rolling1H string `json:"rolling1h"`
	Uptime    string `json:"uptime,omitempty"`
}

Jump to

Keyboard shortcuts

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