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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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