api

package
v0.0.0-...-df6a15f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUnknown     = "unknown"
	StatusUp          = "up"
	StatusMaintenance = "maintenance"
	StatusDown        = "down"
)

Website status enumaration.

View Source
const (
	ResultUp   = "up"
	ResultDown = "down"
)

Check result enumaration.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	ID        uint      `json:"id"`
	WebsiteID uint      `json:"websiteId,omitempty" db:"website_id"`
	Checked   time.Time `json:"checkedAt" db:"checked_at"`
	Result    string    `json:"result"`
	Latency   *Latency  `json:"latency"`
}

Check ...

type Entry

type Entry struct {
	Time     time.Time     `json:"time"`
	Status   string        `json:"status"`
	Duration time.Duration `json:"duration"`
}

Entry ...

type Latency

type Latency struct {
	DNS         time.Duration `json:"dns"`
	Connection  time.Duration `json:"connection"`
	TLS         time.Duration `json:"tls"`
	Application time.Duration `json:"application"`
	Total       time.Duration `json:"total"`
}

Latency ...

type Stats

type Stats struct {
	Uptime  float64 `json:"uptime"`
	Apdex   float64 `json:"apdex"`
	Average float64 `json:"average"`
	Lowest  float64 `json:"lowest"`
	Highest float64 `json:"highest"`
	Count   uint    `json:"count"`
}

Stats ...

type Website

type Website struct {
	ID      uint      `json:"id"`
	Updated time.Time `json:"updatedAt" db:"updated_at"`
	Status  string    `json:"status"`
	URL     string    `json:"url"`
	Uptime  float64   `json:"uptime"`
}

Website ...

Jump to

Keyboard shortcuts

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