pulumi-newrelic 5.23.0a1713561620__py3-none-any.whl → 5.23.0a1713984329__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. pulumi_newrelic/_inputs.py +183 -270
  2. pulumi_newrelic/account_management.py +14 -18
  3. pulumi_newrelic/alert_channel.py +28 -56
  4. pulumi_newrelic/alert_condition.py +84 -133
  5. pulumi_newrelic/alert_muting_rule.py +21 -25
  6. pulumi_newrelic/alert_policy.py +42 -33
  7. pulumi_newrelic/alert_policy_channel.py +0 -4
  8. pulumi_newrelic/cloud/_inputs.py +322 -1072
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
  10. pulumi_newrelic/cloud/aws_integrations.py +7 -11
  11. pulumi_newrelic/cloud/aws_link_account.py +0 -4
  12. pulumi_newrelic/cloud/azure_integrations.py +0 -4
  13. pulumi_newrelic/cloud/azure_link_account.py +0 -4
  14. pulumi_newrelic/cloud/gcp_integrations.py +0 -4
  15. pulumi_newrelic/cloud/gcp_link_account.py +0 -4
  16. pulumi_newrelic/cloud/outputs.py +322 -1072
  17. pulumi_newrelic/data_partition_rule.py +0 -4
  18. pulumi_newrelic/entity_tags.py +7 -11
  19. pulumi_newrelic/events_to_metrics_rule.py +0 -4
  20. pulumi_newrelic/get_account.py +0 -4
  21. pulumi_newrelic/get_application.py +0 -4
  22. pulumi_newrelic/get_authentication_domain.py +0 -4
  23. pulumi_newrelic/get_cloud_account.py +0 -4
  24. pulumi_newrelic/get_entity.py +0 -16
  25. pulumi_newrelic/get_group.py +0 -8
  26. pulumi_newrelic/get_key_transaction.py +0 -4
  27. pulumi_newrelic/get_notification_destination.py +20 -1
  28. pulumi_newrelic/get_obfuscation_expression.py +0 -4
  29. pulumi_newrelic/get_service_level_alert_helper.py +0 -30
  30. pulumi_newrelic/get_test_grok_pattern.py +0 -4
  31. pulumi_newrelic/get_user.py +0 -4
  32. pulumi_newrelic/group.py +0 -12
  33. pulumi_newrelic/infra_alert_condition.py +126 -113
  34. pulumi_newrelic/insights/event.py +0 -17
  35. pulumi_newrelic/log_parsing_rule.py +0 -8
  36. pulumi_newrelic/monitor_downtime.py +70 -101
  37. pulumi_newrelic/notification_channel.py +0 -44
  38. pulumi_newrelic/notification_destination.py +95 -1
  39. pulumi_newrelic/nrql_alert_condition.py +0 -20
  40. pulumi_newrelic/nrql_drop_rule.py +28 -32
  41. pulumi_newrelic/obfuscation_expression.py +0 -4
  42. pulumi_newrelic/obfuscation_rule.py +0 -4
  43. pulumi_newrelic/one_dashboard.py +42 -48
  44. pulumi_newrelic/one_dashboard_raw.py +0 -4
  45. pulumi_newrelic/outputs.py +180 -270
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +0 -4
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +28 -48
  50. pulumi_newrelic/service_level.py +0 -91
  51. pulumi_newrelic/synthetics/alert_condition.py +14 -50
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
  54. pulumi_newrelic/synthetics/get_private_location.py +0 -8
  55. pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
  56. pulumi_newrelic/synthetics/monitor.py +0 -16
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
  58. pulumi_newrelic/synthetics/private_location.py +0 -4
  59. pulumi_newrelic/synthetics/script_monitor.py +4 -20
  60. pulumi_newrelic/synthetics/secure_credential.py +21 -18
  61. pulumi_newrelic/synthetics/step_monitor.py +4 -12
  62. pulumi_newrelic/user.py +0 -4
  63. pulumi_newrelic/workflow.py +0 -16
  64. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0a1713984329.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713984329.dist-info}/top_level.txt +0 -0
