Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.DiskAnomalyRules
Explore with Pulumi AI
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=dynatrace.DiskAnomalyRulesDiskNameFilterArgs(
operator="string",
value="string",
),
enabled=False,
metric="string",
sample_limit=dynatrace.DiskAnomalyRulesSampleLimitArgs(
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
The DiskAnomalyRules resource accepts the following input properties:
- Disk
Name Pulumiverse.Filter Dynatrace. Inputs. Disk Anomaly Rules Disk Name Filter - 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
- Sample
Limit Pulumiverse.Dynatrace. Inputs. Disk Anomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- Host
Group stringId - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Name string
- Name
- Tag
Filters List<string> - Only apply to hosts that have the following tags
- Threshold
Milliseconds double - Alert if higher than
- Threshold
Percent double - Alert if lower than
- Disk
Name DiskFilter Anomaly Rules Disk Name Filter Args - 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
- Sample
Limit DiskAnomaly Rules Sample Limit Args - Only alert if the threshold was violated in at least n of the last m samples
- Host
Group stringId - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Name string
- Name
- Tag
Filters []string - Only apply to hosts that have the following tags
- Threshold
Milliseconds float64 - Alert if higher than
- Threshold
Percent float64 - Alert if lower than
- disk
Name DiskFilter Anomaly Rules Disk Name Filter - 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
- sample
Limit DiskAnomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- host
Group StringId - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- name String
- Name
- tag
Filters List<String> - Only apply to hosts that have the following tags
- threshold
Milliseconds Double - Alert if higher than
- threshold
Percent Double - Alert if lower than
- disk
Name DiskFilter Anomaly Rules Disk Name Filter - 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
- sample
Limit DiskAnomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- host
Group stringId - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- name string
- Name
- tag
Filters string[] - Only apply to hosts that have the following tags
- threshold
Milliseconds number - Alert if higher than
- threshold
Percent number - Alert if lower than
- disk_
name_ Diskfilter Anomaly Rules Disk Name Filter Args - 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 DiskAnomaly Rules Sample Limit Args - Only alert if the threshold was violated in at least n of the last m samples
- host_
group_ strid - 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
- disk
Name Property MapFilter - 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
- sample
Limit Property Map - Only alert if the threshold was violated in at least n of the last m samples
- host
Group StringId - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- name String
- Name
- tag
Filters List<String> - Only apply to hosts that have the following tags
- threshold
Milliseconds Number - Alert if higher than
- threshold
Percent 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.
- Disk
Name Pulumiverse.Filter Dynatrace. Inputs. Disk Anomaly Rules Disk Name Filter - Only apply to disks whose name matches
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Host
Group stringId - 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
- Sample
Limit Pulumiverse.Dynatrace. Inputs. Disk Anomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- Tag
Filters List<string> - Only apply to hosts that have the following tags
- Threshold
Milliseconds double - Alert if higher than
- Threshold
Percent double - Alert if lower than
- Disk
Name DiskFilter Anomaly Rules Disk Name Filter Args - Only apply to disks whose name matches
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Host
Group stringId - 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
- Sample
Limit DiskAnomaly Rules Sample Limit Args - Only alert if the threshold was violated in at least n of the last m samples
- Tag
Filters []string - Only apply to hosts that have the following tags
- Threshold
Milliseconds float64 - Alert if higher than
- Threshold
Percent float64 - Alert if lower than
- disk
Name DiskFilter Anomaly Rules Disk Name Filter - Only apply to disks whose name matches
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - host
Group StringId - 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
- sample
Limit DiskAnomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- tag
Filters List<String> - Only apply to hosts that have the following tags
- threshold
Milliseconds Double - Alert if higher than
- threshold
Percent Double - Alert if lower than
- disk
Name DiskFilter Anomaly Rules Disk Name Filter - Only apply to disks whose name matches
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - host
Group stringId - 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
- sample
Limit DiskAnomaly Rules Sample Limit - Only alert if the threshold was violated in at least n of the last m samples
- tag
Filters string[] - Only apply to hosts that have the following tags
- threshold
Milliseconds number - Alert if higher than
- threshold
Percent number - Alert if lower than
- disk_
name_ Diskfilter Anomaly Rules Disk Name Filter Args - Only apply to disks whose name matches
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - host_
group_ strid - 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 DiskAnomaly Rules Sample Limit Args - 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
- disk
Name Property MapFilter - Only apply to disks whose name matches
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - host
Group StringId - 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
- sample
Limit Property Map - Only alert if the threshold was violated in at least n of the last m samples
- tag
Filters List<String> - Only apply to hosts that have the following tags
- threshold
Milliseconds Number - Alert if higher than
- threshold
Percent Number - Alert if lower than
Supporting Types
DiskAnomalyRulesDiskNameFilter, DiskAnomalyRulesDiskNameFilterArgs
DiskAnomalyRulesSampleLimit, DiskAnomalyRulesSampleLimitArgs
- Samples int
- .. within the last
- Violating
Samples int - Minimum number of violating samples
- Samples int
- .. within the last
- Violating
Samples int - Minimum number of violating samples
- samples Integer
- .. within the last
- violating
Samples Integer - Minimum number of violating samples
- samples number
- .. within the last
- violating
Samples number - Minimum number of violating samples
- samples int
- .. within the last
- violating_
samples int - Minimum number of violating samples
- samples Number
- .. within the last
- violating
Samples 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.