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

dynatrace.DiskAnomalies

Explore with Pulumi AI

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

    Create DiskAnomalies Resource

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

    Constructor syntax

    new DiskAnomalies(name: string, args: DiskAnomaliesArgs, opts?: CustomResourceOptions);
    @overload
    def DiskAnomalies(resource_name: str,
                      args: DiskAnomaliesArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiskAnomalies(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      enabled: Optional[bool] = None,
                      metric: Optional[str] = None,
                      samples: Optional[int] = None,
                      threshold: Optional[float] = None,
                      violating_samples: Optional[int] = None,
                      disk_name: Optional[DiskAnomaliesDiskNameArgs] = None,
                      host_group_id: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[DiskAnomaliesTagsArgs] = None)
    func NewDiskAnomalies(ctx *Context, name string, args DiskAnomaliesArgs, opts ...ResourceOption) (*DiskAnomalies, error)
    public DiskAnomalies(string name, DiskAnomaliesArgs args, CustomResourceOptions? opts = null)
    public DiskAnomalies(String name, DiskAnomaliesArgs args)
    public DiskAnomalies(String name, DiskAnomaliesArgs args, CustomResourceOptions options)
    
    type: dynatrace:DiskAnomalies
    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 DiskAnomaliesArgs
    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 DiskAnomaliesArgs
    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 DiskAnomaliesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiskAnomaliesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiskAnomaliesArgs
    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 diskAnomaliesResource = new Dynatrace.DiskAnomalies("diskAnomaliesResource", new()
    {
        Enabled = false,
        Metric = "string",
        Samples = 0,
        Threshold = 0,
        ViolatingSamples = 0,
        DiskName = new Dynatrace.Inputs.DiskAnomaliesDiskNameArgs
        {
            Operator = "string",
            Value = "string",
        },
        HostGroupId = "string",
        Name = "string",
        Tags = new Dynatrace.Inputs.DiskAnomaliesTagsArgs
        {
            Filters = new[]
            {
                new Dynatrace.Inputs.DiskAnomaliesTagsFilterArgs
                {
                    Context = "string",
                    Key = "string",
                    Value = "string",
                },
            },
        },
    });
    
    example, err := dynatrace.NewDiskAnomalies(ctx, "diskAnomaliesResource", &dynatrace.DiskAnomaliesArgs{
    	Enabled:          pulumi.Bool(false),
    	Metric:           pulumi.String("string"),
    	Samples:          pulumi.Int(0),
    	Threshold:        pulumi.Float64(0),
    	ViolatingSamples: pulumi.Int(0),
    	DiskName: &dynatrace.DiskAnomaliesDiskNameArgs{
    		Operator: pulumi.String("string"),
    		Value:    pulumi.String("string"),
    	},
    	HostGroupId: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: &dynatrace.DiskAnomaliesTagsArgs{
    		Filters: dynatrace.DiskAnomaliesTagsFilterArray{
    			&dynatrace.DiskAnomaliesTagsFilterArgs{
    				Context: pulumi.String("string"),
    				Key:     pulumi.String("string"),
    				Value:   pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var diskAnomaliesResource = new DiskAnomalies("diskAnomaliesResource", DiskAnomaliesArgs.builder()        
        .enabled(false)
        .metric("string")
        .samples(0)
        .threshold(0)
        .violatingSamples(0)
        .diskName(DiskAnomaliesDiskNameArgs.builder()
            .operator("string")
            .value("string")
            .build())
        .hostGroupId("string")
        .name("string")
        .tags(DiskAnomaliesTagsArgs.builder()
            .filters(DiskAnomaliesTagsFilterArgs.builder()
                .context("string")
                .key("string")
                .value("string")
                .build())
            .build())
        .build());
    
    disk_anomalies_resource = dynatrace.DiskAnomalies("diskAnomaliesResource",
        enabled=False,
        metric="string",
        samples=0,
        threshold=0,
        violating_samples=0,
        disk_name=dynatrace.DiskAnomaliesDiskNameArgs(
            operator="string",
            value="string",
        ),
        host_group_id="string",
        name="string",
        tags=dynatrace.DiskAnomaliesTagsArgs(
            filters=[dynatrace.DiskAnomaliesTagsFilterArgs(
                context="string",
                key="string",
                value="string",
            )],
        ))
    
    const diskAnomaliesResource = new dynatrace.DiskAnomalies("diskAnomaliesResource", {
        enabled: false,
        metric: "string",
        samples: 0,
        threshold: 0,
        violatingSamples: 0,
        diskName: {
            operator: "string",
            value: "string",
        },
        hostGroupId: "string",
        name: "string",
        tags: {
            filters: [{
                context: "string",
                key: "string",
                value: "string",
            }],
        },
    });
    
    type: dynatrace:DiskAnomalies
    properties:
        diskName:
            operator: string
            value: string
        enabled: false
        hostGroupId: string
        metric: string
        name: string
        samples: 0
        tags:
            filters:
                - context: string
                  key: string
                  value: string
        threshold: 0
        violatingSamples: 0
    

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

    Enabled bool
    Disk event rule enabled/disabled
    Metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    Samples int
    The number of samples to evaluate
    Threshold double
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    ViolatingSamples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    DiskName Lbrlabs.PulumiPackage.Dynatrace.Inputs.DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    HostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    Name string
    The name of the disk event rule
    Tags Lbrlabs.PulumiPackage.Dynatrace.Inputs.DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    Enabled bool
    Disk event rule enabled/disabled
    Metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    Samples int
    The number of samples to evaluate
    Threshold float64
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    ViolatingSamples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    DiskName DiskAnomaliesDiskNameArgs
    Narrows the rule usage down to disks, matching the specified criteria
    HostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    Name string
    The name of the disk event rule
    Tags DiskAnomaliesTagsArgs
    Narrows the rule usage down to the hosts matching the specified tags
    enabled Boolean
    Disk event rule enabled/disabled
    metric String
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    samples Integer
    The number of samples to evaluate
    threshold Double
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples Integer
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    hostGroupId String
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    name String
    The name of the disk event rule
    tags DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    enabled boolean
    Disk event rule enabled/disabled
    metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    samples number
    The number of samples to evaluate
    threshold number
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples number
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    hostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    name string
    The name of the disk event rule
    tags DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    enabled bool
    Disk event rule enabled/disabled
    metric str
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    samples int
    The number of samples to evaluate
    threshold float
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violating_samples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    disk_name DiskAnomaliesDiskNameArgs
    Narrows the rule usage down to disks, matching the specified criteria
    host_group_id str
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    name str
    The name of the disk event rule
    tags DiskAnomaliesTagsArgs
    Narrows the rule usage down to the hosts matching the specified tags
    enabled Boolean
    Disk event rule enabled/disabled
    metric String
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    samples Number
    The number of samples to evaluate
    threshold Number
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples Number
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName Property Map
    Narrows the rule usage down to disks, matching the specified criteria
    hostGroupId String
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    name String
    The name of the disk event rule
    tags Property Map
    Narrows the rule usage down to the hosts matching the specified tags

    Outputs

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

    Get an existing DiskAnomalies 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?: DiskAnomaliesState, opts?: CustomResourceOptions): DiskAnomalies
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disk_name: Optional[DiskAnomaliesDiskNameArgs] = None,
            enabled: Optional[bool] = None,
            host_group_id: Optional[str] = None,
            metric: Optional[str] = None,
            name: Optional[str] = None,
            samples: Optional[int] = None,
            tags: Optional[DiskAnomaliesTagsArgs] = None,
            threshold: Optional[float] = None,
            violating_samples: Optional[int] = None) -> DiskAnomalies
    func GetDiskAnomalies(ctx *Context, name string, id IDInput, state *DiskAnomaliesState, opts ...ResourceOption) (*DiskAnomalies, error)
    public static DiskAnomalies Get(string name, Input<string> id, DiskAnomaliesState? state, CustomResourceOptions? opts = null)
    public static DiskAnomalies get(String name, Output<String> id, DiskAnomaliesState 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:
    DiskName Lbrlabs.PulumiPackage.Dynatrace.Inputs.DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    Enabled bool
    Disk event rule enabled/disabled
    HostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    Metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    Name string
    The name of the disk event rule
    Samples int
    The number of samples to evaluate
    Tags Lbrlabs.PulumiPackage.Dynatrace.Inputs.DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    Threshold double
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    ViolatingSamples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    DiskName DiskAnomaliesDiskNameArgs
    Narrows the rule usage down to disks, matching the specified criteria
    Enabled bool
    Disk event rule enabled/disabled
    HostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    Metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    Name string
    The name of the disk event rule
    Samples int
    The number of samples to evaluate
    Tags DiskAnomaliesTagsArgs
    Narrows the rule usage down to the hosts matching the specified tags
    Threshold float64
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    ViolatingSamples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    enabled Boolean
    Disk event rule enabled/disabled
    hostGroupId String
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    metric String
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    name String
    The name of the disk event rule
    samples Integer
    The number of samples to evaluate
    tags DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    threshold Double
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples Integer
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName DiskAnomaliesDiskName
    Narrows the rule usage down to disks, matching the specified criteria
    enabled boolean
    Disk event rule enabled/disabled
    hostGroupId string
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    metric string
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    name string
    The name of the disk event rule
    samples number
    The number of samples to evaluate
    tags DiskAnomaliesTags
    Narrows the rule usage down to the hosts matching the specified tags
    threshold number
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples number
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    disk_name DiskAnomaliesDiskNameArgs
    Narrows the rule usage down to disks, matching the specified criteria
    enabled bool
    Disk event rule enabled/disabled
    host_group_id str
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    metric str
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    name str
    The name of the disk event rule
    samples int
    The number of samples to evaluate
    tags DiskAnomaliesTagsArgs
    Narrows the rule usage down to the hosts matching the specified tags
    threshold float
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violating_samples int
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
    diskName Property Map
    Narrows the rule usage down to disks, matching the specified criteria
    enabled Boolean
    Disk event rule enabled/disabled
    hostGroupId String
    Narrows the rule usage down to disks that run on hosts that themselves run on the specified host group
    metric String
    The metric to monitor. Possible values are: LOW_DISK_SPACE, LOW_INODES, READ_TIME_EXCEEDING and WRITE_TIME_EXCEEDING
    name String
    The name of the disk event rule
    samples Number
    The number of samples to evaluate
    tags Property Map
    Narrows the rule usage down to the hosts matching the specified tags
    threshold Number
    The threshold to trigger disk event. * A percentage for LowDiskSpace or LowInodes metrics. * In milliseconds for ReadTimeExceeding or WriteTimeExceeding metrics
    violatingSamples Number
    The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples

    Supporting Types

    DiskAnomaliesDiskName, DiskAnomaliesDiskNameArgs

    Operator string
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    Value string
    Value to compare to
    Operator string
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    Value string
    Value to compare to
    operator String
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    value String
    Value to compare to
    operator string
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    value string
    Value to compare to
    operator str
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    value str
    Value to compare to
    operator String
    Possible values are: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_START_WITH, EQUALS and STARTS_WITH
    value String
    Value to compare to

    DiskAnomaliesTags, DiskAnomaliesTagsArgs

    DiskAnomaliesTagsFilter, DiskAnomaliesTagsFilterArgs

    Context string
    Key string
    Value string
    Context string
    Key string
    Value string
    context String
    key String
    value String
    context string
    key string
    value string
    context str
    key str
    value str
    context String
    key String
    value 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