load

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Thresholds = struct {
	FifteenRequestsPerMinute Threshold
	FiveRequestsPerMinute    Threshold
	OneRequestPerMinute      Threshold
	TenRequestsPerMinute     Threshold
}{
	"FIFTEEN_REQUESTS_PER_MINUTE",
	"FIVE_REQUESTS_PER_MINUTE",
	"ONE_REQUEST_PER_MINUTE",
	"TEN_REQUESTS_PER_MINUTE",
}

Thresholds offers the known enum values

Functions

This section is empty.

Types

type Detection

type Detection struct {
	Drops  *DropDetection  // The configuration of load drop detection.
	Spikes *SpikeDetection // The configuration of traffic spike detection.
}

func (*Detection) IsEmpty

func (me *Detection) IsEmpty() bool

func (*Detection) MarshalHCL

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

func (*Detection) Schema

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

func (*Detection) UnmarshalHCL

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

type DropDetection

type DropDetection struct {
	Enabled         bool   `json:"enabled"`                                     // The detection is enabled (`true`) or disabled (`false`).
	LoadDropPercent *int32 `json:"loadDropPercent,omitempty"`                   // Alert if the observed load is less than *X* % of the expected value.
	AbnormalMinutes *int32 `json:"minAbnormalStateDurationInMinutes,omitempty"` // Alert if the service stays in abnormal state for at least *X* minutes.
}

DropDetection The configuration of load drops detection.

func (*DropDetection) MarshalHCL

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

func (*DropDetection) MarshalJSON

func (me *DropDetection) MarshalJSON() ([]byte, error)

func (*DropDetection) Schema

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

func (*DropDetection) UnmarshalHCL

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

func (*DropDetection) UnmarshalJSON

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

type SpikeDetection

type SpikeDetection struct {
	Enabled          bool                       `json:"enabled"`                                     // The detection is enabled (`true`) or disabled (`false`).
	LoadSpikePercent *int32                     `json:"loadSpikePercent,omitempty"`                  // Alert if the observed load is more than *X* % of the expected value.
	AbnormalMinutes  *int32                     `json:"minAbnormalStateDurationInMinutes,omitempty"` // Alert if the service stays in abnormal state for at least *X* minutes.
	Unknowns         map[string]json.RawMessage `json:"-"`
}

SpikeDetection The configuration of load spikes detection.

func (*SpikeDetection) MarshalHCL

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

func (*SpikeDetection) MarshalJSON

func (me *SpikeDetection) MarshalJSON() ([]byte, error)

func (*SpikeDetection) Schema

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

func (*SpikeDetection) UnmarshalHCL

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

func (*SpikeDetection) UnmarshalJSON

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

type Threshold

type Threshold string

Threshold Minimal service load to detect response time degradation.

Response time degradation of services with smaller load won't trigger alerts.

Jump to

Keyboard shortcuts

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