managementzones

package
v1.72.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Applications = struct {
	Any    Application
	Log    Application
	Metric Application
}{
	"ANY",
	"LOG",
	"METRIC",
}

Applications offers the known enum values

View Source
var ConditionTypes = struct {
	Dimension   ConditionType
	LogFileName ConditionType
	MetricKey   ConditionType
}{
	"DIMENSION",
	"LOG_FILE_NAME",
	"METRIC_KEY",
}

ConditionTypes offers the known enum values

View Source
var PropagationTypes = struct {
	AzureToPg                       PropagationType
	AzureToService                  PropagationType
	CustomDeviceGroupToCustomDevice PropagationType
	HostToProcessGroupInstance      PropagationType
	ProcessGroupToHost              PropagationType
	ProcessGroupToService           PropagationType
	ServiceToHostLike               PropagationType
	ServiceToProcessGroupLike       PropagationType
}{
	"AZURE_TO_PG",
	"AZURE_TO_SERVICE",
	"CUSTOM_DEVICE_GROUP_TO_CUSTOM_DEVICE",
	"HOST_TO_PROCESS_GROUP_INSTANCE",
	"PROCESS_GROUP_TO_HOST",
	"PROCESS_GROUP_TO_SERVICE",
	"SERVICE_TO_HOST_LIKE",
	"SERVICE_TO_PROCESS_GROUP_LIKE",
}

PropagationTypes offers the known enum values

View Source
var RuleMatchers = struct {
	BeginsWith RuleMatcher
	Equals     RuleMatcher
}{
	"BEGINS_WITH",
	"EQUALS",
}

RuleMatchers offers the known enum values

View Source
var RuleTypes = struct {
	AppMonServer                 RuleType
	AppMonSystemProfile          RuleType
	AWSAccount                   RuleType
	AWSApplicationLoadBalancer   RuleType
	AWSAutoScalingGroup          RuleType
	AWSClassicLoadBalancer       RuleType
	AWSNetworkLoadBalancer       RuleType
	AWSRelationalDatabaseService RuleType
	Azure                        RuleType
	BrowserMonitor               RuleType
	CloudApplication             RuleType
	CloudApplicationNamespace    RuleType
	CloudFoundryFoundation       RuleType
	CustomApplication            RuleType
	CustomDevice                 RuleType
	CustomDeviceGroup            RuleType
	DataCenterService            RuleType
	EnterpriseApplication        RuleType
	ESXIHost                     RuleType
	ExternalMonitor              RuleType
	Host                         RuleType
	HostGroup                    RuleType
	HTTPMonitor                  RuleType
	KubernetesCluster            RuleType
	MobileApplication            RuleType
	OpenStackAccount             RuleType
	ProcessGroup                 RuleType
	Service                      RuleType
	WebApplication               RuleType
}{
	"APPMON_SERVER",
	"APPMON_SYSTEM_PROFILE",
	"AWS_ACCOUNT",
	"AWS_APPLICATION_LOAD_BALANCER",
	"AWS_AUTO_SCALING_GROUP",
	"AWS_CLASSIC_LOAD_BALANCER",
	"AWS_NETWORK_LOAD_BALANCER",
	"AWS_RELATIONAL_DATABASE_SERVICE",
	"AZURE",
	"BROWSER_MONITOR",
	"CLOUD_APPLICATION",
	"CLOUD_APPLICATION_NAMESPACE",
	"CLOUD_FOUNDRY_FOUNDATION",
	"CUSTOM_APPLICATION",
	"CUSTOM_DEVICE",
	"CUSTOM_DEVICE_GROUP",
	"DATA_CENTER_SERVICE",
	"ENTERPRISE_APPLICATION",
	"ESXI_HOST",
	"EXTERNAL_MONITOR",
	"HOST",
	"HOST_GROUP",
	"HTTP_MONITOR",
	"KUBERNETES_CLUSTER",
	"MOBILE_APPLICATION",
	"OPENSTACK_ACCOUNT",
	"PROCESS_GROUP",
	"SERVICE",
	"WEB_APPLICATION",
}

RuleTypes offers the known enum values

Functions

This section is empty.

Types

type Application

type Application string

Application The value to compare to.

func (Application) Ref

func (v Application) Ref() *Application

func (*Application) String

func (v *Application) String() string

type ConditionType

type ConditionType string

ConditionType The value to compare to.

func (ConditionType) Ref

func (v ConditionType) Ref() *ConditionType

func (*ConditionType) String

func (v *ConditionType) String() string

type DimensionalRule

type DimensionalRule struct {
	Enabled    *bool                       `json:"enabled"`    // The rule is enabled (`true`) or disabled (`false`)
	AppliesTo  Application                 `json:"appliesTo"`  // The target of the rule
	Conditions []*DimensionalRuleCondition `json:"conditions"` // A list of conditions for the management zone. \n\n The management zone applies only if **all** conditions are fulfilled
	Unknowns   map[string]json.RawMessage  `json:"-"`
}

DimensionalRule represents the dimensional rule of the management zone usage. It defines how the management zone applies. Each rule is evaluated independently of all other rules

func (*DimensionalRule) MarshalHCL

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

func (*DimensionalRule) MarshalJSON

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

func (*DimensionalRule) Schema

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

func (*DimensionalRule) UnmarshalHCL

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

func (*DimensionalRule) UnmarshalJSON

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

type DimensionalRuleCondition

type DimensionalRuleCondition struct {
	Type     ConditionType              `json:"conditionType"`   // The type of the condition
	Match    RuleMatcher                `json:"ruleMatcher"`     // How we compare the values
	Key      string                     `json:"key"`             // The reference value for comparison. For conditions of the `DIMENSION` type, specify the key here
	Value    *string                    `json:"value,omitempty"` // The value of the dimension. Only applicable when the **conditionType** is set to `DIMENSION`
	Unknowns map[string]json.RawMessage `json:"-"`
}

