vmware

package
v1.56.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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
}{
	"auto",
	"custom",
}

Functions

This section is empty.

Types

type DetectionMode

type DetectionMode string

type DroppedPacketsDetectionConfig

type DroppedPacketsDetectionConfig struct {
	CustomThresholds *DroppedPacketsDetectionThresholds `json:"customThresholds,omitempty"` // Alert if the condition is met in 3 out of 5 samples
	DetectionMode    *DetectionMode                     `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                               `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*DroppedPacketsDetectionConfig) HandlePreconditions

func (me *DroppedPacketsDetectionConfig) HandlePreconditions() error

func (*DroppedPacketsDetectionConfig) MarshalHCL

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

func (*DroppedPacketsDetectionConfig) Schema

func (*DroppedPacketsDetectionConfig) UnmarshalHCL

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

type DroppedPacketsDetectionThresholds

type DroppedPacketsDetectionThresholds struct {
	DroppedPacketsPerSecond int `json:"droppedPacketsPerSecond"` // Receive/transmit dropped packets rate on NIC is higher than
}

DroppedPacketsDetectionThresholds. Alert if the condition is met in 3 out of 5 samples

func (*DroppedPacketsDetectionThresholds) MarshalHCL

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

func (*DroppedPacketsDetectionThresholds) Schema

func (*DroppedPacketsDetectionThresholds) UnmarshalHCL

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

type EsxiHighCpuDetectionConfig

type EsxiHighCpuDetectionConfig struct {
	CustomThresholds *EsxiHighCpuDetectionThresholds `json:"customThresholds,omitempty"` // Alert if **all three** conditions are met in 3 out of 5 samples
	DetectionMode    *DetectionMode                  `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                            `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*EsxiHighCpuDetectionConfig) HandlePreconditions

func (me *EsxiHighCpuDetectionConfig) HandlePreconditions() error

func (*EsxiHighCpuDetectionConfig) MarshalHCL

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

func (*EsxiHighCpuDetectionConfig) Schema

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

func (*EsxiHighCpuDetectionConfig) UnmarshalHCL

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

type EsxiHighCpuDetectionThresholds

type EsxiHighCpuDetectionThresholds struct {
	CpuPeakPercentage    int `json:"cpuPeakPercentage"`    // At least one peak occurred when Hypervisor CPU usage was higher than
	CpuUsagePercentage   int `json:"cpuUsagePercentage"`   // CPU usage is higher than
	VmCpuReadyPercentage int `json:"vmCpuReadyPercentage"` // VM CPU ready is higher than
}

EsxiHighCpuDetectionThresholds. Alert if **all three** conditions are met in 3 out of 5 samples

func (*EsxiHighCpuDetectionThresholds) MarshalHCL

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

func (*EsxiHighCpuDetectionThresholds) Schema

func (*EsxiHighCpuDetectionThresholds) UnmarshalHCL

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

type EsxiHighMemoryDetectionConfig

type EsxiHighMemoryDetectionConfig struct {
	CustomThresholds *EsxiHighMemoryDetectionThresholds `json:"customThresholds,omitempty"` // Alert if the condition is met in 3 out of 5 samples
	DetectionMode    *DetectionMode                     `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                               `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*EsxiHighMemoryDetectionConfig) HandlePreconditions

func (me *EsxiHighMemoryDetectionConfig) HandlePreconditions() error

func (*EsxiHighMemoryDetectionConfig) MarshalHCL

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

func (*EsxiHighMemoryDetectionConfig) Schema

func (*EsxiHighMemoryDetectionConfig) UnmarshalHCL

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

type EsxiHighMemoryDetectionThresholds

type EsxiHighMemoryDetectionThresholds struct {
	CompressionDecompressionRate float64 `json:"compressionDecompressionRate"` // ESXi host swap IN/OUT or compression/decompression rate is higher than
}

EsxiHighMemoryDetectionThresholds. Alert if the condition is met in 3 out of 5 samples

func (*EsxiHighMemoryDetectionThresholds) MarshalHCL

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

func (*EsxiHighMemoryDetectionThresholds) Schema

