Documentation ¶
Index ¶
- Variables
- type DetectionMode
- type FailureRate
- type FailureRateAuto
- type FailureRateFixed
- type LoadDrops
- type LoadSpikes
- type OverAlertingProtection
- type ResponseTime
- type ResponseTimeAuto
- type ResponseTimeAutoAll
- type ResponseTimeAutoSlowest
- type ResponseTimeFixed
- type ResponseTimeFixedAll
- type ResponseTimeFixedSlowest
- type Sensitivity
- type Settings
- func (me *Settings) GetScope() string
- func (me *Settings) Load(data []byte) error
- func (me *Settings) MarshalHCL(properties hcl.Properties) error
- func (me *Settings) Name() string
- func (me *Settings) Schema() map[string]*schema.Schema
- func (me *Settings) SetScope(scope string)
- func (me *Settings) Store() ([]byte, error)
- func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DetectionModes = struct { Auto DetectionMode Fixed DetectionMode }{ DetectionMode("Auto"), DetectionMode("Fixed"), }
View Source
var Sensitivities = struct { Low Sensitivity Medium Sensitivity High Sensitivity }{ Sensitivity("Low"), Sensitivity("Medium"), Sensitivity("High"), }
Functions ¶
This section is empty.
Types ¶
type DetectionMode ¶
type DetectionMode string
type FailureRate ¶
type FailureRate struct { FixedDetection *FailureRateFixed `json:"fixedDetection,omitempty"` // . Alert if a given failure rate is exceeded during any 5-minute-period Enabled bool `json:"enabled"` // Detect increases in failure rate DetectionMode *DetectionMode `json:"detectionMode,omitempty"` // Detection mode for increases in failure rate AutoDetection *FailureRateAuto `json:"autoDetection,omitempty"` // . Alert if the percentage of failing service calls increases by **both** the absolute and relative thresholds: }
No documentation available
func (*FailureRate) MarshalHCL ¶
func (me *FailureRate) MarshalHCL(properties hcl.Properties) error
func (*FailureRate) UnmarshalHCL ¶
func (me *FailureRate) UnmarshalHCL(decoder hcl.Decoder) error
type FailureRateAuto ¶
type FailureRateAuto struct { OverAlertingProtection *OverAlertingProtection `json:"overAlertingProtection"` // Avoid over-alerting AbsoluteIncrease float64 `json:"absoluteIncrease"` // Absolute threshold RelativeIncrease float64 `json:"relativeIncrease"` // Relative threshold }
No documentation available
func (*FailureRateAuto) MarshalHCL ¶
func (me *FailureRateAuto) MarshalHCL(properties hcl.Properties) error
func (*FailureRateAuto) UnmarshalHCL ¶
func (me *FailureRateAuto) UnmarshalHCL(decoder hcl.Decoder) error
type FailureRateFixed ¶
type FailureRateFixed struct { OverAlertingProtection *OverAlertingProtection `json:"overAlertingProtection"` // Avoid over-alerting Sensitivity Sensitivity `json:"sensitivity"` // Sensitivity Threshold float64 `json:"threshold"` // Threshold }
No documentation available
func (*FailureRateFixed) MarshalHCL ¶
func (me *FailureRateFixed) MarshalHCL(properties hcl.Properties) error
func (*FailureRateFixed) UnmarshalHCL ¶
func (me *FailureRateFixed) UnmarshalHCL(decoder hcl.Decoder) error
type LoadDrops ¶
type LoadDrops struct { Enabled bool `json:"enabled"` // Detect service load drops LoadDropPercent *float64 `json:"loadDropPercent,omitempty"` // Threshold MinutesAbnormalState *int `json:"minutesAbnormalState,omitempty"` // Time span }
No documentation available
func (*LoadDrops) MarshalHCL ¶
func (me *LoadDrops) MarshalHCL(properties hcl.Properties) error
type LoadSpikes ¶
type LoadSpikes struct { Enabled bool `json:"enabled"` // Detect service load spikes LoadSpikePercent *float64 `json:"loadSpikePercent,omitempty"` // Threshold MinutesAbnormalState *int `json:"minutesAbnormalState,omitempty"` // Time span }
No documentation available
func (*LoadSpikes) MarshalHCL ¶
func (me *LoadSpikes) MarshalHCL(properties hcl.Properties) error
func (*LoadSpikes) UnmarshalHCL ¶
func (me *LoadSpikes) UnmarshalHCL(decoder hcl.Decoder) error
type OverAlertingProtection ¶
type OverAlertingProtection struct { RequestsPerMinute float64 `json:"requestsPerMinute"` // Only alert if there are at least MinutesAbnormalState int `json:"minutesAbnormalState"` // Only alert if the abnormal state remains for at least }
No documentation available
func (*OverAlertingProtection) MarshalHCL ¶
func (me *OverAlertingProtection) MarshalHCL(properties hcl.Properties) error
func (*OverAlertingProtection) Schema ¶
func (me *OverAlertingProtection) Schema() map[string]*schema.Schema
func (*OverAlertingProtection) UnmarshalHCL ¶
func (me *OverAlertingProtection) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTime ¶
type ResponseTime struct { AutoDetection *ResponseTimeAuto `json:"autoDetection,omitempty"` // No documentation available FixedDetection *ResponseTimeFixed `json:"fixedDetection,omitempty"` // No documentation available Enabled bool `json:"enabled"` // Detect response time degradations DetectionMode *DetectionMode `json:"detectionMode,omitempty"` // Detection mode for response time degradations }
No documentation available
func (*ResponseTime) MarshalHCL ¶
func (me *ResponseTime) MarshalHCL(properties hcl.Properties) error
func (*ResponseTime) UnmarshalHCL ¶
func (me *ResponseTime) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeAuto ¶
type ResponseTimeAuto struct { OverAlertingProtection *OverAlertingProtection `json:"overAlertingProtection"` // Avoid over-alerting ResponseTimeAll *ResponseTimeAutoAll `json:"responseTimeAll"` // All requests. Alert if the average response time of all requests degrades beyond **both** the absolute and relative thresholds: ResponseTimeSlowest *ResponseTimeAutoSlowest `json:"responseTimeSlowest"` // Slowest 10%. Alert if the average response time of the slowest 10% of requests degrades beyond **both** the absolute and relative thresholds: }
No documentation available
func (*ResponseTimeAuto) MarshalHCL ¶
func (me *ResponseTimeAuto) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeAuto) UnmarshalHCL ¶
func (me *ResponseTimeAuto) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeAutoAll ¶
type ResponseTimeAutoAll struct { DegradationPercent float64 `json:"degradationPercent"` // Relative threshold DegradationMilliseconds float64 `json:"degradationMilliseconds"` // Absolute threshold }
No documentation available
func (*ResponseTimeAutoAll) MarshalHCL ¶
func (me *ResponseTimeAutoAll) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeAutoAll) Schema ¶
func (me *ResponseTimeAutoAll) Schema() map[string]*schema.Schema
func (*ResponseTimeAutoAll) UnmarshalHCL ¶
func (me *ResponseTimeAutoAll) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeAutoSlowest ¶
type ResponseTimeAutoSlowest struct { SlowestDegradationMilliseconds float64 `json:"slowestDegradationMilliseconds"` // Absolute threshold SlowestDegradationPercent float64 `json:"slowestDegradationPercent"` // Relative threshold }
No documentation available
func (*ResponseTimeAutoSlowest) MarshalHCL ¶
func (me *ResponseTimeAutoSlowest) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeAutoSlowest) Schema ¶
func (me *ResponseTimeAutoSlowest) Schema() map[string]*schema.Schema
func (*ResponseTimeAutoSlowest) UnmarshalHCL ¶
func (me *ResponseTimeAutoSlowest) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeFixed ¶
type ResponseTimeFixed struct { ResponseTimeSlowest *ResponseTimeFixedSlowest `json:"responseTimeSlowest"` // Slowest 10%. Alert if the average response time of the slowest 10% of requests degrades beyond this threshold: OverAlertingProtection *OverAlertingProtection `json:"overAlertingProtection"` // Avoid over-alerting Sensitivity Sensitivity `json:"sensitivity"` // Sensitivity ResponseTimeAll *ResponseTimeFixedAll `json:"responseTimeAll"` // All requests. Alert if the average response time of all requests degrades beyond this threshold: }
No documentation available
func (*ResponseTimeFixed) MarshalHCL ¶
func (me *ResponseTimeFixed) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeFixed) UnmarshalHCL ¶
func (me *ResponseTimeFixed) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeFixedAll ¶
type ResponseTimeFixedAll struct {
DegradationMilliseconds float64 `json:"degradationMilliseconds"` // Alert if the response time degrades beyond this many ms within an observation period of 5 minutes
}
No documentation available
func (*ResponseTimeFixedAll) MarshalHCL ¶
func (me *ResponseTimeFixedAll) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeFixedAll) Schema ¶
func (me *ResponseTimeFixedAll) Schema() map[string]*schema.Schema
func (*ResponseTimeFixedAll) UnmarshalHCL ¶
func (me *ResponseTimeFixedAll) UnmarshalHCL(decoder hcl.Decoder) error
type ResponseTimeFixedSlowest ¶
type ResponseTimeFixedSlowest struct {
SlowestDegradationMilliseconds float64 `json:"slowestDegradationMilliseconds"` // Alert if the response time of the slowest 10% degrades beyond this many ms within an observation period of 5 minutes
}
No documentation available
func (*ResponseTimeFixedSlowest) MarshalHCL ¶
func (me *ResponseTimeFixedSlowest) MarshalHCL(properties hcl.Properties) error
func (*ResponseTimeFixedSlowest) Schema ¶
func (me *ResponseTimeFixedSlowest) Schema() map[string]*schema.Schema
func (*ResponseTimeFixedSlowest) UnmarshalHCL ¶
func (me *ResponseTimeFixedSlowest) UnmarshalHCL(decoder hcl.Decoder) error
type Sensitivity ¶
type Sensitivity string
type Settings ¶
type Settings struct { Scope string `json:"-"` FailureRate *FailureRate `json:"failureRate"` // Failure rate LoadDrops *LoadDrops `json:"loadDrops"` // Alert if the observed load is lower than the expected load by a specified margin for a specified amount of time: LoadSpikes *LoadSpikes `json:"loadSpikes"` // Alert if the observed load exceeds the expected load by a specified margin for a specified amount of time: ResponseTime *ResponseTime `json:"responseTime"` // Response time }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Source Files ¶
- enums.go
- failure_rate.go
- failure_rate_auto.go
- failure_rate_fixed.go
- load_drops.go
- load_spikes.go
- over_alerting_protection.go
- response_time.go
- response_time_auto.go
- response_time_auto_all.go
- response_time_auto_slowest.go
- response_time_fixed.go
- response_time_fixed_all.go
- response_time_fixed_slowest.go
- settings.go
Click to show internal directories.
Click to hide internal directories.