responsetime

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 7 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 {
	LoadThreshold       load.Threshold             `json:"loadThreshold"`                              // Minimal service load to detect response time degradation.   Response time degradation of services with smaller load won't trigger alerts.
	Milliseconds        int32                      `json:"responseTimeDegradationMilliseconds"`        // Alert if the response time degrades by more than *X* milliseconds.
	Percent             int32                      `json:"responseTimeDegradationPercent"`             // Alert if the response time degrades by more than *X* %.
	SlowestMilliseconds int32                      `json:"slowestResponseTimeDegradationMilliseconds"` // Alert if the response time of the slowest 10% degrades by more than *X* milliseconds.
	SlowestPercent      int32                      `json:"slowestResponseTimeDegradationPercent"`      // Alert if the response time of the slowest 10% degrades by more than *X* %.
	Unknowns            map[string]json.RawMessage `json:"-"`
}

Autodetection Parameters of the response time degradation auto-detection. Required if the **detectionMode** is `DETECT_AUTOMATICALLY`. Not applicable otherwise. Violation of **any** criterion triggers an alert.

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 {
	AutomaticDetection *Autodetection `json:"automaticDetection,omitempty"` // Parameters of the response time degradation auto-detection. Required if the **detectionMode** is `DETECT_AUTOMATICALLY`. Not applicable otherwise.  Violation of **any** criterion triggers an alert.
	DetectionMode      detection.Mode `json:"detectionMode"`                // How to detect response time degradation: automatically, or based on fixed thresholds, or do not detect.
	Thresholds         *Thresholds    `json:"thresholds,omitempty"`         // Fixed thresholds for response time degradation detection.   Required if **detectionMode** is `DETECT_USING_FIXED_THRESHOLDS`. Not applicable otherwise.
}

Detection Configuration of response time degradation 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 {
	LoadThreshold       load.Threshold             `json:"loadThreshold"`                            // Minimal service load to detect response time degradation.   Response time degradation of services with smaller load won't trigger alerts.
	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 an alert.
	Milliseconds        int32                      `json:"responseTimeThresholdMilliseconds"`        // Response time during any 5-minute period to trigger an alert, in milliseconds.
	SlowestMilliseconds int32                      `json:"slowestResponseTimeThresholdMilliseconds"` // Response time of the 10% slowest during any 5-minute period to trigger an alert, in milliseconds.
	Unknowns            map[string]json.RawMessage `json:"-"`
}

Thresholds Fixed thresholds for response time degradation 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