|
| 1 | +--- |
| 2 | +layout: "" |
| 3 | +page_title: "dynatrace_custom_app_anomalies Resource - terraform-provider-dynatrace" |
| 4 | +description: |- |
| 5 | + The resource `dynatrace_custom_app_anomalies` covers configuration for custom application anomaly detection |
| 6 | +--- |
| 7 | + |
| 8 | +# dynatrace_custom_app_anomalies (Resource) |
| 9 | + |
| 10 | +## Dynatrace Documentation |
| 11 | + |
| 12 | +- Adjust the sensitivity of anomaly detection for applications - https://www.dynatrace.com/support/help/how-to-use-dynatrace/problem-detection-and-analysis/problem-detection/adjust-sensitivity-anomaly-detection/adjust-sensitivity-applications |
| 13 | + |
| 14 | +- Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:anomaly-detection.rum-custom`) |
| 15 | + |
| 16 | +## Export Example Usage |
| 17 | + |
| 18 | +- `terraform-provider-dynatrace -export dynatrace_custom_app_anomalies` downloads all existing custom application anomaly detection configuration |
| 19 | + |
| 20 | +The full documentation of the export feature is available [here](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/guides/export-v2). |
| 21 | + |
| 22 | +## Resource Example Usage |
| 23 | + |
| 24 | +```terraform |
| 25 | +resource "dynatrace_custom_app_anomalies" "#name#" { |
| 26 | + scope = "CUSTOM_APPLICATION-1234567890000000" |
| 27 | + error_rate_increase { |
| 28 | + enabled = true |
| 29 | + detection_mode = "fixed" |
| 30 | + error_rate_increase_fixed { |
| 31 | + sensitivity = "low" |
| 32 | + threshold_absolute = 5 |
| 33 | + } |
| 34 | + } |
| 35 | + slow_user_actions { |
| 36 | + enabled = false |
| 37 | + } |
| 38 | + unexpected_high_load { |
| 39 | + enabled = true |
| 40 | + threshold_percentage = 300 |
| 41 | + } |
| 42 | + unexpected_low_load { |
| 43 | + enabled = true |
| 44 | + threshold_percentage = 80 |
| 45 | + } |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | +<!-- schema generated by tfplugindocs --> |
| 50 | +## Schema |
| 51 | + |
| 52 | +### Required |
| 53 | + |
| 54 | +- `error_rate_increase` (Block List, Min: 1, Max: 1) Error rate increase (see [below for nested schema](#nestedblock--error_rate_increase)) |
| 55 | +- `slow_user_actions` (Block List, Min: 1, Max: 1) Slow user actions (see [below for nested schema](#nestedblock--slow_user_actions)) |
| 56 | +- `unexpected_high_load` (Block List, Min: 1, Max: 1) Unexpected high load (see [below for nested schema](#nestedblock--unexpected_high_load)) |
| 57 | +- `unexpected_low_load` (Block List, Min: 1, Max: 1) Unexpected low load (see [below for nested schema](#nestedblock--unexpected_low_load)) |
| 58 | + |
| 59 | +### Optional |
| 60 | + |
| 61 | +- `scope` (String) The scope of this setting (DEVICE_APPLICATION_METHOD CUSTOM_APPLICATION environment) |
| 62 | + |
| 63 | +### Read-Only |
| 64 | + |
| 65 | +- `id` (String) The ID of this resource. |
| 66 | + |
| 67 | +<a id="nestedblock--error_rate_increase"></a> |
| 68 | +### Nested Schema for `error_rate_increase` |
| 69 | + |
| 70 | +Required: |
| 71 | + |
| 72 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 73 | + |
| 74 | +Optional: |
| 75 | + |
| 76 | +- `detection_mode` (String) Possible Values: `Auto`, `Fixed` |
| 77 | +- `error_rate_increase_auto` (Block List, Max: 1) Alert if the percentage of user actions affected by reported errors exceeds **both** the absolute threshold and the relative threshold (see [below for nested schema](#nestedblock--error_rate_increase--error_rate_increase_auto)) |
| 78 | +- `error_rate_increase_fixed` (Block List, Max: 1) Alert if the custom reported error rate threshold is exceeded during any 5-minute period (see [below for nested schema](#nestedblock--error_rate_increase--error_rate_increase_fixed)) |
| 79 | + |
| 80 | +<a id="nestedblock--error_rate_increase--error_rate_increase_auto"></a> |
| 81 | +### Nested Schema for `error_rate_increase.error_rate_increase_auto` |
| 82 | + |
| 83 | +Required: |
| 84 | + |
| 85 | +- `threshold_absolute` (Number) Absolute threshold |
| 86 | +- `threshold_relative` (Number) Relative threshold |
| 87 | + |
| 88 | + |
| 89 | +<a id="nestedblock--error_rate_increase--error_rate_increase_fixed"></a> |
| 90 | +### Nested Schema for `error_rate_increase.error_rate_increase_fixed` |
| 91 | + |
| 92 | +Required: |
| 93 | + |
| 94 | +- `sensitivity` (String) Possible Values: `Low`, `Medium`, `High` |
| 95 | +- `threshold_absolute` (Number) Absolute threshold |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +<a id="nestedblock--slow_user_actions"></a> |
| 100 | +### Nested Schema for `slow_user_actions` |
| 101 | + |
| 102 | +Required: |
| 103 | + |
| 104 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 105 | + |
| 106 | +Optional: |
| 107 | + |
| 108 | +- `detection_mode` (String) Possible Values: `Auto`, `Fixed` |
| 109 | +- `slow_user_actions_auto` (Block List, Max: 1) no documentation available (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_auto)) |
| 110 | +- `slow_user_actions_fixed` (Block List, Max: 1) no documentation available (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_fixed)) |
| 111 | + |
| 112 | +<a id="nestedblock--slow_user_actions--slow_user_actions_auto"></a> |
| 113 | +### Nested Schema for `slow_user_actions.slow_user_actions_auto` |
| 114 | + |
| 115 | +Required: |
| 116 | + |
| 117 | +- `duration_avoid_overalerting` (Block List, Min: 1, Max: 1) To avoid over-alerting do not alert for low traffic applications with less than (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_auto--duration_avoid_overalerting)) |
| 118 | +- `duration_threshold_all` (Block List, Min: 1, Max: 1) Alert if the action duration of all user actions degrades beyond **both** the absolute and relative threshold: (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_auto--duration_threshold_all)) |
| 119 | +- `duration_threshold_slowest` (Block List, Min: 1, Max: 1) Alert if the action duration of the slowest 10% of user actions degrades beyond **both** the absolute and relative threshold: (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_auto--duration_threshold_slowest)) |
| 120 | + |
| 121 | +<a id="nestedblock--slow_user_actions--slow_user_actions_auto--duration_avoid_overalerting"></a> |
| 122 | +### Nested Schema for `slow_user_actions.slow_user_actions_auto.duration_avoid_overalerting` |
| 123 | + |
| 124 | +Required: |
| 125 | + |
| 126 | +- `min_action_rate` (Number) no documentation available |
| 127 | + |
| 128 | + |
| 129 | +<a id="nestedblock--slow_user_actions--slow_user_actions_auto--duration_threshold_all"></a> |
| 130 | +### Nested Schema for `slow_user_actions.slow_user_actions_auto.duration_threshold_all` |
| 131 | + |
| 132 | +Required: |
| 133 | + |
| 134 | +- `duration_threshold` (Number) Absolute threshold |
| 135 | +- `slowdown_percentage` (Number) Relative threshold |
| 136 | + |
| 137 | + |
| 138 | +<a id="nestedblock--slow_user_actions--slow_user_actions_auto--duration_threshold_slowest"></a> |
| 139 | +### Nested Schema for `slow_user_actions.slow_user_actions_auto.duration_threshold_slowest` |
| 140 | + |
| 141 | +Required: |
| 142 | + |
| 143 | +- `duration_threshold` (Number) Absolute threshold |
| 144 | +- `slowdown_percentage` (Number) Relative threshold |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | +<a id="nestedblock--slow_user_actions--slow_user_actions_fixed"></a> |
| 149 | +### Nested Schema for `slow_user_actions.slow_user_actions_fixed` |
| 150 | + |
| 151 | +Required: |
| 152 | + |
| 153 | +- `duration_avoid_overalerting` (Block List, Min: 1, Max: 1) To avoid over-alerting do not alert for low traffic applications with less than (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_fixed--duration_avoid_overalerting)) |
| 154 | +- `duration_threshold_all_fixed` (Block List, Min: 1, Max: 1) Alert if the action duration of all user actions degrades beyond the absolute threshold: (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_fixed--duration_threshold_all_fixed)) |
| 155 | +- `duration_threshold_slowest` (Block List, Min: 1, Max: 1) Alert if the action duration of the slowest 10% of user actions degrades beyond the absolute threshold: (see [below for nested schema](#nestedblock--slow_user_actions--slow_user_actions_fixed--duration_threshold_slowest)) |
| 156 | +- `sensitivity` (String) Possible Values: `Medium`, `High`, `Low` |
| 157 | + |
| 158 | +<a id="nestedblock--slow_user_actions--slow_user_actions_fixed--duration_avoid_overalerting"></a> |
| 159 | +### Nested Schema for `slow_user_actions.slow_user_actions_fixed.duration_avoid_overalerting` |
| 160 | + |
| 161 | +Required: |
| 162 | + |
| 163 | +- `min_action_rate` (Number) no documentation available |
| 164 | + |
| 165 | + |
| 166 | +<a id="nestedblock--slow_user_actions--slow_user_actions_fixed--duration_threshold_all_fixed"></a> |
| 167 | +### Nested Schema for `slow_user_actions.slow_user_actions_fixed.duration_threshold_all_fixed` |
| 168 | + |
| 169 | +Required: |
| 170 | + |
| 171 | +- `duration_threshold` (Number) Absolute threshold |
| 172 | + |
| 173 | + |
| 174 | +<a id="nestedblock--slow_user_actions--slow_user_actions_fixed--duration_threshold_slowest"></a> |
| 175 | +### Nested Schema for `slow_user_actions.slow_user_actions_fixed.duration_threshold_slowest` |
| 176 | + |
| 177 | +Required: |
| 178 | + |
| 179 | +- `duration_threshold` (Number) Absolute threshold |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | +<a id="nestedblock--unexpected_high_load"></a> |
| 185 | +### Nested Schema for `unexpected_high_load` |
| 186 | + |
| 187 | +Required: |
| 188 | + |
| 189 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 190 | + |
| 191 | +Optional: |
| 192 | + |
| 193 | +- `threshold_percentage` (Number) Dynatrace learns your typical application traffic over an observation period of one week. Depending on this expected value Dynatrace detects abnormal traffic spikes within your application. |
| 194 | + |
| 195 | + |
| 196 | +<a id="nestedblock--unexpected_low_load"></a> |
| 197 | +### Nested Schema for `unexpected_low_load` |
| 198 | + |
| 199 | +Required: |
| 200 | + |
| 201 | +- `enabled` (Boolean) This setting is enabled (`true`) or disabled (`false`) |
| 202 | + |
| 203 | +Optional: |
| 204 | + |
| 205 | +- `threshold_percentage` (Number) Dynatrace learns your typical application traffic over an observation period of one week. Depending on this expected value Dynatrace detects abnormal traffic drops within your application. |
| 206 | + |
0 commit comments