1. Packages
  2. Dynatrace
  3. API Docs
  4. DeclarativeGrouping
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.DeclarativeGrouping

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    Create DeclarativeGrouping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DeclarativeGrouping(name: string, args: DeclarativeGroupingArgs, opts?: CustomResourceOptions);
    @overload
    def DeclarativeGrouping(resource_name: str,
                            args: DeclarativeGroupingArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeclarativeGrouping(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            enabled: Optional[bool] = None,
                            detection: Optional[DeclarativeGroupingDetectionArgs] = None,
                            insert_after: Optional[str] = None,
                            name: Optional[str] = None,
                            scope: Optional[str] = None)
    func NewDeclarativeGrouping(ctx *Context, name string, args DeclarativeGroupingArgs, opts ...ResourceOption) (*DeclarativeGrouping, error)
    public DeclarativeGrouping(string name, DeclarativeGroupingArgs args, CustomResourceOptions? opts = null)
    public DeclarativeGrouping(String name, DeclarativeGroupingArgs args)
    public DeclarativeGrouping(String name, DeclarativeGroupingArgs args, CustomResourceOptions options)
    
    type: dynatrace:DeclarativeGrouping
    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 DeclarativeGroupingArgs
    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 DeclarativeGroupingArgs
    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 DeclarativeGroupingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeclarativeGroupingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeclarativeGroupingArgs
    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 declarativeGroupingResource = new Dynatrace.DeclarativeGrouping("declarativeGroupingResource", new()
    {
        Enabled = false,
        Detection = new Dynatrace.Inputs.DeclarativeGroupingDetectionArgs
        {
            ProcessDefinitions = new[]
            {
                new Dynatrace.Inputs.DeclarativeGroupingDetectionProcessDefinitionArgs
                {
                    Id = "string",
                    ProcessGroupName = "string",
                    Report = "string",
                    Rules = new Dynatrace.Inputs.DeclarativeGroupingDetectionProcessDefinitionRulesArgs
                    {
                        Rules = new[]
                        {
                            new Dynatrace.Inputs.DeclarativeGroupingDetectionProcessDefinitionRulesRuleArgs
                            {
                                Condition = "string",
                                Property = "string",
                            },
                        },
                    },
                },
            },
        },
        InsertAfter = "string",
        Name = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewDeclarativeGrouping(ctx, "declarativeGroupingResource", &dynatrace.DeclarativeGroupingArgs{
    	Enabled: pulumi.Bool(false),
    	Detection: &dynatrace.DeclarativeGroupingDetectionArgs{
    		ProcessDefinitions: dynatrace.DeclarativeGroupingDetectionProcessDefinitionArray{
    			&dynatrace.DeclarativeGroupingDetectionProcessDefinitionArgs{
    				Id:               pulumi.String("string"),
    				ProcessGroupName: pulumi.String("string"),
    				Report:           pulumi.String("string"),
    				Rules: &dynatrace.DeclarativeGroupingDetectionProcessDefinitionRulesArgs{
    					Rules: dynatrace.DeclarativeGroupingDetectionProcessDefinitionRulesRuleArray{
    						&dynatrace.DeclarativeGroupingDetectionProcessDefinitionRulesRuleArgs{
    							Condition: pulumi.String("string"),
    							Property:  pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    	InsertAfter: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Scope:       pulumi.String("string"),
    })
    
    var declarativeGroupingResource = new DeclarativeGrouping("declarativeGroupingResource", DeclarativeGroupingArgs.builder()
        .enabled(false)
        .detection(DeclarativeGroupingDetectionArgs.builder()
            .processDefinitions(DeclarativeGroupingDetectionProcessDefinitionArgs.builder()
                .id("string")
                .processGroupName("string")
                .report("string")
                .rules(DeclarativeGroupingDetectionProcessDefinitionRulesArgs.builder()
                    .rules(DeclarativeGroupingDetectionProcessDefinitionRulesRuleArgs.builder()
                        .condition("string")
                        .property("string")
                        .build())
                    .build())
                .build())
            .build())
        .insertAfter("string")
        .name("string")
        .scope("string")
        .build());
    
    declarative_grouping_resource = dynatrace.DeclarativeGrouping("declarativeGroupingResource",
        enabled=False,
        detection=dynatrace.DeclarativeGroupingDetectionArgs(
            process_definitions=[dynatrace.DeclarativeGroupingDetectionProcessDefinitionArgs(
                id="string",
                process_group_name="string",
                report="string",
                rules=dynatrace.DeclarativeGroupingDetectionProcessDefinitionRulesArgs(
                    rules=[dynatrace.DeclarativeGroupingDetectionProcessDefinitionRulesRuleArgs(
                        condition="string",
                        property="string",
                    )],
                ),
            )],
        ),
        insert_after="string",
        name="string",
        scope="string")
    
    const declarativeGroupingResource = new dynatrace.DeclarativeGrouping("declarativeGroupingResource", {
        enabled: false,
        detection: {
            processDefinitions: [{
                id: "string",
                processGroupName: "string",
                report: "string",
                rules: {
                    rules: [{
                        condition: "string",
                        property: "string",
                    }],
                },
            }],
        },
        insertAfter: "string",
        name: "string",
        scope: "string",
    });
    
    type: dynatrace:DeclarativeGrouping
    properties:
        detection:
            processDefinitions:
                - id: string
                  processGroupName: string
                  report: string
                  rules:
                    rules:
                        - condition: string
                          property: string
        enabled: false
        insertAfter: string
        name: string
        scope: string
    

    DeclarativeGrouping 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 DeclarativeGrouping resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Detection Pulumiverse.Dynatrace.Inputs.DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    InsertAfter 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
    Monitored technology name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Detection DeclarativeGroupingDetectionArgs
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    InsertAfter 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
    Monitored technology name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    detection DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    insertAfter 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
    Monitored technology name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    detection DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    insertAfter 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
    Monitored technology name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    detection DeclarativeGroupingDetectionArgs
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    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
    Monitored technology name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    detection Property Map
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    insertAfter 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
    Monitored technology name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DeclarativeGrouping 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 DeclarativeGrouping Resource

    Get an existing DeclarativeGrouping 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?: DeclarativeGroupingState, opts?: CustomResourceOptions): DeclarativeGrouping
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            detection: Optional[DeclarativeGroupingDetectionArgs] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            name: Optional[str] = None,
            scope: Optional[str] = None) -> DeclarativeGrouping
    func GetDeclarativeGrouping(ctx *Context, name string, id IDInput, state *DeclarativeGroupingState, opts ...ResourceOption) (*DeclarativeGrouping, error)
    public static DeclarativeGrouping Get(string name, Input<string> id, DeclarativeGroupingState? state, CustomResourceOptions? opts = null)
    public static DeclarativeGrouping get(String name, Output<String> id, DeclarativeGroupingState 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:
    Detection Pulumiverse.Dynatrace.Inputs.DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter 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
    Monitored technology name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Detection DeclarativeGroupingDetectionArgs
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter 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
    Monitored technology name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    detection DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter 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
    Monitored technology name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    detection DeclarativeGroupingDetection
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    insertAfter 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
    Monitored technology name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    detection DeclarativeGroupingDetectionArgs
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    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
    Monitored technology name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    detection Property Map
    Enter a descriptive process group display name and a unique identifier that Dynatrace can use to recognize this process group.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter 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
    Monitored technology name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Supporting Types

    DeclarativeGroupingDetection, DeclarativeGroupingDetectionArgs

    DeclarativeGroupingDetectionProcessDefinition, DeclarativeGroupingDetectionProcessDefinitionArgs

    Id string
    Process group identifier
    ProcessGroupName string
    This identifier is used by Dynatrace to recognize this process group.
    Report string
    Possible Values: never, always, highResourceUsage
    Rules Pulumiverse.Dynatrace.Inputs.DeclarativeGroupingDetectionProcessDefinitionRules
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.
    Id string
    Process group identifier
    ProcessGroupName string
    This identifier is used by Dynatrace to recognize this process group.
    Report string
    Possible Values: never, always, highResourceUsage
    Rules DeclarativeGroupingDetectionProcessDefinitionRules
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.
    id String
    Process group identifier
    processGroupName String
    This identifier is used by Dynatrace to recognize this process group.
    report String
    Possible Values: never, always, highResourceUsage
    rules DeclarativeGroupingDetectionProcessDefinitionRules
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.
    id string
    Process group identifier
    processGroupName string
    This identifier is used by Dynatrace to recognize this process group.
    report string
    Possible Values: never, always, highResourceUsage
    rules DeclarativeGroupingDetectionProcessDefinitionRules
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.
    id str
    Process group identifier
    process_group_name str
    This identifier is used by Dynatrace to recognize this process group.
    report str
    Possible Values: never, always, highResourceUsage
    rules DeclarativeGroupingDetectionProcessDefinitionRules
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.
    id String
    Process group identifier
    processGroupName String
    This identifier is used by Dynatrace to recognize this process group.
    report String
    Possible Values: never, always, highResourceUsage
    rules Property Map
    Define process detection rules by selecting a process property and a condition. Each process group can have multiple detection rules associated with it.

    DeclarativeGroupingDetectionProcessDefinitionRules, DeclarativeGroupingDetectionProcessDefinitionRulesArgs

    DeclarativeGroupingDetectionProcessDefinitionRulesRule, DeclarativeGroupingDetectionProcessDefinitionRulesRuleArgs

    Condition string
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    Property string
    Possible Values: Executable, ExecutablePath, CommandLine
    Condition string
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    Property string
    Possible Values: Executable, ExecutablePath, CommandLine
    condition String
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    property String
    Possible Values: Executable, ExecutablePath, CommandLine
    condition string
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    property string
    Possible Values: Executable, ExecutablePath, CommandLine
    condition str
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    property str
    Possible Values: Executable, ExecutablePath, CommandLine
    condition String
    • $contains(svc) – Matches if svc appears anywhere in the process property value.
    • $eq(svc.exe) – Matches if svc.exe matches the process property value exactly.
    • $prefix(svc) – Matches if app matches the prefix of the process property value.
    • $suffix(svc.py) – Matches if svc.py matches the suffix of the process property value.

    For example, $suffix(svc.py) would detect processes named loyaltysvc.py and paymentssvc.py.

    For more details, see Declarative process grouping.

    property String
    Possible Values: Executable, ExecutablePath, CommandLine

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse