Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppDeniedError = errors.New("App denied")
View Source
var AppDeniedMetric = &appDeniedMetric{}
View Source
var NoHostsMetricResult = &noHostsMetricResult{}
View Source
var NoMetricResultYet = &noMetricResultYet{}
View Source
var NoSuchMetric = &noSuchMetric{}
View Source
var NoSuchMetricError = errors.New("No such metric")
View Source
var ThresholdExceededError = errors.New("Threshold exceeded")
Functions ¶
func IsDialTcpError ¶
Types ¶
type AppThrottle ¶
AppThrottle is the definition for an app throtting instruction - Ratio: [0..1], 0 == no throttle, 1 == fully throttle
func NewAppThrottle ¶
func NewAppThrottle(expireAt time.Time, ratio float64) *AppThrottle
type MetricHealth ¶
MetricHealth is a health status for a metric, and more specifically, when it was last checked to be "OK"
func NewMetricHealth ¶
func NewMetricHealth(lastHealthyAt time.Time) *MetricHealth
type MetricHealthMap ¶
type MetricHealthMap map[string](*MetricHealth)
func (MetricHealthMap) Aggregate ¶
func (m MetricHealthMap) Aggregate(other MetricHealthMap) MetricHealthMap
type MetricResult ¶
func NewSimpleMetricResult ¶
func NewSimpleMetricResult(value float64) MetricResult
type MetricResultFunc ¶
type MetricResultFunc func() (metricResult MetricResult, threshold float64)
Click to show internal directories.
Click to hide internal directories.