aggregate

package
v0.31.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: 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 {
	ServerURL   string                       `json:"serverURL"`
	Key         string                       `json:"key"`
	Type        string                       `json:"type"`
	Name        string                       `json:"name"`
	Namespace   string                       `json:"namespace"`
	CanaryName  string                       `json:"canaryName"`
	Description string                       `json:"description"`
	Endpoint    string                       `json:"endpoint"`
	Health      map[string]CheckHealth       `json:"health"`
	Statuses    map[string][]pkg.CheckStatus `json:"checkStatuses"`
	Interval    uint64                       `json:"interval"`
	Schedule    string                       `json:"schedule"`
	Owner       string                       `json:"owner"`
	Severity    string                       `json:"severity"`
	IconURL     string                       `json:"iconURL"`
	DisplayType string                       `json:"displayType"`
}

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:"Percentile99,omitempty"`
	Percentile97 string `json:"percentile97,omitempty"`
	Percentile95 string `json:"percentile95,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