1. Packages
  2. Dynatrace
  3. API Docs
  4. ProcessMonitoringRule
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.ProcessMonitoringRule

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create ProcessMonitoringRule Resource

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

    Constructor syntax

    new ProcessMonitoringRule(name: string, args: ProcessMonitoringRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ProcessMonitoringRule(resource_name: str,
                              args: ProcessMonitoringRuleArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProcessMonitoringRule(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              condition: Optional[ProcessMonitoringRuleConditionArgs] = None,
                              enabled: Optional[bool] = None,
                              mode: Optional[str] = None,
                              host_group_id: Optional[str] = None,
                              insert_after: Optional[str] = None)
    func NewProcessMonitoringRule(ctx *Context, name string, args ProcessMonitoringRuleArgs, opts ...ResourceOption) (*ProcessMonitoringRule, error)
    public ProcessMonitoringRule(string name, ProcessMonitoringRuleArgs args, CustomResourceOptions? opts = null)
    public ProcessMonitoringRule(String name, ProcessMonitoringRuleArgs args)
    public ProcessMonitoringRule(String name, ProcessMonitoringRuleArgs args, CustomResourceOptions options)
    
    type: dynatrace:ProcessMonitoringRule
    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 ProcessMonitoringRuleArgs
    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 ProcessMonitoringRuleArgs
    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 ProcessMonitoringRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProcessMonitoringRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProcessMonitoringRuleArgs
    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 processMonitoringRuleResource = new Dynatrace.ProcessMonitoringRule("processMonitoringRuleResource", new()
    {
        Condition = new Dynatrace.Inputs.ProcessMonitoringRuleConditionArgs
        {
            Item = "string",
            Operator = "string",
            EnvVar = "string",
            Value = "string",
        },
        Enabled = false,
        Mode = "string",
        HostGroupId = "string",
        InsertAfter = "string",
    });
    
    example, err := dynatrace.NewProcessMonitoringRule(ctx, "processMonitoringRuleResource", &dynatrace.ProcessMonitoringRuleArgs{
    	Condition: &dynatrace.ProcessMonitoringRuleConditionArgs{
    		Item:     pulumi.String("string"),
    		Operator: pulumi.String("string"),
    		EnvVar:   pulumi.String("string"),
    		Value:    pulumi.String("string"),
    	},
    	Enabled:     pulumi.Bool(false),
    	Mode:        pulumi.String("string"),
    	HostGroupId: pulumi.String("string"),
    	InsertAfter: pulumi.String("string"),
    })
    
    var processMonitoringRuleResource = new ProcessMonitoringRule("processMonitoringRuleResource", ProcessMonitoringRuleArgs.builder()
        .condition(ProcessMonitoringRuleConditionArgs.builder()
            .item("string")
            .operator("string")
            .envVar("string")
            .value("string")
            .build())
        .enabled(false)
        .mode("string")
        .hostGroupId("string")
        .insertAfter("string")
        .build());
    
    process_monitoring_rule_resource = dynatrace.ProcessMonitoringRule("processMonitoringRuleResource",
        condition={
            "item": "string",
            "operator": "string",
            "env_var": "string",
            "value": "string",
        },
        enabled=False,
        mode="string",
        host_group_id="string",
        insert_after="string")
    
    const processMonitoringRuleResource = new dynatrace.ProcessMonitoringRule("processMonitoringRuleResource", {
        condition: {
            item: "string",
            operator: "string",
            envVar: "string",
            value: "string",
        },
        enabled: false,
        mode: "string",
        hostGroupId: "string",
        insertAfter: "string",
    });
    
    type: dynatrace:ProcessMonitoringRule
    properties:
        condition:
            envVar: string
            item: string
            operator: string
            value: string
        enabled: false
        hostGroupId: string
        insertAfter: string
        mode: string
    

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

    Condition Pulumiverse.Dynatrace.Inputs.ProcessMonitoringRuleCondition
    Condition
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    Condition ProcessMonitoringRuleConditionArgs
    Condition
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    condition ProcessMonitoringRuleCondition
    Condition
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_ON, MONITORING_OFF
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    condition ProcessMonitoringRuleCondition
    Condition
    enabled boolean
    This setting is enabled (true) or disabled (false)
    mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    hostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    condition ProcessMonitoringRuleConditionArgs
    Condition
    enabled bool
    This setting is enabled (true) or disabled (false)
    mode str
    Possible Values: MONITORING_ON, MONITORING_OFF
    host_group_id str
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    condition Property Map
    Condition
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_ON, MONITORING_OFF
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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

    Outputs

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

    Get an existing ProcessMonitoringRule 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?: ProcessMonitoringRuleState, opts?: CustomResourceOptions): ProcessMonitoringRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition: Optional[ProcessMonitoringRuleConditionArgs] = None,
            enabled: Optional[bool] = None,
            host_group_id: Optional[str] = None,
            insert_after: Optional[str] = None,
            mode: Optional[str] = None) -> ProcessMonitoringRule
    func GetProcessMonitoringRule(ctx *Context, name string, id IDInput, state *ProcessMonitoringRuleState, opts ...ResourceOption) (*ProcessMonitoringRule, error)
    public static ProcessMonitoringRule Get(string name, Input<string> id, ProcessMonitoringRuleState? state, CustomResourceOptions? opts = null)
    public static ProcessMonitoringRule get(String name, Output<String> id, ProcessMonitoringRuleState 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:
    Condition Pulumiverse.Dynatrace.Inputs.ProcessMonitoringRuleCondition
    Condition
    Enabled bool
    This setting is enabled (true) or disabled (false)
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    Mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    Condition ProcessMonitoringRuleConditionArgs
    Condition
    Enabled bool
    This setting is enabled (true) or disabled (false)
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    Mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    condition ProcessMonitoringRuleCondition
    Condition
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    mode String
    Possible Values: MONITORING_ON, MONITORING_OFF
    condition ProcessMonitoringRuleCondition
    Condition
    enabled boolean
    This setting is enabled (true) or disabled (false)
    hostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    mode string
    Possible Values: MONITORING_ON, MONITORING_OFF
    condition ProcessMonitoringRuleConditionArgs
    Condition
    enabled bool
    This setting is enabled (true) or disabled (false)
    host_group_id str
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    mode str
    Possible Values: MONITORING_ON, MONITORING_OFF
    condition Property Map
    Condition
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope
    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
    mode String
    Possible Values: MONITORING_ON, MONITORING_OFF

    Supporting Types

    ProcessMonitoringRuleCondition, ProcessMonitoringRuleConditionArgs

    Item string
    Condition target
    Operator string
    Condition operator
    EnvVar string
    supported only with OneAgent 1.167+
    Value string
    Condition value
    Item string
    Condition target
    Operator string
    Condition operator
    EnvVar string
    supported only with OneAgent 1.167+
    Value string
    Condition value
    item String
    Condition target
    operator String
    Condition operator
    envVar String
    supported only with OneAgent 1.167+
    value String
    Condition value
    item string
    Condition target
    operator string
    Condition operator
    envVar string
    supported only with OneAgent 1.167+
    value string
    Condition value
    item str
    Condition target
    operator str
    Condition operator
    env_var str
    supported only with OneAgent 1.167+
    value str
    Condition value
    item String
    Condition target
    operator String
    Condition operator
    envVar String
    supported only with OneAgent 1.167+
    value String
    Condition value

    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.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse