stats

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckStats

type CheckStats struct {
	LastFailedAt        *occurrence
	LastSuccessfulAt    *occurrence
	LastCheckedAt       *occurrence
	StateTransitionedAt *occurrence
	SuccessfulTotal     *counter
	SuccessfulSequence  *counter
	FailureTotal        *counter
	FailureSequence     *counter
	CurrentAlertCount   *counter
}

func NewCheckStats

func NewCheckStats() *CheckStats

func (*CheckStats) Export

func (c *CheckStats) Export() CheckStatsPublic

type CheckStatsPublic

type CheckStatsPublic struct {
	LastCheckedAt       *utils.RFCTime `json:"last_checked_at"`
	StateTransitionedAt *utils.RFCTime `json:"state_transitioned_at"`
	SuccessfulTotal     int            `json:"successful_total"`
	FailureTotal        int            `json:"failure_total"`
}

Jump to

Keyboard shortcuts

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