diskevents

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metrics = struct {
	LowDiskSpace       Metric
	LowInodes          Metric
	ReadTimeExceeding  Metric
	WriteTimeExceeding Metric
}{
	"LOW_DISK_SPACE",
	"LOW_INODES",
	"READ_TIME_EXCEEDING",
	"WRITE_TIME_EXCEEDING",
}

Metrics offers the known enum values

View Source
var Operators = struct {
	Contains         Operator
	DoesNotContain   Operator
	DoesNotEqual     Operator
	DoesNotStartWith Operator
	Equals           Operator
	StartsWith       Operator
}{
	"CONTAINS",
	"DOES_NOT_CONTAIN",
	"DOES_NOT_EQUAL",
	"DOES_NOT_START_WITH",
	"EQUALS",
	"STARTS_WITH",
}

Operators offers the known enum values

Functions

This section is empty.

Types

type AnomalyDetection

type AnomalyDetection struct {
	Name             string          `json:"name"`                     // The name of the disk event rule.
	HostGroupID      *string         `json:"hostGroupId,omitempty"`    // Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group.
	Threshold        float64         `json:"threshold"`                // The threshold to trigger disk event.   * A percentage for `LowDiskSpace` or `LowInodes` metrics.   * In milliseconds for `ReadTimeExceeding` or `WriteTimeExceeding` metrics.
	DiskNameFilter   *DiskNameFilter `json:"diskNameFilter,omitempty"` // Narrows the rule usage down to disks, matching the specified criteria.
	Enabled          bool            `json:"enabled"`                  // Disk event rule enabled/disabled.
	Samples          int32           `json:"samples"`                  // The number of samples to evaluate.
	ViolatingSamples int32           `json:"violatingSamples"`         // The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples.
	Metric           Metric          `json:"metric"`                   // The metric to monitor.
	TagFilters       TagFilters      `json:"tagFilters,omitempty"`     // Narrows the rule usage down to the hosts matching the specified tags.
}

AnomalyDetection has no documentation

func (*AnomalyDetection) MarshalHCL

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

func (*AnomalyDetection) MarshalJSON

func (me *AnomalyDetection) MarshalJSON() ([]byte, error)

func (*AnomalyDetection) Schema

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

func (*AnomalyDetection) UnmarshalHCL

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

func (*AnomalyDetection) UnmarshalJSON

func (me *AnomalyDetection) UnmarshalJSON(data []byte) error

type DiskNameFilter

type DiskNameFilter struct {
	Operator Operator `json:"operator"` // Comparison operator.
	Value    string   `json:"value"`    // Value to compare to.
}

DiskNameFilter Narrows the rule usage down to disks, matching the specified criteria.

func (*DiskNameFilter) MarshalHCL

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

func (*DiskNameFilter) Schema

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

func (*DiskNameFilter) UnmarshalHCL

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

type Metric

type Metric string

Metric The metric to monitor.

type Operator

type Operator string

Operator Comparison operator.

type TagFilters

type TagFilters []*common.TagFilter

func (TagFilters) MarshalHCL

func (me TagFilters) MarshalHCL(properties hcl.Properties) error

func (TagFilters) Schema

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

func (*TagFilters) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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