Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectionConfig ¶
type DetectionConfig struct { CustomThresholds *Thresholds `json:"customThresholds,omitempty"` // . Enabled bool `json:"enabled"` // . }
DetectionConfig Configuration of high memory usage detection.
func (*DetectionConfig) MarshalHCL ¶
func (me *DetectionConfig) MarshalHCL(properties hcl.Properties) error
func (*DetectionConfig) UnmarshalHCL ¶
func (me *DetectionConfig) UnmarshalHCL(decoder hcl.Decoder) error
type Thresholds ¶
type Thresholds struct { UsedMemoryPercentageWindows int32 `json:"usedMemoryPercentageWindows"` // Memory usage is higher than *X*% on Windows. UsedMemoryPercentageNonWindows int32 `json:"usedMemoryPercentageNonWindows"` // Memory usage is higher than *X*% on Linux. PageFaultsPerSecondNonWindows int32 `json:"pageFaultsPerSecondNonWindows"` // Memory page fault rate is higher than *X* faults per second on Linux. PageFaultsPerSecondWindows int32 `json:"pageFaultsPerSecondWindows"` // Memory page fault rate is higher than *X* faults per second on Windows. }
Thresholds Custom thresholds for high memory usage. If not set then the automatic mode is used.
**Both** conditions must be met to trigger an alert.
func (*Thresholds) MarshalHCL ¶
func (me *Thresholds) MarshalHCL(properties hcl.Properties) error
func (*Thresholds) UnmarshalHCL ¶
func (me *Thresholds) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.