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 { 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) 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 (*Detection) UnmarshalJSON ¶
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) 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.