Documentation ¶
Index ¶
- Variables
- type DetectionMode
- type DiskLowInodesDetection
- type DiskLowInodesDetectionThresholds
- type DiskLowSpaceDetection
- type DiskLowSpaceDetectionThresholds
- type DiskSlowWritesAndReadsDetection
- type DiskSlowWritesAndReadsDetectionThresholds
- type Settings
- func (me *Settings) GetScope() string
- func (me *Settings) Load(data []byte) error
- func (me *Settings) MarshalHCL(properties hcl.Properties) error
- func (me *Settings) Name() string
- func (me *Settings) Schema() map[string]*schema.Schema
- func (me *Settings) SetScope(diskId string)
- func (me *Settings) Store() ([]byte, error)
- func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DetectionModes = struct { Auto DetectionMode Custom DetectionMode }{ DetectionMode("Auto"), DetectionMode("Custom"), }
Functions ¶
This section is empty.
Types ¶
type DetectionMode ¶
type DetectionMode string
type DiskLowInodesDetection ¶
type DiskLowInodesDetection struct { CustomThresholds *DiskLowInodesDetectionThresholds `json:"customThresholds,omitempty"` DetectionMode *DetectionMode `json:"detectionMode,omitempty"` // Detection mode for low inodes number available Enabled bool `json:"enabled"` // Detect low inodes number available }
func (*DiskLowInodesDetection) MarshalHCL ¶
func (me *DiskLowInodesDetection) MarshalHCL(properties hcl.Properties) error
func (*DiskLowInodesDetection) Schema ¶
func (me *DiskLowInodesDetection) Schema() map[string]*schema.Schema
func (*DiskLowInodesDetection) UnmarshalHCL ¶
func (me *DiskLowInodesDetection) UnmarshalHCL(decoder hcl.Decoder) error
type DiskLowInodesDetectionThresholds ¶
type DiskLowInodesDetectionThresholds struct {
FreeInodesPercentage int `json:"freeInodesPercentage"` // Alert if the percentage of available inodes is lower than this threshold in 3 out of 5 samples
}
func (*DiskLowInodesDetectionThresholds) MarshalHCL ¶
func (me *DiskLowInodesDetectionThresholds) MarshalHCL(properties hcl.Properties) error
func (*DiskLowInodesDetectionThresholds) Schema ¶
func (me *DiskLowInodesDetectionThresholds) Schema() map[string]*schema.Schema
func (*DiskLowInodesDetectionThresholds) UnmarshalHCL ¶
func (me *DiskLowInodesDetectionThresholds) UnmarshalHCL(decoder hcl.Decoder) error
type DiskLowSpaceDetection ¶
type DiskLowSpaceDetection struct { CustomThresholds *DiskLowSpaceDetectionThresholds `json:"customThresholds,omitempty"` DetectionMode *DetectionMode `json:"detectionMode,omitempty"` // Detection mode for low disk space Enabled bool `json:"enabled"` // Detect low disk space }
func (*DiskLowSpaceDetection) MarshalHCL ¶
func (me *DiskLowSpaceDetection) MarshalHCL(properties hcl.Properties) error
func (*DiskLowSpaceDetection) Schema ¶
func (me *DiskLowSpaceDetection) Schema() map[string]*schema.Schema
func (*DiskLowSpaceDetection) UnmarshalHCL ¶
func (me *DiskLowSpaceDetection) UnmarshalHCL(decoder hcl.Decoder) error
type DiskLowSpaceDetectionThresholds ¶
type DiskLowSpaceDetectionThresholds struct {
FreeSpacePercentage int `json:"freeSpacePercentage"` // Alert if free disk space is lower than this percentage in 3 out of 5 samples
}
func (*DiskLowSpaceDetectionThresholds) MarshalHCL ¶
func (me *DiskLowSpaceDetectionThresholds) MarshalHCL(properties hcl.Properties) error
func (*DiskLowSpaceDetectionThresholds) Schema ¶
func (me *DiskLowSpaceDetectionThresholds) Schema() map[string]*schema.Schema
func (*DiskLowSpaceDetectionThresholds) UnmarshalHCL ¶
func (me *DiskLowSpaceDetectionThresholds) UnmarshalHCL(decoder hcl.Decoder) error
type DiskSlowWritesAndReadsDetection ¶
type DiskSlowWritesAndReadsDetection struct { CustomThresholds *DiskSlowWritesAndReadsDetectionThresholds `json:"customThresholds,omitempty"` DetectionMode *DetectionMode `json:"detectionMode,omitempty"` // Detection mode for slow running disks Enabled bool `json:"enabled"` // Detect slow-running disks }
func (*DiskSlowWritesAndReadsDetection) MarshalHCL ¶
func (me *DiskSlowWritesAndReadsDetection) MarshalHCL(properties hcl.Properties) error
func (*DiskSlowWritesAndReadsDetection) Schema ¶
func (me *DiskSlowWritesAndReadsDetection) Schema() map[string]*schema.Schema
func (*DiskSlowWritesAndReadsDetection) UnmarshalHCL ¶
func (me *DiskSlowWritesAndReadsDetection) UnmarshalHCL(decoder hcl.Decoder) error
type DiskSlowWritesAndReadsDetectionThresholds ¶
type DiskSlowWritesAndReadsDetectionThresholds struct {
WriteAndReadTime int `json:"writeAndReadTime"` // Alert if disk read time or write time is higher than this threshold in 3 out of 5 samples
}
func (*DiskSlowWritesAndReadsDetectionThresholds) MarshalHCL ¶
func (me *DiskSlowWritesAndReadsDetectionThresholds) MarshalHCL(properties hcl.Properties) error
func (*DiskSlowWritesAndReadsDetectionThresholds) Schema ¶
func (me *DiskSlowWritesAndReadsDetectionThresholds) Schema() map[string]*schema.Schema
func (*DiskSlowWritesAndReadsDetectionThresholds) UnmarshalHCL ¶
func (me *DiskSlowWritesAndReadsDetectionThresholds) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { DiskId string `json:"-"` DiskLowInodesDetection *DiskLowInodesDetection `json:"diskLowInodesDetection"` DiskLowSpaceDetection *DiskLowSpaceDetection `json:"diskLowSpaceDetection"` DiskSlowWritesAndReadsDetection *DiskSlowWritesAndReadsDetection `json:"diskSlowWritesAndReadsDetection"` OverrideDiskLowSpaceDetection bool `json:"overrideDiskLowSpaceDetection"` // Override low disk space detection settings OverrideLowInodesDetection bool `json:"overrideLowInodesDetection"` // Override low inodes detection settings OverrideSlowWritesAndReadsDetection bool `json:"overrideSlowWritesAndReadsDetection"` // Override slow writes and reads detection settings }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.