Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse
dynatrace.DiskAnomalies
Explore with Pulumi AI
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.
Constructor 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
andWRITE_TIME_EXCEEDING
- Samples int
- The number of samples to evaluate
- Threshold double
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 Pulumiverse.Dynatrace. Inputs. Disk Anomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- Host
Group stringId - 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
- Pulumiverse.
Dynatrace. Inputs. Disk Anomalies Tags - 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
andWRITE_TIME_EXCEEDING
- Samples int
- The number of samples to evaluate
- Threshold float64
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 DiskAnomalies Disk Name Args - Narrows the rule usage down to disks, matching the specified criteria
- Host
Group stringId - 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
- Disk
Anomalies Tags Args - 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
andWRITE_TIME_EXCEEDING
- samples Integer
- The number of samples to evaluate
- threshold Double
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples Integer - The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
- disk
Name DiskAnomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- host
Group StringId - 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
- Disk
Anomalies Tags - 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
andWRITE_TIME_EXCEEDING
- samples number
- The number of samples to evaluate
- threshold number
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples number - The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
- disk
Name DiskAnomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- host
Group stringId - 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
- Disk
Anomalies Tags - 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
andWRITE_TIME_EXCEEDING
- samples int
- The number of samples to evaluate
- threshold float
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 DiskAnomalies Disk Name Args - Narrows the rule usage down to disks, matching the specified criteria
- host_
group_ strid - 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
- Disk
Anomalies Tags Args - 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
andWRITE_TIME_EXCEEDING
- samples Number
- The number of samples to evaluate
- threshold Number
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples Number - The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
- disk
Name Property Map - Narrows the rule usage down to disks, matching the specified criteria
- host
Group StringId - 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
- 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.
- Disk
Name Pulumiverse.Dynatrace. Inputs. Disk Anomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- Enabled bool
- Disk event rule enabled/disabled
- Host
Group stringId - 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
andWRITE_TIME_EXCEEDING
- Name string
- The name of the disk event rule
- Samples int
- The number of samples to evaluate
- Pulumiverse.
Dynatrace. Inputs. Disk Anomalies Tags - Narrows the rule usage down to the hosts matching the specified tags
- Threshold double
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 DiskAnomalies Disk Name Args - Narrows the rule usage down to disks, matching the specified criteria
- Enabled bool
- Disk event rule enabled/disabled
- Host
Group stringId - 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
andWRITE_TIME_EXCEEDING
- Name string
- The name of the disk event rule
- Samples int
- The number of samples to evaluate
- Disk
Anomalies Tags Args - Narrows the rule usage down to the hosts matching the specified tags
- Threshold float64
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 DiskAnomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- enabled Boolean
- Disk event rule enabled/disabled
- host
Group StringId - 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
andWRITE_TIME_EXCEEDING
- name String
- The name of the disk event rule
- samples Integer
- The number of samples to evaluate
- Disk
Anomalies Tags - Narrows the rule usage down to the hosts matching the specified tags
- threshold Double
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples Integer - The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
- disk
Name DiskAnomalies Disk Name - Narrows the rule usage down to disks, matching the specified criteria
- enabled boolean
- Disk event rule enabled/disabled
- host
Group stringId - 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
andWRITE_TIME_EXCEEDING
- name string
- The name of the disk event rule
- samples number
- The number of samples to evaluate
- Disk
Anomalies Tags - Narrows the rule usage down to the hosts matching the specified tags
- threshold number
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples number - The number of samples that must violate the threshold to trigger an event. Must not exceed the number of evaluated samples
- disk_
name DiskAnomalies Disk Name Args - Narrows the rule usage down to disks, matching the specified criteria
- enabled bool
- Disk event rule enabled/disabled
- host_
group_ strid - 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
andWRITE_TIME_EXCEEDING
- name str
- The name of the disk event rule
- samples int
- The number of samples to evaluate
- Disk
Anomalies Tags Args - Narrows the rule usage down to the hosts matching the specified tags
- threshold float
- The threshold to trigger disk event. * A percentage for
LowDiskSpace
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
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 Property Map - Narrows the rule usage down to disks, matching the specified criteria
- enabled Boolean
- Disk event rule enabled/disabled
- host
Group StringId - 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
andWRITE_TIME_EXCEEDING
- name String
- The name of the disk event rule
- samples Number
- The number of samples to evaluate
- 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
orLowInodes
metrics. * In milliseconds forReadTimeExceeding
orWriteTimeExceeding
metrics - violating
Samples 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
DiskAnomaliesTags, DiskAnomaliesTagsArgs
- Filters
[]Disk
Anomalies Tags Filter - A Tag Filter
- filters
List<Disk
Anomalies Tags Filter> - A Tag Filter
- filters
Disk
Anomalies Tags Filter[] - A Tag Filter
- filters
Sequence[Disk
Anomalies Tags Filter] - A Tag Filter
- filters List<Property Map>
- A Tag Filter
DiskAnomaliesTagsFilter, DiskAnomaliesTagsFilterArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.