tcp

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectionConfig

type DetectionConfig struct {
	Enabled          bool        `json:"enabled"`                    // The detection is enabled (`true`) or disabled (`false`).
	CustomThresholds *Thresholds `json:"customThresholds,omitempty"` // Custom thresholds for TCP connection problems. If not set, automatic mode is used.   **All** of these conditions must be met to trigger an alert.
}

DetectionConfig Configuration of TCP connectivity problems detection.

func (*DetectionConfig) MarshalHCL

func (me *DetectionConfig) MarshalHCL(properties hcl.Properties) error

func (*DetectionConfig) Schema

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

func (*DetectionConfig) UnmarshalHCL

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

type Thresholds

type Thresholds struct {
	NewConnectionFailuresPercentage  int32 `json:"newConnectionFailuresPercentage"`  // Percentage of new connection failures is higher than *X*% in 3 out of 5 samples.
	FailedConnectionsNumberPerMinute int32 `json:"failedConnectionsNumberPerMinute"` // Number of failed connections is higher than *X* connections per minute in 3 out of 5 samples.
}

NetworkTcpProblemsThresholds Custom thresholds for TCP connection problems. If not set, automatic mode is used.

**All** of these conditions must be met to trigger an alert.

func (*Thresholds) MarshalHCL

func (me *Thresholds) MarshalHCL(properties hcl.Properties) error

func (*Thresholds) Schema

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

func (*Thresholds) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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