rules

package
v1.47.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Attributess = struct {
	PgName                Attributes
	PgTag                 Attributes
	ServiceManagementZone Attributes
	ServiceName           Attributes
	ServiceTag            Attributes
	ServiceType           Attributes
}{
	"PG_NAME",
	"PG_TAG",
	"SERVICE_MANAGEMENT_ZONE",
	"SERVICE_NAME",
	"SERVICE_TAG",
	"SERVICE_TYPE",
}
View Source
var ServiceTypess = struct {
	Amp                  ServiceTypes
	Cics                 ServiceTypes
	Cicsinteraction      ServiceTypes
	Customapplication    ServiceTypes
	Database             ServiceTypes
	Enterpriseservicebus ServiceTypes
	External             ServiceTypes
	Ims                  ServiceTypes
	Imsinteraction       ServiceTypes
	Messaging            ServiceTypes
	Method               ServiceTypes
	Mobile               ServiceTypes
	Process              ServiceTypes
	Queueinteraction     ServiceTypes
	Queuelistener        ServiceTypes
	Remotecall           ServiceTypes
	Rmi                  ServiceTypes
	Saasvendor           ServiceTypes
	Webrequest           ServiceTypes
	Webservice           ServiceTypes
	Website              ServiceTypes
	Zosconnect           ServiceTypes
}{
	"AMP",
	"CICS",
	"CICSInteraction",
	"CustomApplication",
	"Database",
	"EnterpriseServiceBus",
	"External",
	"IMS",
	"IMSInteraction",
	"Messaging",
	"Method",
	"Mobile",
	"Process",
	"QueueInteraction",
	"QueueListener",
	"RemoteCall",
	"RMI",
	"SaasVendor",
	"WebRequest",
	"WebService",
	"WebSite",
	"zOSConnect",
}

Functions

This section is empty.

Types

type Attributes

type Attributes string

type Condition

type Condition struct {
	Attribute Attributes `json:"attribute"` // Possible Values: `PG_NAME`, `PG_TAG`, `SERVICE_MANAGEMENT_ZONE`, `SERVICE_NAME`, `SERVICE_TAG`, `SERVICE_TYPE`
	Predicate *Predicate `json:"predicate"` // Condition to check the attribute against
}

func (*Condition) MarshalHCL

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

func (*Condition) Schema

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

func (*Condition) UnmarshalHCL

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

type Conditions

type Conditions []*Condition

func (Conditions) MarshalHCL

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

func (*Conditions) Schema

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

func (*Conditions) UnmarshalHCL

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

type Predicate

type Predicate struct {
	CaseSensitive   *bool          `json:"caseSensitive,omitempty"`   // Case sensitive
	ManagementZones []string       `json:"managementZones,omitempty"` // Management zones
	PredicateType   string         `json:"predicateType"`             // Predicate type
	ServiceType     []ServiceTypes `json:"serviceType,omitempty"`     // Service types
	TagKeys         []string       `json:"tagKeys,omitempty"`         // Tag keys
	Tags            []string       `json:"tags,omitempty"`            // Tags (exact match)
	TextValues      []string       `json:"textValues,omitempty"`      // Names
}

func (*Predicate) HandlePreconditions

func (me *Predicate) HandlePreconditions()

func (*Predicate) MarshalHCL

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

func (*Predicate) Schema

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

func (*Predicate) UnmarshalHCL

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

type ServiceTypes

type ServiceTypes string

type Settings

type Settings struct {
	Conditions  Conditions `json:"conditions"`            // Conditions
	Description *string    `json:"description,omitempty"` // Rule description
	Enabled     bool       `json:"enabled"`               // This setting is enabled (`true`) or disabled (`false`)
	RuleName    string     `json:"name"`                  // Rule name
	ParameterID string     `json:"parameterId"`           // Failure detection parameters
}

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