dynatrace.FailureDetectionRules
Explore with Pulumi AI
Create FailureDetectionRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FailureDetectionRules(name: string, args: FailureDetectionRulesArgs, opts?: CustomResourceOptions);
@overload
def FailureDetectionRules(resource_name: str,
args: FailureDetectionRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FailureDetectionRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
conditions: Optional[FailureDetectionRulesConditionsArgs] = None,
enabled: Optional[bool] = None,
parameter_id: Optional[str] = None,
description: Optional[str] = None,
insert_after: Optional[str] = None,
name: Optional[str] = None)
func NewFailureDetectionRules(ctx *Context, name string, args FailureDetectionRulesArgs, opts ...ResourceOption) (*FailureDetectionRules, error)
public FailureDetectionRules(string name, FailureDetectionRulesArgs args, CustomResourceOptions? opts = null)
public FailureDetectionRules(String name, FailureDetectionRulesArgs args)
public FailureDetectionRules(String name, FailureDetectionRulesArgs args, CustomResourceOptions options)
type: dynatrace:FailureDetectionRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. FailureDetectionRulesArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. FailureDetectionRulesArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. FailureDetectionRulesArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. FailureDetectionRulesArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. FailureDetectionRulesArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var failureDetectionRulesResource = new Dynatrace.FailureDetectionRules("failureDetectionRulesResource", new()
{
Conditions = new Dynatrace.Inputs.FailureDetectionRulesConditionsArgs
{
Conditions = new[]
{
new Dynatrace.Inputs.FailureDetectionRulesConditionsConditionArgs
{
Attribute = "string",
Predicate = new Dynatrace.Inputs.FailureDetectionRulesConditionsConditionPredicateArgs
{
PredicateType = "string",
CaseSensitive = false,
ManagementZones = new[]
{
"string",
},
ServiceTypes = new[]
{
"string",
},
TagKeys = new[]
{
"string",
},
Tags = new[]
{
"string",
},
TextValues = new[]
{
"string",
},
},
},
},
},
Enabled = false,
ParameterId = "string",
Description = "string",
InsertAfter = "string",
Name = "string",
});
example, err := dynatrace.NewFailureDetectionRules(ctx, "failureDetectionRulesResource", &dynatrace.FailureDetectionRulesArgs{
Conditions: &dynatrace.FailureDetectionRulesConditionsArgs{
Conditions: dynatrace.FailureDetectionRulesConditionsConditionArray{
&dynatrace.FailureDetectionRulesConditionsConditionArgs{
Attribute: pulumi.String("string"),
Predicate: &dynatrace.FailureDetectionRulesConditionsConditionPredicateArgs{
PredicateType: pulumi.String("string"),
CaseSensitive: pulumi.Bool(false),
ManagementZones: pulumi.StringArray{
pulumi.String("string"),
},
ServiceTypes: pulumi.StringArray{
pulumi.String("string"),
},
TagKeys: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TextValues: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
Enabled: pulumi.Bool(false),
ParameterId: pulumi.String("string"),
Description: pulumi.String("string"),
InsertAfter: pulumi.String("string"),
Name: pulumi.String("string"),
})
var failureDetectionRulesResource = new FailureDetectionRules("failureDetectionRulesResource", FailureDetectionRulesArgs.builder()
.conditions(FailureDetectionRulesConditionsArgs.builder()
.conditions(FailureDetectionRulesConditionsConditionArgs.builder()
.attribute("string")
.predicate(FailureDetectionRulesConditionsConditionPredicateArgs.builder()
.predicateType("string")
.caseSensitive(false)
.managementZones("string")
.serviceTypes("string")
.tagKeys("string")
.tags("string")
.textValues("string")
.build())
.build())
.build())
.enabled(false)
.parameterId("string")
.description("string")
.insertAfter("string")
.name("string")
.build());
failure_detection_rules_resource = dynatrace.FailureDetectionRules("failureDetectionRulesResource",
conditions={
"conditions": [{
"attribute": "string",
"predicate": {
"predicate_type": "string",
"case_sensitive": False,
"management_zones": ["string"],
"service_types": ["string"],
"tag_keys": ["string"],
"tags": ["string"],
"text_values": ["string"],
},
}],
},
enabled=False,
parameter_id="string",
description="string",
insert_after="string",
name="string")
const failureDetectionRulesResource = new dynatrace.FailureDetectionRules("failureDetectionRulesResource", {
conditions: {
conditions: [{
attribute: "string",
predicate: {
predicateType: "string",
caseSensitive: false,
managementZones: ["string"],
serviceTypes: ["string"],
tagKeys: ["string"],
tags: ["string"],
textValues: ["string"],
},
}],
},
enabled: false,
parameterId: "string",
description: "string",
insertAfter: "string",
name: "string",
});
type: dynatrace:FailureDetectionRules
properties:
conditions:
conditions:
- attribute: string
predicate:
caseSensitive: false
managementZones:
- string
predicateType: string
serviceTypes:
- string
tagKeys:
- string
tags:
- string
textValues:
- string
description: string
enabled: false
insertAfter: string
name: string
parameterId: string
FailureDetectionRules Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FailureDetectionRules resource accepts the following input properties:
- Conditions
This property is required. Pulumiverse.Dynatrace. Inputs. Failure Detection Rules Conditions - Conditions
- Enabled
This property is required. bool - This setting is enabled (
true
) or disabled (false
) - Parameter
Id This property is required. string - Failure detection parameters
- Description string
- Rule description
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Name string
- Rule name
- Conditions
This property is required. FailureDetection Rules Conditions Args - Conditions
- Enabled
This property is required. bool - This setting is enabled (
true
) or disabled (false
) - Parameter
Id This property is required. string - Failure detection parameters
- Description string
- Rule description
- Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Name string
- Rule name
- conditions
This property is required. FailureDetection Rules Conditions - Conditions
- enabled
This property is required. Boolean - This setting is enabled (
true
) or disabled (false
) - parameter
Id This property is required. String - Failure detection parameters
- description String
- Rule description
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name String
- Rule name
- conditions
This property is required. FailureDetection Rules Conditions - Conditions
- enabled
This property is required. boolean - This setting is enabled (
true
) or disabled (false
) - parameter
Id This property is required. string - Failure detection parameters
- description string
- Rule description
- insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name string
- Rule name
- conditions
This property is required. FailureDetection Rules Conditions Args - Conditions
- enabled
This property is required. bool - This setting is enabled (
true
) or disabled (false
) - parameter_
id This property is required. str - Failure detection parameters
- description str
- Rule description
- insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name str
- Rule name
- conditions
This property is required. Property Map - Conditions
- enabled
This property is required. Boolean - This setting is enabled (
true
) or disabled (false
) - parameter
Id This property is required. String - Failure detection parameters
- description String
- Rule description
- insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name String
- Rule name
Outputs
All input properties are implicitly available as output properties. Additionally, the FailureDetectionRules resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FailureDetectionRules Resource
Get an existing FailureDetectionRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FailureDetectionRulesState, opts?: CustomResourceOptions): FailureDetectionRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conditions: Optional[FailureDetectionRulesConditionsArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
insert_after: Optional[str] = None,
name: Optional[str] = None,
parameter_id: Optional[str] = None) -> FailureDetectionRules
func GetFailureDetectionRules(ctx *Context, name string, id IDInput, state *FailureDetectionRulesState, opts ...ResourceOption) (*FailureDetectionRules, error)
public static FailureDetectionRules Get(string name, Input<string> id, FailureDetectionRulesState? state, CustomResourceOptions? opts = null)
public static FailureDetectionRules get(String name, Output<String> id, FailureDetectionRulesState state, CustomResourceOptions options)
resources: _: type: dynatrace:FailureDetectionRules get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Conditions
Pulumiverse.
Dynatrace. Inputs. Failure Detection Rules Conditions - Conditions
- Description string
- Rule description
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Name string
- Rule name
- Parameter
Id string - Failure detection parameters
- Conditions
Failure
Detection Rules Conditions Args - Conditions
- Description string
- Rule description
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Name string
- Rule name
- Parameter
Id string - Failure detection parameters
- conditions
Failure
Detection Rules Conditions - Conditions
- description String
- Rule description
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name String
- Rule name
- parameter
Id String - Failure detection parameters
- conditions
Failure
Detection Rules Conditions - Conditions
- description string
- Rule description
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name string
- Rule name
- parameter
Id string - Failure detection parameters
- conditions
Failure
Detection Rules Conditions Args - Conditions
- description str
- Rule description
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name str
- Rule name
- parameter_
id str - Failure detection parameters
- conditions Property Map
- Conditions
- description String
- Rule description
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- name String
- Rule name
- parameter
Id String - Failure detection parameters
Supporting Types
FailureDetectionRulesConditions, FailureDetectionRulesConditionsArgs
- Conditions
This property is required. List<Pulumiverse.Dynatrace. Inputs. Failure Detection Rules Conditions Condition>
- Conditions
This property is required. []FailureDetection Rules Conditions Condition
- conditions
This property is required. List<FailureDetection Rules Conditions Condition>
- conditions
This property is required. FailureDetection Rules Conditions Condition[]
- conditions
This property is required. Sequence[FailureDetection Rules Conditions Condition]
- conditions
This property is required. List<Property Map>
FailureDetectionRulesConditionsCondition, FailureDetectionRulesConditionsConditionArgs
- Attribute
This property is required. string - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- Predicate
This property is required. Pulumiverse.Dynatrace. Inputs. Failure Detection Rules Conditions Condition Predicate - Condition to check the attribute against
- Attribute
This property is required. string - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- Predicate
This property is required. FailureDetection Rules Conditions Condition Predicate - Condition to check the attribute against
- attribute
This property is required. String - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- predicate
This property is required. FailureDetection Rules Conditions Condition Predicate - Condition to check the attribute against
- attribute
This property is required. string - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- predicate
This property is required. FailureDetection Rules Conditions Condition Predicate - Condition to check the attribute against
- attribute
This property is required. str - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- predicate
This property is required. FailureDetection Rules Conditions Condition Predicate - Condition to check the attribute against
- attribute
This property is required. String - Possible Values:
PG_NAME
,PG_TAG
,SERVICE_MANAGEMENT_ZONE
,SERVICE_NAME
,SERVICE_TAG
,SERVICE_TYPE
- predicate
This property is required. Property Map - Condition to check the attribute against
FailureDetectionRulesConditionsConditionPredicate, FailureDetectionRulesConditionsConditionPredicateArgs
- Predicate
Type This property is required. string - Predicate type
- Case
Sensitive bool - Case sensitive
- Management
Zones List<string> - Management zones
- Service
Types List<string> - Service types
- Tag
Keys List<string> - Tag keys
- List<string>
- Tags (exact match)
- Text
Values List<string> - Names
- Predicate
Type This property is required. string - Predicate type
- Case
Sensitive bool - Case sensitive
- Management
Zones []string - Management zones
- Service
Types []string - Service types
- Tag
Keys []string - Tag keys
- []string
- Tags (exact match)
- Text
Values []string - Names
- predicate
Type This property is required. String - Predicate type
- case
Sensitive Boolean - Case sensitive
- management
Zones List<String> - Management zones
- service
Types List<String> - Service types
- tag
Keys List<String> - Tag keys
- List<String>
- Tags (exact match)
- text
Values List<String> - Names
- predicate
Type This property is required. string - Predicate type
- case
Sensitive boolean - Case sensitive
- management
Zones string[] - Management zones
- service
Types string[] - Service types
- tag
Keys string[] - Tag keys
- string[]
- Tags (exact match)
- text
Values string[] - Names
- predicate_
type This property is required. str - Predicate type
- case_
sensitive bool - Case sensitive
- management_
zones Sequence[str] - Management zones
- service_
types Sequence[str] - Service types
- tag_
keys Sequence[str] - Tag keys
- Sequence[str]
- Tags (exact match)
- text_
values Sequence[str] - Names
- predicate
Type This property is required. String - Predicate type
- case
Sensitive Boolean - Case sensitive
- management
Zones List<String> - Management zones
- service
Types List<String> - Service types
- tag
Keys List<String> - Tag keys
- List<String>
- Tags (exact match)
- text
Values List<String> - Names
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.