failurerate

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Schema

func (me *Autodetection) Schema() map[string]*schema.Schema

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 (me *Detection) MarshalJSON() ([]byte, error)

func (*Detection) Schema

func (me *Detection) Schema() map[string]*schema.Schema

func (*Detection) UnmarshalHCL

func (me *Detection) UnmarshalHCL(decoder hcl.Decoder) error

func (*Detection) UnmarshalJSON

func (me *Detection) UnmarshalJSON(data []byte) error

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) Schema

func (me *Thresholds) Schema() map[string]*schema.Schema

func (*Thresholds) UnmarshalHCL

func (me *Thresholds) UnmarshalHCL(decoder hcl.Decoder) error

func (*Thresholds) UnmarshalJSON

func (me *Thresholds) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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