@@ -32,26 +32,21 @@ class AlertConditionArgs:
32
32
  """
33
33
  The set of arguments for constructing a AlertCondition resource.
34
34
  :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
35
- :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
35
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the type set.
36
36
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
37
- :param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
38
- :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
39
- :param pulumi.Input[str] condition_scope: `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).
40
- :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
41
- :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
42
- :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
37
+ :param pulumi.Input[str] type: The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
38
+ servers_metric).
39
+ :param pulumi.Input[str] condition_scope: One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
40
+ instance setting allows your condition to trigger for specific app instances.
41
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled.
42
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
43
+ gc_cpu_time condition type.
44
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
43
45
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
44
46
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
45
- :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
46
-
47
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
48
-
49
- ```
50
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
51
- ```
52
- :param pulumi.Input[int] violation_close_timer: 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:
53
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
54
- * when `type` = `apm_jvm_metric`
47
+ :param pulumi.Input[str] user_defined_value_function: One of: (average, min, max, total, sample_size, percent, rate).
48
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
49
+ specified. Must be between 1 and 720 hours.
55
50
  """
56
51
  pulumi.set(__self__, "entities", entities)
57
52
  pulumi.set(__self__, "metric", metric)
@@ -91,7 +86,7 @@ class AlertConditionArgs:
91
86
  @pulumi.getter
92
87
  def metric(self) -> pulumi.Input[str]:
93
88
  """
94
- The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
89
+ The metric field accepts parameters based on the type set.
95
90
  """
96
91
  return pulumi.get(self, "metric")
97
92
 
@@ -114,9 +109,6 @@ class AlertConditionArgs:
114
109
  @property
115
110
  @pulumi.getter
116
111
  def terms(self) -> pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]:
117
- """
118
- A list of terms for this condition. See Terms below for details.
119
- """
120
112
  return pulumi.get(self, "terms")
121
113
 
122
114
  @terms.setter
@@ -127,7 +119,8 @@ class AlertConditionArgs:
127
119
  @pulumi.getter
128
120
  def type(self) -> pulumi.Input[str]:
129
121
  """
130
- The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
122
+ The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
123
+ servers_metric).
131
124
  """
132
125
  return pulumi.get(self, "type")
133
126
 
@@ -139,7 +132,8 @@ class AlertConditionArgs:
139
132
  @pulumi.getter(name="conditionScope")
140
133
  def condition_scope(self) -> Optional[pulumi.Input[str]]:
141
134
  """
142
- `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).
135
+ One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
136
+ instance setting allows your condition to trigger for specific app instances.
143
137
  """
144
138
  return pulumi.get(self, "condition_scope")
145
139
 
@@ -151,7 +145,7 @@ class AlertConditionArgs:
151
145
  @pulumi.getter
152
146
  def enabled(self) -> Optional[pulumi.Input[bool]]:
153
147
  """
154
- Whether the condition is enabled or not. Defaults to true.
148
+ Whether the condition is enabled.
155
149
  """
156
150
  return pulumi.get(self, "enabled")
157
151
 
@@ -163,7 +157,8 @@ class AlertConditionArgs:
163
157
  @pulumi.getter(name="gcMetric")
164
158
  def gc_metric(self) -> Optional[pulumi.Input[str]]:
165
159
  """
166
- A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
160
+ A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
161
+ gc_cpu_time condition type.
167
162
  """
168
163
  return pulumi.get(self, "gc_metric")
169
164
 
@@ -175,7 +170,7 @@ class AlertConditionArgs:
175
170
  @pulumi.getter
176
171
  def name(self) -> Optional[pulumi.Input[str]]:
177
172
  """
178
- The title of the condition. Must be between 1 and 64 characters, inclusive.
173
+ The title of the condition. Must be between 1 and 128 characters, inclusive.
179
174
  """
180
175
  return pulumi.get(self, "name")
181
176
 
@@ -211,13 +206,7 @@ class AlertConditionArgs:
211
206
  @pulumi.getter(name="userDefinedValueFunction")
212
207
  def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
213
208
  """
214
- One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
215
-
216
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
217
-
218
- ```
219
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
220
- ```
209
+ One of: (average, min, max, total, sample_size, percent, rate).
221
210
  """
222
211
  return pulumi.get(self, "user_defined_value_function")
223
212
 
@@ -229,9 +218,8 @@ class AlertConditionArgs:
229
218
  @pulumi.getter(name="violationCloseTimer")
230
219
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
231
220
  """
232
- 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:
233
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
234
- * when `type` = `apm_jvm_metric`
221
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
222
+ specified. Must be between 1 and 720 hours.
235
223
  """
236
224
  return pulumi.get(self, "violation_close_timer")
237
225
 
@@ -259,28 +247,23 @@ class _AlertConditionState:
259
247
  violation_close_timer: Optional[pulumi.Input[int]] = None):
260
248
  """
261
249
  Input properties used for looking up and filtering AlertCondition resources.
262
- :param pulumi.Input[str] condition_scope: `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).
263
- :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
250
+ :param pulumi.Input[str] condition_scope: One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
251
+ instance setting allows your condition to trigger for specific app instances.
252
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled.
264
253
  :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
265
254
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
266
- :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
267
- :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
268
- :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
255
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
256
+ gc_cpu_time condition type.
257
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the type set.
258
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
269
259
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
270
260
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
271
- :param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
272
- :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
261
+ :param pulumi.Input[str] type: The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
262
+ servers_metric).
273
263
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
274
- :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
275
-
276
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
277
-
278
- ```
279
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
280
- ```
281
- :param pulumi.Input[int] violation_close_timer: 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:
282
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
283
- * when `type` = `apm_jvm_metric`
264
+ :param pulumi.Input[str] user_defined_value_function: One of: (average, min, max, total, sample_size, percent, rate).
265
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
266
+ specified. Must be between 1 and 720 hours.
284
267
  """
285
268
  if condition_scope is not None:
286
269
  pulumi.set(__self__, "condition_scope", condition_scope)
@@ -315,7 +298,8 @@ class _AlertConditionState:
315
298
  @pulumi.getter(name="conditionScope")
316
299
  def condition_scope(self) -> Optional[pulumi.Input[str]]:
317
300
  """
318
- `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).
301
+ One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
302
+ instance setting allows your condition to trigger for specific app instances.
319
303
  """
320
304
  return pulumi.get(self, "condition_scope")
321
305
 
@@ -327,7 +311,7 @@ class _AlertConditionState:
327
311
  @pulumi.getter
328
312
  def enabled(self) -> Optional[pulumi.Input[bool]]:
329
313
  """
330
- Whether the condition is enabled or not. Defaults to true.
314
+ Whether the condition is enabled.
331
315
  """
332
316
  return pulumi.get(self, "enabled")
333
317
 
@@ -363,7 +347,8 @@ class _AlertConditionState:
363
347
  @pulumi.getter(name="gcMetric")
364
348
  def gc_metric(self) -> Optional[pulumi.Input[str]]:
365
349
  """
366
- A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
350
+ A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
351
+ gc_cpu_time condition type.
367
352
  """
368
353
  return pulumi.get(self, "gc_metric")
369
354
 
@@ -375,7 +360,7 @@ class _AlertConditionState:
375
360
  @pulumi.getter
376
361
  def metric(self) -> Optional[pulumi.Input[str]]:
377
362
  """
378
- The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
363
+ The metric field accepts parameters based on the type set.
379
364
  """
380
365
  return pulumi.get(self, "metric")
381
366
 
@@ -387,7 +372,7 @@ class _AlertConditionState:
387
372
  @pulumi.getter
388
373
  def name(self) -> Optional[pulumi.Input[str]]:
389
374
  """
390
- The title of the condition. Must be between 1 and 64 characters, inclusive.
375
+ The title of the condition. Must be between 1 and 128 characters, inclusive.
391
376
  """
392
377
  return pulumi.get(self, "name")
393
378
 
@@ -422,9 +407,6 @@ class _AlertConditionState:
422
407
  @property
423
408
  @pulumi.getter
424
409
  def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]:
425
- """
426
- A list of terms for this condition. See Terms below for details.
427
- """
428
410
  return pulumi.get(self, "terms")
429
411
 
430
412
  @terms.setter
@@ -435,7 +417,8 @@ class _AlertConditionState:
435
417
  @pulumi.getter
436
418
  def type(self) -> Optional[pulumi.Input[str]]:
437
419
  """
438
- The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
420
+ The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
421
+ servers_metric).
439
422
  """
440
423
  return pulumi.get(self, "type")
441
424
 
@@ -459,13 +442,7 @@ class _AlertConditionState:
459
442
  @pulumi.getter(name="userDefinedValueFunction")
460
443
  def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
461
444
  """
462
- One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
463
-
464
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
465
-
466
- ```
467
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
468
- ```
445
+ One of: (average, min, max, total, sample_size, percent, rate).
469
446
  """
470
447
  return pulumi.get(self, "user_defined_value_function")
471
448
 
@@ -477,9 +454,8 @@ class _AlertConditionState:
477
454
  @pulumi.getter(name="violationCloseTimer")
478
455
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
479
456
  """
480
- 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:
481
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
482
- * when `type` = `apm_jvm_metric`
457
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
458
+ specified. Must be between 1 and 720 hours.
483
459
  """
484
460
  return pulumi.get(self, "violation_close_timer")
485
461
 
@@ -514,7 +490,6 @@ class AlertCondition(pulumi.CustomResource):
514
490
 
515
491
  ## Example Usage
516
492
 
517
- <!--Start PulumiCodeChooser -->
518
493
  ```python
519
494
  import pulumi
520
495
  import pulumi_newrelic as newrelic
@@ -539,7 +514,6 @@ class AlertCondition(pulumi.CustomResource):
539
514
  time_function="all",
540
515
  )])
541
516
  ```
542
- <!--End PulumiCodeChooser -->
543
517
 
544
518
  ## Terms
545
519
 
@@ -555,7 +529,6 @@ class AlertCondition(pulumi.CustomResource):
555
529
 
556
530
  Manage alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
557
531
 
558
- <!--Start PulumiCodeChooser -->
559
532
  ```python
560
533
  import pulumi
561
534
  import pulumi_newrelic as newrelic
@@ -593,7 +566,6 @@ class AlertCondition(pulumi.CustomResource):
593
566
  ),
594
567
  ])
595
568
  ```
596
- <!--End PulumiCodeChooser -->
597
569
 
598
570
  ## Import
599
571
 
@@ -605,27 +577,22 @@ class AlertCondition(pulumi.CustomResource):
605
577
 
606
578
  :param str resource_name: The name of the resource.
607
579
  :param pulumi.ResourceOptions opts: Options for the resource.
608
- :param pulumi.Input[str] condition_scope: `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).
609
- :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
580
+ :param pulumi.Input[str] condition_scope: One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
581
+ instance setting allows your condition to trigger for specific app instances.
582
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled.
610
583
  :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
611
- :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
612
- :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
613
- :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
584
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
585
+ gc_cpu_time condition type.
586
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the type set.
587
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
614
588
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
615
589
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
616
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
617
- :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
590
+ :param pulumi.Input[str] type: The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
591
+ servers_metric).
618
592
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
619
- :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
620
-
621
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
622
-
623
- ```
624
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
625
- ```
626
- :param pulumi.Input[int] violation_close_timer: 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:
627
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
628
- * when `type` = `apm_jvm_metric`
593
+ :param pulumi.Input[str] user_defined_value_function: One of: (average, min, max, total, sample_size, percent, rate).
594
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
595
+ specified. Must be between 1 and 720 hours.
629
596
  """
630
597
  ...
631
598
  @overload
@@ -640,7 +607,6 @@ class AlertCondition(pulumi.CustomResource):
640
607
 
641
608
  ## Example Usage
642
609
 
643
- <!--Start PulumiCodeChooser -->
644
610
  ```python
645
611
  import pulumi
646
612
  import pulumi_newrelic as newrelic
@@ -665,7 +631,6 @@ class AlertCondition(pulumi.CustomResource):
665
631
  time_function="all",
666
632
  )])
667
633
  ```
668
- <!--End PulumiCodeChooser -->
669
634
 
670
635
  ## Terms
671
636
 
@@ -681,7 +646,6 @@ class AlertCondition(pulumi.CustomResource):
681
646
 
682
647
  Manage alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
683
648
 
684
- <!--Start PulumiCodeChooser -->
685
649
  ```python
686
650
  import pulumi
687
651
  import pulumi_newrelic as newrelic
@@ -719,7 +683,6 @@ class AlertCondition(pulumi.CustomResource):
719
683
  ),
720
684
  ])
721
685
  ```
722
- <!--End PulumiCodeChooser -->
723
686
 
724
687
  ## Import
725
688
 
@@ -821,28 +784,23 @@ class AlertCondition(pulumi.CustomResource):
821
784
  :param str resource_name: The unique name of the resulting resource.
822
785
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
823
786
  :param pulumi.ResourceOptions opts: Options for the resource.
824
- :param pulumi.Input[str] condition_scope: `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).
825
- :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
787
+ :param pulumi.Input[str] condition_scope: One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
788
+ instance setting allows your condition to trigger for specific app instances.
789
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled.
826
790
  :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
827
791
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
828
- :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
829
- :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
830
- :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
792
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
793
+ gc_cpu_time condition type.
794
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the type set.
795
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 128 characters, inclusive.
831
796
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
832
797
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
833
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
834
- :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
798
+ :param pulumi.Input[str] type: The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
799
+ servers_metric).
835
800
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
836
- :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
837
-
838
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
839
-
840
- ```
841
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
842
- ```
843
- :param pulumi.Input[int] violation_close_timer: 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:
844
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
845
- * when `type` = `apm_jvm_metric`
801
+ :param pulumi.Input[str] user_defined_value_function: One of: (average, min, max, total, sample_size, percent, rate).
802
+ :param pulumi.Input[int] violation_close_timer: Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
803
+ specified. Must be between 1 and 720 hours.
846
804
  """
847
805
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
848
806
 
@@ -868,7 +826,8 @@ class AlertCondition(pulumi.CustomResource):
868
826
  @pulumi.getter(name="conditionScope")
869
827
  def condition_scope(self) -> pulumi.Output[Optional[str]]:
870
828
  """
871
- `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).
829
+ One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the
830
+ instance setting allows your condition to trigger for specific app instances.
872
831
  """
873
832
  return pulumi.get(self, "condition_scope")
874
833
 
@@ -876,7 +835,7 @@ class AlertCondition(pulumi.CustomResource):
876
835
  @pulumi.getter
877
836
  def enabled(self) -> pulumi.Output[Optional[bool]]:
878
837
  """
879
- Whether the condition is enabled or not. Defaults to true.
838
+ Whether the condition is enabled.
880
839
  """
881
840
  return pulumi.get(self, "enabled")
882
841
 
@@ -900,7 +859,8 @@ class AlertCondition(pulumi.CustomResource):
900
859
  @pulumi.getter(name="gcMetric")
901
860
  def gc_metric(self) -> pulumi.Output[Optional[str]]:
902
861
  """
903
- A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
862
+ A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with
863
+ gc_cpu_time condition type.
904
864
  """
905
865
  return pulumi.get(self, "gc_metric")
906
866
 
@@ -908,7 +868,7 @@ class AlertCondition(pulumi.CustomResource):
908
868
  @pulumi.getter
909
869
  def metric(self) -> pulumi.Output[str]:
910
870
  """
911
- The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
871
+ The metric field accepts parameters based on the type set.
912
872
  """
913
873
  return pulumi.get(self, "metric")
914
874
 
@@ -916,7 +876,7 @@ class AlertCondition(pulumi.CustomResource):
916
876
  @pulumi.getter
917
877
  def name(self) -> pulumi.Output[str]:
918
878
  """
919
- The title of the condition. Must be between 1 and 64 characters, inclusive.
879
+ The title of the condition. Must be between 1 and 128 characters, inclusive.
920
880
  """
921
881
  return pulumi.get(self, "name")
922
882
 
@@ -939,16 +899,14 @@ class AlertCondition(pulumi.CustomResource):
939
899
  @property
940
900
  @pulumi.getter
941
901
  def terms(self) -> pulumi.Output[Sequence['outputs.AlertConditionTerm']]:
942
- """
943
- A list of terms for this condition. See Terms below for details.
944
- """
945
902
  return pulumi.get(self, "terms")
946
903
 
947
904
  @property
948
905
  @pulumi.getter
949
906
  def type(self) -> pulumi.Output[str]:
950
907
  """
951
- The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
908
+ The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
909
+ servers_metric).
952
910
  """
953
911
  return pulumi.get(self, "type")
954
912
 
@@ -964,13 +922,7 @@ class AlertCondition(pulumi.CustomResource):
964
922
  @pulumi.getter(name="userDefinedValueFunction")
965
923
  def user_defined_value_function(self) -> pulumi.Output[Optional[str]]:
966
924
  """
967
- One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
968
-
969
- > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
970
-
971
- ```
972
- Warning: This resource will use the account ID linked to your API key. At the moment it is not possible to dynamically set the account ID.
973
- ```
925
+ One of: (average, min, max, total, sample_size, percent, rate).
974
926
  """
975
927
  return pulumi.get(self, "user_defined_value_function")
976
928
 
@@ -978,9 +930,8 @@ class AlertCondition(pulumi.CustomResource):
978
930
  @pulumi.getter(name="violationCloseTimer")
979
931
  def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
980
932
  """
981
- 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:
982
- * when `type` = `apm_app_metric` and `condition_scope` = `instance`
983
- * when `type` = `apm_jvm_metric`
933
+ Automatically close instance-based incidents, including JVM health metric incidents, after the number of hours
934
+ specified. Must be between 1 and 720 hours.
984
935
  """
985
936
  return pulumi.get(self, "violation_close_timer")
986
937