monitoringrule

package
v1.59.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionOperators = struct {
	Contains    ConditionOperator
	Ends        ConditionOperator
	Equals      ConditionOperator
	Exists      ConditionOperator
	NotContains ConditionOperator
	NotEnds     ConditionOperator
	NotEquals   ConditionOperator
	NotExists   ConditionOperator
	NotStarts   ConditionOperator
	Starts      ConditionOperator
}{
	"CONTAINS",
	"ENDS",
	"EQUALS",
	"EXISTS",
	"NOT_CONTAINS",
	"NOT_ENDS",
	"NOT_EQUALS",
	"NOT_EXISTS",
	"NOT_STARTS",
	"STARTS",
}
View Source
var ContainerItems = struct {
	ContainerName           ContainerItem
	ImageName               ContainerItem
	KubernetesBasepodname   ContainerItem
	KubernetesContainername ContainerItem
	KubernetesFullpodname   ContainerItem
	KubernetesNamespace     ContainerItem
	KubernetesPoduid        ContainerItem
}{
	"CONTAINER_NAME",
	"IMAGE_NAME",
	"KUBERNETES_BASEPODNAME",
	"KUBERNETES_CONTAINERNAME",
	"KUBERNETES_FULLPODNAME",
	"KUBERNETES_NAMESPACE",
	"KUBERNETES_PODUID",
}
View Source
var MonitoringModes = struct {
	MonitoringOff MonitoringMode
	MonitoringOn  MonitoringMode
}{
	"MONITORING_OFF",
	"MONITORING_ON",
}

Functions

This section is empty.

Types

type ConditionOperator

type ConditionOperator string

type ContainerCondition

type ContainerCondition struct {
	Operator ConditionOperator `json:"operator"`        // Possible Values: `CONTAINS`, `ENDS`, `EQUALS`, `EXISTS`, `NOT_CONTAINS`, `NOT_ENDS`, `NOT_EQUALS`, `NOT_EXISTS`, `NOT_STARTS`, `STARTS`
	Property ContainerItem     `json:"property"`        // Possible Values: `CONTAINER_NAME`, `IMAGE_NAME`, `KUBERNETES_BASEPODNAME`, `KUBERNETES_CONTAINERNAME`, `KUBERNETES_FULLPODNAME`, `KUBERNETES_NAMESPACE`, `KUBERNETES_PODUID`
	Value    *string           `json:"value,omitempty"` // Condition value
}

func (*ContainerCondition) MarshalHCL

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

func (*ContainerCondition) Schema

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

func (*ContainerCondition) UnmarshalHCL

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

type ContainerItem

type ContainerItem 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 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: `CONTAINS`, `ENDS`, `EQUALS`, `EXISTS`, `NOT_CONTAINS`, `NOT_ENDS`, `NOT_EQUALS`, `NOT_EXISTS`, `NOT_STARTS`, `STARTS`
	Property    ContainerItem     `json:"property"`        // Possible Values: `CONTAINER_NAME`, `IMAGE_NAME`, `KUBERNETES_BASEPODNAME`, `KUBERNETES_CONTAINERNAME`, `KUBERNETES_FULLPODNAME`, `KUBERNETES_NAMESPACE`, `KUBERNETES_PODUID`
	Value       *string           `json:"value,omitempty"` // Condition value
	InsertAfter string            `json:"-"`
}

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