You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`policy_id` - (Required) The ID of the policy where this condition should be used.
53
-
*`name` - (Required) The title of the condition. Must be between 1 and 64 characters, inclusive.
54
-
*`type` - (Required) The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
55
-
*`entities` - (Required) The instance IDs associated with this condition.
56
-
*`metric` - (Required) The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
57
-
*`apm_app_metric`
58
-
*`apdex`
59
-
*`error_percentage`
60
-
*`response_time_background`
61
-
*`response_time_web`
62
-
*`throughput_background`
63
-
*`throughput_web`
64
-
*`user_defined`
65
-
*`apm_jvm_metric`
66
-
*`cpu_utilization_time`
67
-
*`deadlocked_threads`
68
-
*`gc_cpu_time`
69
-
*`heap_memory_usage`
70
-
*`apm_kt_metric`
71
-
*`apdex`
72
-
*`error_count`
73
-
*`error_percentage`
74
-
*`response_time`
75
-
*`throughput`
76
-
*`browser_metric`
77
-
*`ajax_response_time`
78
-
*`ajax_throughput`
79
-
*`dom_processing`
80
-
*`end_user_apdex`
81
-
*`network`
82
-
*`page_rendering`
83
-
*`page_view_throughput`
84
-
*`page_views_with_js_errors`
85
-
*`request_queuing`
86
-
*`total_page_load`
87
-
*`user_defined`
88
-
*`web_application`
89
-
*`mobile_metric`
90
-
*`database`
91
-
*`images`
92
-
*`json`
93
-
*`mobile_crash_rate`
94
-
*`network_error_percentage`
95
-
*`network`
96
-
*`status_error_percentage`
97
-
*`user_defined`
98
-
*`view_loading`
99
-
*`condition_scope` - (Required for some types) `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
100
-
*`enabled` - (Optional) Whether the condition is enabled or not. Defaults to true.
101
-
*`gc_metric` - (Optional) A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
102
-
*`violation_close_timer` - (Optional) Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
103
-
* when `type` = `apm_app_metric` and `condition_scope` = `instance`
104
-
* when `type` = `apm_jvm_metric`
105
-
*`runbook_url` - (Optional) Runbook URL to display in notifications.
106
-
*`term` - (Required) A list of terms for this condition. See [Terms](#terms) below for details.
107
-
*`user_defined_metric` - (Optional) A custom metric to be evaluated.
108
-
*`user_defined_value_function` - (Optional) One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
52
+
-`policy_id` - (Required) The ID of the policy where this condition should be used.
53
+
-`name` - (Required) The title of the condition. Must be between 1 and 64 characters, inclusive.
54
+
-`type` - (Required) The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
55
+
-`entities` - (Required) The instance IDs associated with this condition.
56
+
-`metric` - (Required) The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
57
+
-`apm_app_metric`
58
+
-`apdex`
59
+
-`error_percentage`
60
+
-`response_time_background`
61
+
-`response_time_web`
62
+
-`throughput_background`
63
+
-`throughput_web`
64
+
-`user_defined`
65
+
-`apm_jvm_metric`
66
+
-`cpu_utilization_time`
67
+
-`deadlocked_threads`
68
+
-`gc_cpu_time`
69
+
-`heap_memory_usage`
70
+
-`apm_kt_metric`
71
+
-`apdex`
72
+
-`error_count`
73
+
-`error_percentage`
74
+
-`response_time`
75
+
-`throughput`
76
+
-`browser_metric`
77
+
-`ajax_response_time`
78
+
-`ajax_throughput`
79
+
-`dom_processing`
80
+
-`end_user_apdex`
81
+
-`network`
82
+
-`page_rendering`
83
+
-`page_view_throughput`
84
+
-`page_views_with_js_errors`
85
+
-`request_queuing`
86
+
-`total_page_load`
87
+
-`user_defined`
88
+
-`web_application`
89
+
-`mobile_metric`
90
+
-`database`
91
+
-`images`
92
+
-`json`
93
+
-`mobile_crash_rate`
94
+
-`network_error_percentage`
95
+
-`network`
96
+
-`status_error_percentage`
97
+
-`user_defined`
98
+
-`view_loading`
99
+
-`condition_scope` - (Required for some types) `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
100
+
-`enabled` - (Optional) Whether the condition is enabled or not. Defaults to true.
101
+
-`gc_metric` - (Optional) A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
102
+
-`violation_close_timer` - (Optional) Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours specified. Must be between 1 and 720 hours. Must be specified in the following two cases, to prevent drift:
103
+
- when `type` = `apm_app_metric` and `condition_scope` = `instance`
104
+
- when `type` = `apm_jvm_metric`
105
+
-`runbook_url` - (Optional) Runbook URL to display in notifications.
106
+
-`term` - (Required) A list of terms for this condition. See [Terms](#terms) below for details.
107
+
-`user_defined_metric` - (Optional) A custom metric to be evaluated.
108
+
-`user_defined_value_function` - (Optional) One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
109
109
110
110
-> **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
111
111
@@ -117,18 +117,19 @@ Warning: This resource will use the account ID linked to your API key. At the mo
117
117
118
118
The `term` mapping supports the following arguments:
119
119
120
-
*`duration` - (Required) In minutes, must be in the range of `5` to `120`, inclusive.
121
-
*`operator` - (Optional) `above`, `below`, or `equal`. Defaults to `equal`.
122
-
*`priority` - (Optional) `critical` or `warning`. Defaults to `critical`. Terms must include at least one `critical` priority term
123
-
*`threshold` - (Required) Must be 0 or greater.
124
-
*`time_function` - (Required) `all` or `any`.
120
+
-`duration` - (Required) In minutes, must be in the range of `5` to `120`, inclusive.
121
+
-`operator` - (Optional) `above`, `below`, or `equal`. Defaults to `equal`.
122
+
-`priority` - (Optional) `critical` or `warning`. Defaults to `critical`. Terms must include at least one `critical` priority term
123
+
-`threshold` - (Required) Must be 0 or greater.
124
+
-`time_function` - (Required) `all` or `any`.
125
+
-`disable_health_status_reporting` - (Optional) `true` or `false`. Defaults to `false` when field not included in TF config. Violations will not change system health status for this term.
125
126
126
127
## Attributes Reference
127
128
128
129
In addition to all arguments above, the following attributes are exported:
129
130
130
-
*`id` - The ID of the alert condition.
131
-
*`entity_guid` - The unique entity identifier of the condition in New Relic.
131
+
-`id` - The ID of the alert condition.
132
+
-`entity_guid` - The unique entity identifier of the condition in New Relic.
0 commit comments