1. Packages
  2. Dynatrace
  3. API Docs
  4. FailureDetectionRules
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.FailureDetectionRules

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    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,
                              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 string
    The unique name of the resource.
    args FailureDetectionRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args FailureDetectionRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FailureDetectionRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FailureDetectionRulesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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",
        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"),
    	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")
        .name("string")
        .build());
    
    failure_detection_rules_resource = dynatrace.FailureDetectionRules("failureDetectionRulesResource",
        conditions=dynatrace.FailureDetectionRulesConditionsArgs(
            conditions=[dynatrace.FailureDetectionRulesConditionsConditionArgs(
                attribute="string",
                predicate=dynatrace.FailureDetectionRulesConditionsConditionPredicateArgs(
                    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",
        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",
        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
        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

    The FailureDetectionRules resource accepts the following input properties:

    Conditions Lbrlabs.PulumiPackage.Dynatrace.Inputs.FailureDetectionRulesConditions
    Conditions
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ParameterId string
    Failure detection parameters
    Description string
    Rule description
    Name string
    Rule name
    Conditions FailureDetectionRulesConditionsArgs
    Conditions
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ParameterId string
    Failure detection parameters
    Description string
    Rule description
    Name string
    Rule name
    conditions FailureDetectionRulesConditions
    Conditions
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    parameterId String
    Failure detection parameters
    description String
    Rule description
    name String
    Rule name
    conditions FailureDetectionRulesConditions
    Conditions
    enabled boolean
    This setting is enabled (true) or disabled (false)
    parameterId string
    Failure detection parameters
    description string
    Rule description
    name string
    Rule name
    conditions FailureDetectionRulesConditionsArgs
    Conditions
    enabled bool
    This setting is enabled (true) or disabled (false)
    parameter_id str
    Failure detection parameters
    description str
    Rule description
    name str
    Rule name
    conditions Property Map
    Conditions
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    parameterId String
    Failure detection parameters
    description String
    Rule description
    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,
            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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    The following state arguments are supported:
    Conditions Lbrlabs.PulumiPackage.Dynatrace.Inputs.FailureDetectionRulesConditions
    Conditions
    Description string
    Rule description
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Rule name
    ParameterId string
    Failure detection parameters
    Conditions FailureDetectionRulesConditionsArgs
    Conditions
    Description string
    Rule description
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Rule name
    ParameterId string
    Failure detection parameters
    conditions FailureDetectionRulesConditions
    Conditions
    description String
    Rule description
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Rule name
    parameterId String
    Failure detection parameters
    conditions FailureDetectionRulesConditions
    Conditions
    description string
    Rule description
    enabled boolean
    This setting is enabled (true) or disabled (false)
    name string
    Rule name
    parameterId string
    Failure detection parameters
    conditions FailureDetectionRulesConditionsArgs
    Conditions
    description str
    Rule description
    enabled bool
    This setting is enabled (true) or disabled (false)
    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)
    name String
    Rule name
    parameterId String
    Failure detection parameters

    Supporting Types

    FailureDetectionRulesConditions, FailureDetectionRulesConditionsArgs

    FailureDetectionRulesConditionsCondition, FailureDetectionRulesConditionsConditionArgs

    FailureDetectionRulesConditionsConditionPredicate, FailureDetectionRulesConditionsConditionPredicateArgs

    PredicateType string
    CaseSensitive bool
    ManagementZones List<string>
    ServiceTypes List<string>
    TagKeys List<string>
    Tags List<string>
    TextValues List<string>
    PredicateType string
    CaseSensitive bool
    ManagementZones []string
    ServiceTypes []string
    TagKeys []string
    Tags []string
    TextValues []string
    predicateType String
    caseSensitive Boolean
    managementZones List<String>
    serviceTypes List<String>
    tagKeys List<String>
    tags List<String>
    textValues List<String>
    predicateType string
    caseSensitive boolean
    managementZones string[]
    serviceTypes string[]
    tagKeys string[]
    tags string[]
    textValues string[]
    predicate_type str
    case_sensitive bool
    management_zones Sequence[str]
    service_types Sequence[str]
    tag_keys Sequence[str]
    tags Sequence[str]
    text_values Sequence[str]
    predicateType String
    caseSensitive Boolean
    managementZones List<String>
    serviceTypes List<String>
    tagKeys List<String>
    tags List<String>
    textValues List<String>

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs