Documentation ¶
Index ¶
- Variables
- type Detection
- type DropDetection
- func (me *DropDetection) MarshalHCL(properties hcl.Properties) error
- func (me *DropDetection) MarshalJSON() ([]byte, error)
- func (me *DropDetection) Schema() map[string]*schema.Schema
- func (me *DropDetection) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *DropDetection) UnmarshalJSON(data []byte) error
- type SpikeDetection
- func (me *SpikeDetection) MarshalHCL(properties hcl.Properties) error
- func (me *SpikeDetection) MarshalJSON() ([]byte, error)
- func (me *SpikeDetection) Schema() map[string]*schema.Schema
- func (me *SpikeDetection) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *SpikeDetection) UnmarshalJSON(data []byte) error
- type Threshold
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) MarshalHCL ¶
func (me *Detection) MarshalHCL(properties hcl.Properties) 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) 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) UnmarshalHCL ¶
func (me *SpikeDetection) UnmarshalHCL(decoder hcl.Decoder) error
func (*SpikeDetection) UnmarshalJSON ¶
func (me *SpikeDetection) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.