freeze

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Incident

type Incident struct {
	Target     string `json:"target"`
	Status     string `json:"status"`
	Message    string `json:"message"`
	CausedAt   string `json:"caused_at"`
	ResolvedAt string `json:"resolved_at,omitempty"`
}

type ProbeHistory

type ProbeHistory struct {
	Target  string   `json:"target"`
	Status  string   `json:"status"`
	History []Record `json:"history"`
	Updated string   `json:"updated,omitempty"`
}

type Record

type Record struct {
	CheckedAt  string  `json:"checked_at,omitempty"`
	Status     string  `json:"status"`
	Message    string  `json:"message"`
	Latency    float64 `json:"latency"`
	LatencyStr string  `json:"-"`
}

type Status

type Status struct {
	CurrentStatus    []ProbeHistory `json:"current_status"`
	CurrentIncidents []Incident     `json:"current_incidents"`
	IncidentHistory  []Incident     `json:"incident_history"`
	ReportedAt       string         `json:"reported_at"`
}

Jump to

Keyboard shortcuts

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