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

dynatrace.DiskAnomalyRules

Explore with Pulumi AI

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

    Create DiskAnomalyRules Resource

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

    Constructor syntax

    new DiskAnomalyRules(name: string, args: DiskAnomalyRulesArgs, opts?: CustomResourceOptions);
    @overload
    def DiskAnomalyRules(resource_name: str,
                         args: DiskAnomalyRulesArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskAnomalyRules(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         disk_name_filter: Optional[DiskAnomalyRulesDiskNameFilterArgs] = None,
                         enabled: Optional[bool] = None,
                         metric: Optional[str] = None,
                         sample_limit: Optional[DiskAnomalyRulesSampleLimitArgs] = None,
                         host_group_id: Optional[str] = None,
                         name: Optional[str] = None,
                         tag_filters: Optional[Sequence[str]] = None,
                         threshold_milliseconds: Optional[float] = None,
                         threshold_percent: Optional[float] = None)
    func NewDiskAnomalyRules(ctx *Context, name string, args DiskAnomalyRulesArgs, opts ...ResourceOption) (*DiskAnomalyRules, error)
    public DiskAnomalyRules(string name, DiskAnomalyRulesArgs args, CustomResourceOptions? opts = null)
    public DiskAnomalyRules(String name, DiskAnomalyRulesArgs args)
    public DiskAnomalyRules(String name, DiskAnomalyRulesArgs args, CustomResourceOptions options)
    
    type: dynatrace:DiskAnomalyRules
    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 DiskAnomalyRulesArgs
    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 DiskAnomalyRulesArgs
    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 DiskAnomalyRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiskAnomalyRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiskAnomalyRulesArgs
    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 diskAnomalyRulesResource = new Dynatrace.DiskAnomalyRules("diskAnomalyRulesResource", new()
    {
        DiskNameFilter = new Dynatrace.Inputs.DiskAnomalyRulesDiskNameFilterArgs
        {
            Operator = "string",
            Value = "string",
        },
        Enabled = false,
        Metric = "string",
        SampleLimit = new Dynatrace.Inputs.DiskAnomalyRulesSampleLimitArgs
        {
            Samples = 0,
            ViolatingSamples = 0,
        },
        HostGroupId = "string",
        Name = "string",
        TagFilters = new[]
        {
            "string",
        },
        ThresholdMilliseconds = 0,
        ThresholdPercent = 0,
    });
    
    example, err := dynatrace.NewDiskAnomalyRules(ctx, "diskAnomalyRulesResource", &dynatrace.DiskAnomalyRulesArgs{
    	DiskNameFilter: &dynatrace.DiskAnomalyRulesDiskNameFilterArgs{
    		Operator: pulumi.String("string"),
    		Value:    pulumi.String("string"),
    	},
    	Enabled: pulumi.Bool(false),
    	Metric:  pulumi.String("string"),
    	SampleLimit: &dynatrace.DiskAnomalyRulesSampleLimitArgs{
    		Samples:          pulumi.Int(0),
    		ViolatingSamples: pulumi.Int(0),
    	},
    	HostGroupId: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	TagFilters: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ThresholdMilliseconds: pulumi.Float64(0),
    	ThresholdPercent:      pulumi.Float64(0),
    })
    
    var diskAnomalyRulesResource = new DiskAnomalyRules("diskAnomalyRulesResource", DiskAnomalyRulesArgs.builder()
        .diskNameFilter(DiskAnomalyRulesDiskNameFilterArgs.builder()
            .operator("string")
            .value("string")
            .build())
        .enabled(false)
        .metric("string")
        .sampleLimit(DiskAnomalyRulesSampleLimitArgs.builder()
            .samples(0)
            .violatingSamples(0)
            .build())
        .hostGroupId("string")
        .name("string")
        .tagFilters("string")
        .thresholdMilliseconds(0)
        .thresholdPercent(0)
        .build());
    
    disk_anomaly_rules_resource = dynatrace.DiskAnomalyRules("diskAnomalyRulesResource",
        disk_name_filter={
            "operator": "string",
            "value": "string",
        },
        enabled=False,
        metric="string",
        sample_limit={
            "samples": 0,
            "violating_samples": 0,
        },
        host_group_id="string",
        name="string",
        tag_filters=["string"],
        threshold_milliseconds=0,
        threshold_percent=0)
    
    const diskAnomalyRulesResource = new dynatrace.DiskAnomalyRules("diskAnomalyRulesResource", {
        diskNameFilter: {
            operator: "string",
            value: "string",
        },
        enabled: false,
        metric: "string",
        sampleLimit: {
            samples: 0,
            violatingSamples: 0,
        },
        hostGroupId: "string",
        name: "string",
        tagFilters: ["string"],
        thresholdMilliseconds: 0,
        thresholdPercent: 0,
    });
    
    type: dynatrace:DiskAnomalyRules
    properties:
        diskNameFilter:
            operator: string
            value: string
        enabled: false
        hostGroupId: string
        metric: string
        name: string
        sampleLimit:
            samples: 0
            violatingSamples: 0
        tagFilters:
            - string
        thresholdMilliseconds: 0
        thresholdPercent: 0
    

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

    DiskNameFilter Pulumiverse.Dynatrace.Inputs.DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    SampleLimit Pulumiverse.Dynatrace.Inputs.DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    Name string
    Name
    TagFilters List<string>
    Only apply to hosts that have the following tags
    ThresholdMilliseconds double
    Alert if higher than
    ThresholdPercent double
    Alert if lower than
    DiskNameFilter DiskAnomalyRulesDiskNameFilterArgs
    Only apply to disks whose name matches
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    SampleLimit DiskAnomalyRulesSampleLimitArgs
    Only alert if the threshold was violated in at least n of the last m samples
    HostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    Name string
    Name
    TagFilters []string
    Only apply to hosts that have the following tags
    ThresholdMilliseconds float64
    Alert if higher than
    ThresholdPercent float64
    Alert if lower than
    diskNameFilter DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metric String
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    sampleLimit DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    name String
    Name
    tagFilters List<String>
    Only apply to hosts that have the following tags
    thresholdMilliseconds Double
    Alert if higher than
    thresholdPercent Double
    Alert if lower than
    diskNameFilter DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    enabled boolean
    This setting is enabled (true) or disabled (false)
    metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    sampleLimit DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    hostGroupId string
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    name string
    Name
    tagFilters string[]
    Only apply to hosts that have the following tags
    thresholdMilliseconds number
    Alert if higher than
    thresholdPercent number
    Alert if lower than
    disk_name_filter DiskAnomalyRulesDiskNameFilterArgs
    Only apply to disks whose name matches
    enabled bool
    This setting is enabled (true) or disabled (false)
    metric str
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    sample_limit DiskAnomalyRulesSampleLimitArgs
    Only alert if the threshold was violated in at least n of the last m samples
    host_group_id str
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    name str
    Name
    tag_filters Sequence[str]
    Only apply to hosts that have the following tags
    threshold_milliseconds float
    Alert if higher than
    threshold_percent float
    Alert if lower than
    diskNameFilter Property Map
    Only apply to disks whose name matches
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metric String
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    sampleLimit Property Map
    Only alert if the threshold was violated in at least n of the last m samples
    hostGroupId String
    The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
    name String
    Name
    tagFilters List<String>
    Only apply to hosts that have the following tags
    thresholdMilliseconds Number
    Alert if higher than
    thresholdPercent Number
    Alert if lower than

    Outputs

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

    Get an existing DiskAnomalyRules 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?: DiskAnomalyRulesState, opts?: CustomResourceOptions): DiskAnomalyRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disk_name_filter: Optional[DiskAnomalyRulesDiskNameFilterArgs] = None,
            enabled: Optional[bool] = None,
            host_group_id: Optional[str] = None,
            metric: Optional[str] = None,
            name: Optional[str] = None,
            sample_limit: Optional[DiskAnomalyRulesSampleLimitArgs] = None,
            tag_filters: Optional[Sequence[str]] = None,
            threshold_milliseconds: Optional[float] = None,
            threshold_percent: Optional[float] = None) -> DiskAnomalyRules
    func GetDiskAnomalyRules(ctx *Context, name string, id IDInput, state *DiskAnomalyRulesState, opts ...ResourceOption) (*DiskAnomalyRules, error)
    public static DiskAnomalyRules Get(string name, Input<string> id, DiskAnomalyRulesState? state, CustomResourceOptions? opts = null)
    public static DiskAnomalyRules get(String name, Output<String> id, DiskAnomalyRulesState 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:
    DiskNameFilter Pulumiverse.Dynatrace.Inputs.DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    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.
    Metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    Name string
    Name
    SampleLimit Pulumiverse.Dynatrace.Inputs.DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    TagFilters List<string>
    Only apply to hosts that have the following tags
    ThresholdMilliseconds double
    Alert if higher than
    ThresholdPercent double
    Alert if lower than
    DiskNameFilter DiskAnomalyRulesDiskNameFilterArgs
    Only apply to disks whose name matches
    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.
    Metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    Name string
    Name
    SampleLimit DiskAnomalyRulesSampleLimitArgs
    Only alert if the threshold was violated in at least n of the last m samples
    TagFilters []string
    Only apply to hosts that have the following tags
    ThresholdMilliseconds float64
    Alert if higher than
    ThresholdPercent float64
    Alert if lower than
    diskNameFilter DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    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.
    metric String
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    name String
    Name
    sampleLimit DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    tagFilters List<String>
    Only apply to hosts that have the following tags
    thresholdMilliseconds Double
    Alert if higher than
    thresholdPercent Double
    Alert if lower than
    diskNameFilter DiskAnomalyRulesDiskNameFilter
    Only apply to disks whose name matches
    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.
    metric string
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    name string
    Name
    sampleLimit DiskAnomalyRulesSampleLimit
    Only alert if the threshold was violated in at least n of the last m samples
    tagFilters string[]
    Only apply to hosts that have the following tags
    thresholdMilliseconds number
    Alert if higher than
    thresholdPercent number
    Alert if lower than
    disk_name_filter DiskAnomalyRulesDiskNameFilterArgs
    Only apply to disks whose name matches
    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.
    metric str
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    name str
    Name
    sample_limit DiskAnomalyRulesSampleLimitArgs
    Only alert if the threshold was violated in at least n of the last m samples
    tag_filters Sequence[str]
    Only apply to hosts that have the following tags
    threshold_milliseconds float
    Alert if higher than
    threshold_percent float
    Alert if lower than
    diskNameFilter Property Map
    Only apply to disks whose name matches
    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.
    metric String
    Possible Values: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING, WRITE_TIME_EXCEEDING
    name String
    Name
    sampleLimit Property Map
    Only alert if the threshold was violated in at least n of the last m samples
    tagFilters List<String>
    Only apply to hosts that have the following tags
    thresholdMilliseconds Number
    Alert if higher than
    thresholdPercent Number
    Alert if lower than

    Supporting Types

    DiskAnomalyRulesDiskNameFilter, DiskAnomalyRulesDiskNameFilterArgs

    Operator string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    Value string
    Matching text
    Operator string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    Value string
    Matching text
    operator String
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    value String
    Matching text
    operator string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    value string
    Matching text
    operator str
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    value str
    Matching text
    operator String
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS, STARTS_WITH
    value String
    Matching text

    DiskAnomalyRulesSampleLimit, DiskAnomalyRulesSampleLimitArgs

    Samples int
    .. within the last
    ViolatingSamples int
    Minimum number of violating samples
    Samples int
    .. within the last
    ViolatingSamples int
    Minimum number of violating samples
    samples Integer
    .. within the last
    violatingSamples Integer
    Minimum number of violating samples
    samples number
    .. within the last
    violatingSamples number
    Minimum number of violating samples
    samples int
    .. within the last
    violating_samples int
    Minimum number of violating samples
    samples Number
    .. within the last
    violatingSamples Number
    Minimum number of violating samples

    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