func (*EsxiHighMemoryDetectionThresholds) UnmarshalHCL

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

type GuestCPULimitDetectionConfig

type GuestCPULimitDetectionConfig struct {
	CustomThresholds *GuestCPULimitDetectionThresholds `json:"customThresholds,omitempty"` // Alert if **all three** conditions are met in 3 out of 5 samples
	DetectionMode    *DetectionMode                    `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                              `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*GuestCPULimitDetectionConfig) HandlePreconditions

func (me *GuestCPULimitDetectionConfig) HandlePreconditions() error

func (*GuestCPULimitDetectionConfig) MarshalHCL

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

func (*GuestCPULimitDetectionConfig) Schema

func (*GuestCPULimitDetectionConfig) UnmarshalHCL

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

type GuestCPULimitDetectionThresholds

type GuestCPULimitDetectionThresholds struct {
	HostCpuUsagePercentage int `json:"hostCpuUsagePercentage"` // Hypervisor CPU usage is higher than
	VmCpuReadyPercentage   int `json:"vmCpuReadyPercentage"`   // VM CPU ready is higher than
	VmCpuUsagePercentage   int `json:"vmCpuUsagePercentage"`   // VM CPU usage (VM CPU Usage Mhz / VM CPU limit in Mhz) is higher than
}

GuestCPULimitDetectionThresholds. Alert if **all three** conditions are met in 3 out of 5 samples

func (*GuestCPULimitDetectionThresholds) MarshalHCL

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

func (*GuestCPULimitDetectionThresholds) Schema

func (*GuestCPULimitDetectionThresholds) UnmarshalHCL

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

type LowDatastoreSpaceDetectionConfig

type LowDatastoreSpaceDetectionConfig struct {
	CustomThresholds *LowDatastoreSpaceDetectionThresholds `json:"customThresholds,omitempty"` // Alert if the condition is met in 1 out of 5 samples
	DetectionMode    *DetectionMode                        `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                                  `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*LowDatastoreSpaceDetectionConfig) HandlePreconditions

func (me *LowDatastoreSpaceDetectionConfig) HandlePreconditions() error

func (*LowDatastoreSpaceDetectionConfig) MarshalHCL

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

func (*LowDatastoreSpaceDetectionConfig) Schema

func (*LowDatastoreSpaceDetectionConfig) UnmarshalHCL

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

type LowDatastoreSpaceDetectionThresholds

type LowDatastoreSpaceDetectionThresholds struct {
	FreeSpacePercentage int `json:"freeSpacePercentage"` // Datastore free space is lower than
}

LowDatastoreSpaceDetectionThresholds. Alert if the condition is met in 1 out of 5 samples

func (*LowDatastoreSpaceDetectionThresholds) MarshalHCL

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

func (*LowDatastoreSpaceDetectionThresholds) Schema

func (*LowDatastoreSpaceDetectionThresholds) UnmarshalHCL

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

type OverloadedStorageDetectionConfig

type OverloadedStorageDetectionConfig struct {
	CustomThresholds *OverloadedStorageDetectionThresholds `json:"customThresholds,omitempty"` // Alert if the condition is met in 3 out of 5 samples
	DetectionMode    *DetectionMode                        `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                                  `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*OverloadedStorageDetectionConfig) HandlePreconditions

func (me *OverloadedStorageDetectionConfig) HandlePreconditions() error

func (*OverloadedStorageDetectionConfig) MarshalHCL

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

func (*OverloadedStorageDetectionConfig) Schema

func (*OverloadedStorageDetectionConfig) UnmarshalHCL

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

type OverloadedStorageDetectionThresholds

type OverloadedStorageDetectionThresholds struct {
	CommandAbortsNumber int `json:"commandAbortsNumber"` // Number of command aborts is higher than
}

OverloadedStorageDetectionThresholds. Alert if the condition is met in 3 out of 5 samples

func (*OverloadedStorageDetectionThresholds) MarshalHCL

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

func (*OverloadedStorageDetectionThresholds) Schema

func (*OverloadedStorageDetectionThresholds) UnmarshalHCL

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

type Settings

type Settings struct {
	DroppedPacketsDetection      *DroppedPacketsDetectionConfig      `json:"droppedPacketsDetection"`
	EsxiHighCpuDetection         *EsxiHighCpuDetectionConfig         `json:"esxiHighCpuDetection"`
	EsxiHighMemoryDetection      *EsxiHighMemoryDetectionConfig      `json:"esxiHighMemoryDetection"`
	GuestCpuLimitDetection       *GuestCPULimitDetectionConfig       `json:"guestCpuLimitDetection"`
	LowDatastoreSpaceDetection   *LowDatastoreSpaceDetectionConfig   `json:"lowDatastoreSpaceDetection"`
	OverloadedStorageDetection   *OverloadedStorageDetectionConfig   `json:"overloadedStorageDetection"`
	SlowPhysicalStorageDetection *SlowPhysicalStorageDetectionConfig `json:"slowPhysicalStorageDetection"`
	UndersizedStorageDetection   *UndersizedStorageDetectionConfig   `json:"undersizedStorageDetection"`
}

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) UnmarshalHCL

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

type SlowPhysicalStorageDetectionConfig

type SlowPhysicalStorageDetectionConfig struct {
	CustomThresholds *SlowPhysicalStorageDetectionThresholds `json:"customThresholds,omitempty"` // Alert if **any** condition is met in 4 out of 5 samples
	DetectionMode    *DetectionMode                          `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                                    `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*SlowPhysicalStorageDetectionConfig) HandlePreconditions

func (me *SlowPhysicalStorageDetectionConfig) HandlePreconditions() error

func (*SlowPhysicalStorageDetectionConfig) MarshalHCL

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

func (*SlowPhysicalStorageDetectionConfig) Schema

func (*SlowPhysicalStorageDetectionConfig) UnmarshalHCL

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

type SlowPhysicalStorageDetectionThresholds

type SlowPhysicalStorageDetectionThresholds struct {
	AvgReadWriteLatency  int `json:"avgReadWriteLatency"`  // Read/write latency is higher than
	PeakReadWriteLatency int `json:"peakReadWriteLatency"` // Peak value for read/write latency is higher than
}

SlowPhysicalStorageDetectionThresholds. Alert if **any** condition is met in 4 out of 5 samples

func (*SlowPhysicalStorageDetectionThresholds) MarshalHCL

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

func (*SlowPhysicalStorageDetectionThresholds) Schema

func (*SlowPhysicalStorageDetectionThresholds) UnmarshalHCL

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

type UndersizedStorageDetectionConfig

type UndersizedStorageDetectionConfig struct {
	CustomThresholds *UndersizedStorageDetectionThresholds `json:"customThresholds,omitempty"` // Alert if **any** condition is met in 3 out of 5 samples
	DetectionMode    *DetectionMode                        `json:"detectionMode,omitempty"`    // Possible Values: `Auto`, `Custom`
	Enabled          bool                                  `json:"enabled"`                    // This setting is enabled (`true`) or disabled (`false`)
}

func (*UndersizedStorageDetectionConfig) HandlePreconditions

func (me *UndersizedStorageDetectionConfig) HandlePreconditions() error

func (*UndersizedStorageDetectionConfig) MarshalHCL

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

func (*UndersizedStorageDetectionConfig) Schema

func (*UndersizedStorageDetectionConfig) UnmarshalHCL

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

type UndersizedStorageDetectionThresholds

type UndersizedStorageDetectionThresholds struct {
	AverageQueueCommandLatency int `json:"averageQueueCommandLatency"` // Average queue command latency is higher than
	PeakQueueCommandLatency    int `json:"peakQueueCommandLatency"`    // Peak queue command latency is higher than
}

UndersizedStorageDetectionThresholds. Alert if **any** condition is met in 3 out of 5 samples

func (*UndersizedStorageDetectionThresholds) MarshalHCL

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

func (*UndersizedStorageDetectionThresholds) Schema

func (*UndersizedStorageDetectionThresholds) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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