Documentation ¶
Index ¶
- type Autodetection
- func (me *Autodetection) MarshalHCL(properties hcl.Properties) error
- func (me *Autodetection) MarshalJSON() ([]byte, error)
- func (me *Autodetection) Schema() map[string]*schema.Schema
- func (me *Autodetection) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *Autodetection) UnmarshalJSON(data []byte) error
- type Detection
- type Thresholds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Autodetection ¶
type Autodetection struct { PercentAbsolute int32 `json:"failingServiceCallPercentageIncreaseAbsolute"` // Absolute increase of failing service calls to trigger an alert, %. PercentRelative int32 `json:"failingServiceCallPercentageIncreaseRelative"` // Relative increase of failing service calls to trigger an alert, %. Unknowns map[string]json.RawMessage `json:"-"` }
Autodetection Parameters of failure rate increase auto-detection. Required if **detectionMode** is `DETECT_AUTOMATICALLY`. Not applicable otherwise. The absolute and relative thresholds **both** must exceed to trigger an alert. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + **1%** = 2.5% Relative: 1.5% + 1.5% * **50%** = 2.25%
func (*Autodetection) MarshalHCL ¶
func (me *Autodetection) MarshalHCL(properties hcl.Properties) error
func (*Autodetection) MarshalJSON ¶
func (me *Autodetection) MarshalJSON() ([]byte, error)
func (*Autodetection) UnmarshalHCL ¶
func (me *Autodetection) UnmarshalHCL(decoder hcl.Decoder) error
func (*Autodetection) UnmarshalJSON ¶
func (me *Autodetection) UnmarshalJSON(data []byte) error
type Detection ¶
type Detection struct { Thresholds *Thresholds `json:"thresholds,omitempty"` // Fixed thresholds for failure rate increase detection. Required if **detectionMode** is `DETECT_USING_FIXED_THRESHOLDS`. Not applicable otherwise. AutomaticDetection *Autodetection `json:"automaticDetection,omitempty"` // Parameters of failure rate increase auto-detection. Required if **detectionMode** is `DETECT_AUTOMATICALLY`. Not applicable otherwise. The absolute and relative thresholds **both** must exceed to trigger an alert. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be: Absolute: 1.5% + **1%** = 2.5% Relative: 1.5% + 1.5% * **50%** = 2.25% DetectionMode detection.Mode `json:"detectionMode"` // How to detect failure rate increase: automatically, or based on fixed thresholds, or do not detect. }
Detection Configuration of failure rate increase detection.
func (*Detection) MarshalHCL ¶
func (me *Detection) MarshalHCL(properties hcl.Properties) error
func (*Detection) MarshalJSON ¶
func (*Detection) UnmarshalJSON ¶
type Thresholds ¶
type Thresholds struct { Sensitivity common.Sensitivity `json:"sensitivity"` // Sensitivity of the threshold. With `low` sensitivity, high statistical confidence is used. Brief violations (for example, due to a surge in load) won't trigger alerts. With `high` sensitivity, no statistical confidence is used. Each violation triggers alert. Threshold int32 `json:"threshold"` // Failure rate during any 5-minute period to trigger an alert, %. Unknowns map[string]json.RawMessage `json:"-"` }
Thresholds Fixed thresholds for failure rate increase detection.
Required if **detectionMode** is `DETECT_USING_FIXED_THRESHOLDS`. Not applicable otherwise.
func (*Thresholds) MarshalHCL ¶
func (me *Thresholds) MarshalHCL(properties hcl.Properties) error
func (*Thresholds) MarshalJSON ¶
func (me *Thresholds) MarshalJSON() ([]byte, error)
func (*Thresholds) UnmarshalHCL ¶
func (me *Thresholds) UnmarshalHCL(decoder hcl.Decoder) error
func (*Thresholds) UnmarshalJSON ¶
func (me *Thresholds) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.