rulesettings

package
v1.53.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionOperators = struct {
	Equals    ConditionOperator
	NotEquals ConditionOperator
}{
	"EQUALS",
	"NOT_EQUALS",
}
View Source
var MonitoringModes = struct {
	MonitoringOff MonitoringMode
	MonitoringOn  MonitoringMode
}{
	"MONITORING_OFF",
	"MONITORING_ON",
}
View Source
var Properties = struct {
	HostTag        Property
	ManagementZone Property
	ProcessTag     Property
}{
	"HOST_TAG",
	"MANAGEMENT_ZONE",
	"PROCESS_TAG",
}

Functions

This section is empty.

Types

type ConditionOperator

type ConditionOperator string

type FlagDefaultTrue

type FlagDefaultTrue struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*FlagDefaultTrue) MarshalHCL

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

func (*FlagDefaultTrue) Schema

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

func (*FlagDefaultTrue) UnmarshalHCL

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

type MonitoringMode

type MonitoringMode string

type Property

type Property string

type Settings

type Settings struct {
	Enabled  bool              `json:"enabled"`  // This setting is enabled (`true`) or disabled (`false`)
	Mode     MonitoringMode    `json:"mode"`     // Possible Values: `MONITORING_OFF`, `MONITORING_ON`
	Operator ConditionOperator `json:"operator"` // Possible Values: `EQUALS`, `NOT_EQUALS`
	Property Property          `json:"property"` // Possible Values: `HOST_TAG`, `MANAGEMENT_ZONE`, `PROCESS_TAG`
	Value    string            `json:"value"`    // Condition value
}

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

Jump to

Keyboard shortcuts

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