Documentation ¶
Index ¶
- Variables
- type AnomalyDetection
- func (me *AnomalyDetection) MarshalHCL(properties hcl.Properties) error
- func (me *AnomalyDetection) MarshalJSON() ([]byte, error)
- func (me *AnomalyDetection) Schema() map[string]*schema.Schema
- func (me *AnomalyDetection) UnmarshalHCL(decoder hcl.Decoder) error
- func (me *AnomalyDetection) UnmarshalJSON(data []byte) error
- type DiskNameFilter
- type Metric
- type Operator
- type TagFilters
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) 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) UnmarshalHCL ¶
func (me *DiskNameFilter) UnmarshalHCL(decoder hcl.Decoder) error
type TagFilters ¶
func (TagFilters) MarshalHCL ¶
func (me TagFilters) MarshalHCL(properties hcl.Properties) error
func (*TagFilters) UnmarshalHCL ¶
func (me *TagFilters) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.