traffic

package
v1.72.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detection

type Detection struct {
	Drops  *DropDetection  // The configuration of traffic drops detection.
	Spikes *SpikeDetection // The configuration of traffic spikes 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`).
	TrafficDropPercent *int32 `json:"trafficDropPercent,omitempty"` // Alert if the observed traffic is less than *X* % of the expected value.
}

DropDetection The configuration of traffic drops detection.

func (*DropDetection) MarshalHCL

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

func (*DropDetection) Schema

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

func (*DropDetection) UnmarshalHCL

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

type SpikeDetection

type SpikeDetection struct {
	Enabled             bool   `json:"enabled"`                       // The detection is enabled (`true`) or disabled (`false`).
	TrafficSpikePercent *int32 `json:"trafficSpikePercent,omitempty"` // Alert if the observed traffic is more than *X* % of the expected value.
}

SpikeDetection The configuration of traffic spikes detection.

func (*SpikeDetection) MarshalHCL

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

func (*SpikeDetection) Schema

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

func (*SpikeDetection) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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