func (*DimensionalRuleCondition) MarshalHCL

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

func (*DimensionalRuleCondition) MarshalJSON

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

func (*DimensionalRuleCondition) Schema

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

func (*DimensionalRuleCondition) UnmarshalHCL

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

func (*DimensionalRuleCondition) UnmarshalJSON

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

type EntitySelectorBasedRule

type EntitySelectorBasedRule struct {
	Enabled  *bool                      `json:"enabled,omitempty"` // The rule is enabled (`true`) or disabled (`false`)
	Selector string                     `json:"entitySelector"`    // The entity selector string, by which the entities are selected
	Unknowns map[string]json.RawMessage `json:"-"`
}

EntitySelectorBasedRule is an entity-selector-based rule for management zone usage. It allows adding entities to a management zone via an entity selector

func (*EntitySelectorBasedRule) MarshalHCL

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

func (*EntitySelectorBasedRule) MarshalJSON

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

func (*EntitySelectorBasedRule) Schema

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

func (*EntitySelectorBasedRule) UnmarshalHCL

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

func (*EntitySelectorBasedRule) UnmarshalJSON

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

type ManagementZone

type ManagementZone struct {
	Description              *string                    `json:"description,omitempty"`              // The description of the management zone
	Name                     string                     `json:"name"`                               // The name of the management zone.
	Rules                    []*Rule                    `json:"rules,omitempty"`                    // A list of rules for management zone usage. Each rule is evaluated independently of all other rules.
	DimensionalRules         []*DimensionalRule         `json:"dimensionalRules,omitempty"`         // A list of dimensional data rules for management zone usage. If several rules are specified, the **OR** logic applies
	EntitySelectorBasedRules []*EntitySelectorBasedRule `json:"entitySelectorBasedRules,omitempty"` // A list of entity-selector based rules for management zone usage. If several rules are specified, the **OR** logic applies
	Unknowns                 map[string]json.RawMessage `json:"-"`
}

ManagementZone The configuration of the management zone. It defines how the management zone applies.

func (*ManagementZone) Deprecated added in v1.36.0

func (me *ManagementZone) Deprecated() string

func (*ManagementZone) MarshalHCL

func (mz *ManagementZone) MarshalHCL(properties hcl.Properties) error

func (*ManagementZone) MarshalJSON

func (mz *ManagementZone) MarshalJSON() ([]byte, error)

func (*ManagementZone) Schema

func (mz *ManagementZone) Schema() map[string]*schema.Schema

func (*ManagementZone) UnmarshalHCL

func (mz *ManagementZone) UnmarshalHCL(decoder hcl.Decoder) error

func (*ManagementZone) UnmarshalJSON

func (mz *ManagementZone) UnmarshalJSON(data []byte) error

func (*ManagementZone) Validate

func (mz *ManagementZone) Validate() []string

type PropagationType

type PropagationType string

PropagationType has no documentation

type Rule

type Rule struct {
	Conditions       []*entityruleengine.Condition `json:"conditions"`                 // A list of matching rules for the management zone.  The management zone applies only if **all** conditions are fulfilled.
	Enabled          bool                          `json:"enabled"`                    // The rule is enabled (`true`) or disabled (`false`).
	PropagationTypes []PropagationType             `json:"propagationTypes,omitempty"` // How to apply the management zone to underlying entities:  * `SERVICE_TO_HOST_LIKE`: Apply to underlying hosts of matching services\n   - `SERVICE_TO_PROCESS_GROUP_LIKE`: Apply to underlying process groups of matching services\n   - `PROCESS_GROUP_TO_HOST`: Apply to underlying hosts of matching process groups\n   - `PROCESS_GROUP_TO_SERVICE`: Apply to all services provided by matching process groups\n   - `HOST_TO_PROCESS_GROUP_INSTANCE`: Apply to processes running on matching hosts\n   - `CUSTOM_DEVICE_GROUP_TO_CUSTOM_DEVICE`: Apply to custom devices in matching custom device groups\n   - `AZURE_TO_PG`: Apply to process groups connected to matching Azure entities\n   - `AZURE_TO_SERVICE`: Apply to services provided by matching Azure entities.
	Type             RuleType                      `json:"type"`                       // The type of Dynatrace entities the management zone can be applied to.
	Unknowns         map[string]json.RawMessage    `json:"-"`
}

Rule The rule of the management zone usage. It defines how the management zone applies. Each rule is evaluated independently of all other rules.

func (*Rule) MarshalHCL

func (mzr *Rule) MarshalHCL(properties hcl.Properties) error

func (*Rule) MarshalJSON

func (mzr *Rule) MarshalJSON() ([]byte, error)

func (*Rule) Schema

func (mzr *Rule) Schema() map[string]*schema.Schema

func (*Rule) SortConditions

func (mzr *Rule) SortConditions()

func (*Rule) UnmarshalHCL

func (mzr *Rule) UnmarshalHCL(decoder hcl.Decoder) error

func (*Rule) UnmarshalJSON

func (mzr *Rule) UnmarshalJSON(data []byte) error

func (*Rule) Validate

func (mzr *Rule) Validate() []string

type RuleMatcher

type RuleMatcher string

RuleMatcher The value to compare to.

func (RuleMatcher) Ref

func (v RuleMatcher) Ref() *RuleMatcher

func (*RuleMatcher) String

func (v *RuleMatcher) String() string

type RuleType

type RuleType string

RuleType The type of Dynatrace entities the management zone can be applied to.

Jump to

Keyboard shortcuts

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