perdiskoverride

package
v1.52.0 Latest Latest
Warning

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

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

Documentation

Index

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 (*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 (*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 (*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 (*DiskSlowWritesAndReadsDetectionThresholds) 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) GetScope

func (me *Settings) GetScope() string

func (*Settings) Load

func (me *Settings) Load(data []byte) error

func (*Settings) MarshalHCL

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

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

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

func (*Settings) SetScope

func (me *Settings) SetScope(diskId string)

func (*Settings) Store

func (me *Settings) Store() ([]byte, error)

func (*Settings) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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