pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.25.0__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 (69) hide show
  1. pulumi_newrelic/_inputs.py +499 -93
  2. pulumi_newrelic/account_management.py +14 -14
  3. pulumi_newrelic/alert_channel.py +38 -38
  4. pulumi_newrelic/alert_condition.py +153 -112
  5. pulumi_newrelic/alert_muting_rule.py +31 -31
  6. pulumi_newrelic/alert_policy.py +47 -41
  7. pulumi_newrelic/alert_policy_channel.py +42 -42
  8. pulumi_newrelic/api_access_key.py +28 -28
  9. pulumi_newrelic/browser_application.py +14 -14
  10. pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
  11. pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
  12. pulumi_newrelic/cloud/aws_integrations.py +28 -28
  13. pulumi_newrelic/cloud/aws_link_account.py +14 -14
  14. pulumi_newrelic/cloud/azure_integrations.py +28 -28
  15. pulumi_newrelic/cloud/azure_link_account.py +14 -14
  16. pulumi_newrelic/cloud/gcp_integrations.py +28 -28
  17. pulumi_newrelic/cloud/gcp_link_account.py +14 -14
  18. pulumi_newrelic/config/__init__.pyi +1 -1
  19. pulumi_newrelic/config/vars.py +2 -2
  20. pulumi_newrelic/data_partition_rule.py +14 -14
  21. pulumi_newrelic/entity_tags.py +7 -7
  22. pulumi_newrelic/events_to_metrics_rule.py +16 -16
  23. pulumi_newrelic/get_account.py +7 -7
  24. pulumi_newrelic/get_alert_channel.py +8 -8
  25. pulumi_newrelic/get_alert_policy.py +16 -7
  26. pulumi_newrelic/get_application.py +2 -2
  27. pulumi_newrelic/get_cloud_account.py +9 -9
  28. pulumi_newrelic/get_entity.py +15 -15
  29. pulumi_newrelic/get_notification_destination.py +7 -7
  30. pulumi_newrelic/get_obfuscation_expression.py +9 -9
  31. pulumi_newrelic/get_service_level_alert_helper.py +28 -10
  32. pulumi_newrelic/get_test_grok_pattern.py +7 -7
  33. pulumi_newrelic/infra_alert_condition.py +119 -140
  34. pulumi_newrelic/insights/event.py +13 -0
  35. pulumi_newrelic/log_parsing_rule.py +14 -14
  36. pulumi_newrelic/monitor_downtime.py +14 -14
  37. pulumi_newrelic/notification_channel.py +36 -36
  38. pulumi_newrelic/notification_destination.py +28 -24
  39. pulumi_newrelic/nrql_alert_condition.py +32 -32
  40. pulumi_newrelic/nrql_drop_rule.py +44 -44
  41. pulumi_newrelic/obfuscation_expression.py +16 -16
  42. pulumi_newrelic/obfuscation_rule.py +14 -14
  43. pulumi_newrelic/one_dashboard.py +58 -52
  44. pulumi_newrelic/one_dashboard_json.py +14 -14
  45. pulumi_newrelic/one_dashboard_raw.py +14 -14
  46. pulumi_newrelic/outputs.py +482 -77
  47. pulumi_newrelic/plugins/_inputs.py +8 -8
  48. pulumi_newrelic/plugins/outputs.py +8 -8
  49. pulumi_newrelic/plugins/workload.py +83 -83
  50. pulumi_newrelic/provider.py +14 -9
  51. pulumi_newrelic/pulumi-plugin.json +2 -1
  52. pulumi_newrelic/service_level.py +85 -6
  53. pulumi_newrelic/synthetics/alert_condition.py +56 -28
  54. pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
  55. pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
  56. pulumi_newrelic/synthetics/get_private_location.py +11 -11
  57. pulumi_newrelic/synthetics/get_secure_credential.py +13 -5
  58. pulumi_newrelic/synthetics/monitor.py +18 -14
  59. pulumi_newrelic/synthetics/multi_location_alert_condition.py +77 -63
  60. pulumi_newrelic/synthetics/private_location.py +14 -14
  61. pulumi_newrelic/synthetics/script_monitor.py +18 -14
  62. pulumi_newrelic/synthetics/secure_credential.py +24 -31
  63. pulumi_newrelic/synthetics/step_monitor.py +32 -14
  64. pulumi_newrelic/workflow.py +14 -14
  65. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
  66. pulumi_newrelic-5.25.0.dist-info/RECORD +89 -0
  67. pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
  68. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
  69. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
@@ -16,9 +16,9 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
16
16
  @pulumi.input_type
17
17
  class AlertConditionArgs:
18
18
  def __init__(__self__, *,
19
- entities: pulumi.Input[Sequence[pulumi.Input[int]]],
19
+ entities: pulumi.Input[Sequence[pulumi.Input[str]]],
20
20
  metric: pulumi.Input[str],
21
- policy_id: pulumi.Input[int],
21
+ policy_id: pulumi.Input[str],
22
22
  terms: pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]],
23
23
  type: pulumi.Input[str],
24
24
  condition_scope: Optional[pulumi.Input[str]] = None,
@@ -31,22 +31,27 @@ class AlertConditionArgs:
31
31
  violation_close_timer: Optional[pulumi.Input[int]] = None):
32
32
  """
33
33
  The set of arguments for constructing a AlertCondition resource.
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.
36
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
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.
34
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] 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`:
36
+ :param pulumi.Input[str] 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.
45
43
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
46
44
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
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.
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`
50
55
  """
51
56
  pulumi.set(__self__, "entities", entities)
52
57
  pulumi.set(__self__, "metric", metric)
@@ -72,21 +77,21 @@ class AlertConditionArgs:
72
77
 
73
78
  @property
74
79
  @pulumi.getter
75
- def entities(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]:
80
+ def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
76
81
  """
77
82
  The instance IDs associated with this condition.
78
83
  """
79
84
  return pulumi.get(self, "entities")
80
85
 
81
86
  @entities.setter
82
- def entities(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]):
87
+ def entities(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
83
88
  pulumi.set(self, "entities", value)
84
89
 
85
90
  @property
86
91
  @pulumi.getter
87
92
  def metric(self) -> pulumi.Input[str]:
88
93
  """
89
- The metric field accepts parameters based on the type set.
94
+ The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
90
95
  """
91
96
  return pulumi.get(self, "metric")
92
97
 
@@ -96,19 +101,22 @@ class AlertConditionArgs:
96
101
 
97
102
  @property
98
103
  @pulumi.getter(name="policyId")
99
- def policy_id(self) -> pulumi.Input[int]:
104
+ def policy_id(self) -> pulumi.Input[str]:
100
105
  """
101
106
  The ID of the policy where this condition should be used.
102
107
  """
103
108
  return pulumi.get(self, "policy_id")
104
109
 
105
110
  @policy_id.setter
106
- def policy_id(self, value: pulumi.Input[int]):
111
+ def policy_id(self, value: pulumi.Input[str]):
107
112
  pulumi.set(self, "policy_id", value)
108
113
 
109
114
  @property
110
115
  @pulumi.getter
111
116
  def terms(self) -> pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]:
117
+ """
118
+ A list of terms for this condition. See Terms below for details.
119
+ """
112
120
  return pulumi.get(self, "terms")
113
121
 
114
122
  @terms.setter
@@ -119,8 +127,7 @@ class AlertConditionArgs:
119
127
  @pulumi.getter
120
128
  def type(self) -> pulumi.Input[str]:
121
129
  """
122
- The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
123
- servers_metric).
130
+ The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
124
131
  """
125
132
  return pulumi.get(self, "type")
126
133
 
@@ -132,8 +139,7 @@ class AlertConditionArgs:
132
139
  @pulumi.getter(name="conditionScope")
133
140
  def condition_scope(self) -> Optional[pulumi.Input[str]]:
134
141
  """
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.
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).
137
143
  """
138
144
  return pulumi.get(self, "condition_scope")
139
145
 
@@ -145,7 +151,7 @@ class AlertConditionArgs:
145
151
  @pulumi.getter
146
152
  def enabled(self) -> Optional[pulumi.Input[bool]]:
147
153
  """
148
- Whether the condition is enabled.
154
+ Whether the condition is enabled or not. Defaults to true.
149
155
  """
150
156
  return pulumi.get(self, "enabled")
151
157
 
@@ -157,8 +163,7 @@ class AlertConditionArgs:
157
163
  @pulumi.getter(name="gcMetric")
158
164
  def gc_metric(self) -> Optional[pulumi.Input[str]]:
159
165
  """
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.
166
+ A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
162
167
  """
163
168
  return pulumi.get(self, "gc_metric")
164
169
 
@@ -170,7 +175,7 @@ class AlertConditionArgs:
170
175
  @pulumi.getter
171
176
  def name(self) -> Optional[pulumi.Input[str]]:
172
177
  """
173
- The title of the condition. Must be between 1 and 128 characters, inclusive.
178
+ The title of the condition. Must be between 1 and 64 characters, inclusive.
174
179
  """
175
180
  return pulumi.get(self, "name")
176
181
 
@@ -206,7 +211,13 @@ class AlertConditionArgs:
206
211
  @pulumi.getter(name="userDefinedValueFunction")
207
212
  def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
208
213
  """
209
- One of: (average, min, max, total, sample_size, percent, rate).
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
+ ```
210
221
  """
211
222
  return pulumi.get(self, "user_defined_value_function")
212
223
 
@@ -218,8 +229,9 @@ class AlertConditionArgs:
218
229
  @pulumi.getter(name="violationCloseTimer")
219
230
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
220
231
  """
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.
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`
223
235
  """
224
236
  return pulumi.get(self, "violation_close_timer")
225
237
 
@@ -233,12 +245,12 @@ class _AlertConditionState:
233
245
  def __init__(__self__, *,
234
246
  condition_scope: Optional[pulumi.Input[str]] = None,
235
247
  enabled: Optional[pulumi.Input[bool]] = None,
236
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
248
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
237
249
  entity_guid: Optional[pulumi.Input[str]] = None,
238
250
  gc_metric: Optional[pulumi.Input[str]] = None,
239
251
  metric: Optional[pulumi.Input[str]] = None,
240
252
  name: Optional[pulumi.Input[str]] = None,
241
- policy_id: Optional[pulumi.Input[int]] = None,
253
+ policy_id: Optional[pulumi.Input[str]] = None,
242
254
  runbook_url: Optional[pulumi.Input[str]] = None,
243
255
  terms: Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]] = None,
244
256
  type: Optional[pulumi.Input[str]] = None,
@@ -247,23 +259,28 @@ class _AlertConditionState:
247
259
  violation_close_timer: Optional[pulumi.Input[int]] = None):
248
260
  """
249
261
  Input properties used for looking up and filtering AlertCondition resources.
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.
253
- :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
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.
264
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
254
265
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
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.
259
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
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.
269
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
260
270
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
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).
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`
263
273
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
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.
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`
267
284
  """
268
285
  if condition_scope is not None:
269
286
  pulumi.set(__self__, "condition_scope", condition_scope)
@@ -298,8 +315,7 @@ class _AlertConditionState:
298
315
  @pulumi.getter(name="conditionScope")
299
316
  def condition_scope(self) -> Optional[pulumi.Input[str]]:
300
317
  """
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.
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).
303
319
  """
304
320
  return pulumi.get(self, "condition_scope")
305
321
 
@@ -311,7 +327,7 @@ class _AlertConditionState:
311
327
  @pulumi.getter
312
328
  def enabled(self) -> Optional[pulumi.Input[bool]]:
313
329
  """
314
- Whether the condition is enabled.
330
+ Whether the condition is enabled or not. Defaults to true.
315
331
  """
316
332
  return pulumi.get(self, "enabled")
317
333
 
@@ -321,14 +337,14 @@ class _AlertConditionState:
321
337
 
322
338
  @property
323
339
  @pulumi.getter
324
- def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
340
+ def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
325
341
  """
326
342
  The instance IDs associated with this condition.
327
343
  """
328
344
  return pulumi.get(self, "entities")
329
345
 
330
346
  @entities.setter
331
- def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
347
+ def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
332
348
  pulumi.set(self, "entities", value)
333
349
 
334
350
  @property
@@ -347,8 +363,7 @@ class _AlertConditionState:
347
363
  @pulumi.getter(name="gcMetric")
348
364
  def gc_metric(self) -> Optional[pulumi.Input[str]]:
349
365
  """
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.
366
+ A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
352
367
  """
353
368
  return pulumi.get(self, "gc_metric")
354
369
 
@@ -360,7 +375,7 @@ class _AlertConditionState:
360
375
  @pulumi.getter
361
376
  def metric(self) -> Optional[pulumi.Input[str]]:
362
377
  """
363
- The metric field accepts parameters based on the type set.
378
+ The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
364
379
  """
365
380
  return pulumi.get(self, "metric")
366
381
 
@@ -372,7 +387,7 @@ class _AlertConditionState:
372
387
  @pulumi.getter
373
388
  def name(self) -> Optional[pulumi.Input[str]]:
374
389
  """
375
- The title of the condition. Must be between 1 and 128 characters, inclusive.
390
+ The title of the condition. Must be between 1 and 64 characters, inclusive.
376
391
  """
377
392
  return pulumi.get(self, "name")
378
393
 
@@ -382,14 +397,14 @@ class _AlertConditionState:
382
397
 
383
398
  @property
384
399
  @pulumi.getter(name="policyId")
385
- def policy_id(self) -> Optional[pulumi.Input[int]]:
400
+ def policy_id(self) -> Optional[pulumi.Input[str]]:
386
401
  """
387
402
  The ID of the policy where this condition should be used.
388
403
  """
389
404
  return pulumi.get(self, "policy_id")
390
405
 
391
406
  @policy_id.setter
392
- def policy_id(self, value: Optional[pulumi.Input[int]]):
407
+ def policy_id(self, value: Optional[pulumi.Input[str]]):
393
408
  pulumi.set(self, "policy_id", value)
394
409
 
395
410
  @property
@@ -407,6 +422,9 @@ class _AlertConditionState:
407
422
  @property
408
423
  @pulumi.getter
409
424
  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
+ """
410
428
  return pulumi.get(self, "terms")
411
429
 
412
430
  @terms.setter
@@ -417,8 +435,7 @@ class _AlertConditionState:
417
435
  @pulumi.getter
418
436
  def type(self) -> Optional[pulumi.Input[str]]:
419
437
  """
420
- The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
421
- servers_metric).
438
+ The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
422
439
  """
423
440
  return pulumi.get(self, "type")
424
441
 
@@ -442,7 +459,13 @@ class _AlertConditionState:
442
459
  @pulumi.getter(name="userDefinedValueFunction")
443
460
  def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
444
461
  """
445
- One of: (average, min, max, total, sample_size, percent, rate).
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
+ ```
446
469
  """
447
470
  return pulumi.get(self, "user_defined_value_function")
448
471
 
@@ -454,8 +477,9 @@ class _AlertConditionState:
454
477
  @pulumi.getter(name="violationCloseTimer")
455
478
  def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
456
479
  """
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.
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`
459
483
  """
460
484
  return pulumi.get(self, "violation_close_timer")
461
485
 
@@ -471,11 +495,11 @@ class AlertCondition(pulumi.CustomResource):
471
495
  opts: Optional[pulumi.ResourceOptions] = None,
472
496
  condition_scope: Optional[pulumi.Input[str]] = None,
473
497
  enabled: Optional[pulumi.Input[bool]] = None,
474
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
498
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
475
499
  gc_metric: Optional[pulumi.Input[str]] = None,
476
500
  metric: Optional[pulumi.Input[str]] = None,
477
501
  name: Optional[pulumi.Input[str]] = None,
478
- policy_id: Optional[pulumi.Input[int]] = None,
502
+ policy_id: Optional[pulumi.Input[str]] = None,
479
503
  runbook_url: Optional[pulumi.Input[str]] = None,
480
504
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
481
505
  type: Optional[pulumi.Input[str]] = None,
@@ -577,22 +601,27 @@ class AlertCondition(pulumi.CustomResource):
577
601
 
578
602
  :param str resource_name: The name of the resource.
579
603
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
583
- :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
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.
588
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
604
+ :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).
605
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
606
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
607
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
608
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
609
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
610
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
589
611
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
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).
612
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
613
+ :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
592
614
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
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.
615
+ :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
616
+
617
+ > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
618
+
619
+ ```
620
+ 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.
621
+ ```
622
+ :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:
623
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
624
+ * when `type` = `apm_jvm_metric`
596
625
  """
597
626
  ...
598
627
  @overload
@@ -709,11 +738,11 @@ class AlertCondition(pulumi.CustomResource):
709
738
  opts: Optional[pulumi.ResourceOptions] = None,
710
739
  condition_scope: Optional[pulumi.Input[str]] = None,
711
740
  enabled: Optional[pulumi.Input[bool]] = None,
712
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
741
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
713
742
  gc_metric: Optional[pulumi.Input[str]] = None,
714
743
  metric: Optional[pulumi.Input[str]] = None,
715
744
  name: Optional[pulumi.Input[str]] = None,
716
- policy_id: Optional[pulumi.Input[int]] = None,
745
+ policy_id: Optional[pulumi.Input[str]] = None,
717
746
  runbook_url: Optional[pulumi.Input[str]] = None,
718
747
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
719
748
  type: Optional[pulumi.Input[str]] = None,
@@ -765,12 +794,12 @@ class AlertCondition(pulumi.CustomResource):
765
794
  opts: Optional[pulumi.ResourceOptions] = None,
766
795
  condition_scope: Optional[pulumi.Input[str]] = None,
767
796
  enabled: Optional[pulumi.Input[bool]] = None,
768
- entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
797
+ entities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
769
798
  entity_guid: Optional[pulumi.Input[str]] = None,
770
799
  gc_metric: Optional[pulumi.Input[str]] = None,
771
800
  metric: Optional[pulumi.Input[str]] = None,
772
801
  name: Optional[pulumi.Input[str]] = None,
773
- policy_id: Optional[pulumi.Input[int]] = None,
802
+ policy_id: Optional[pulumi.Input[str]] = None,
774
803
  runbook_url: Optional[pulumi.Input[str]] = None,
775
804
  terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
776
805
  type: Optional[pulumi.Input[str]] = None,
@@ -784,23 +813,28 @@ class AlertCondition(pulumi.CustomResource):
784
813
  :param str resource_name: The unique name of the resulting resource.
785
814
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
786
815
  :param pulumi.ResourceOptions opts: Options for the resource.
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.
790
- :param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
816
+ :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).
817
+ :param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
818
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The instance IDs associated with this condition.
791
819
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
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.
796
- :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
820
+ :param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
821
+ :param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
822
+ :param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
823
+ :param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
797
824
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
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).
825
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
826
+ :param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
800
827
  :param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
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.
828
+ :param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
829
+
830
+ > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
831
+
832
+ ```
833
+ 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.
834
+ ```
835
+ :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:
836
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
837
+ * when `type` = `apm_jvm_metric`
804
838
  """
805
839
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
806
840
 
@@ -826,8 +860,7 @@ class AlertCondition(pulumi.CustomResource):
826
860
  @pulumi.getter(name="conditionScope")
827
861
  def condition_scope(self) -> pulumi.Output[Optional[str]]:
828
862
  """
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.
863
+ `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).
831
864
  """
832
865
  return pulumi.get(self, "condition_scope")
833
866
 
@@ -835,13 +868,13 @@ class AlertCondition(pulumi.CustomResource):
835
868
  @pulumi.getter
836
869
  def enabled(self) -> pulumi.Output[Optional[bool]]:
837
870
  """
838
- Whether the condition is enabled.
871
+ Whether the condition is enabled or not. Defaults to true.
839
872
  """
840
873
  return pulumi.get(self, "enabled")
841
874
 
842
875
  @property
843
876
  @pulumi.getter
844
- def entities(self) -> pulumi.Output[Sequence[int]]:
877
+ def entities(self) -> pulumi.Output[Sequence[str]]:
845
878
  """
846
879
  The instance IDs associated with this condition.
847
880
  """
@@ -859,8 +892,7 @@ class AlertCondition(pulumi.CustomResource):
859
892
  @pulumi.getter(name="gcMetric")
860
893
  def gc_metric(self) -> pulumi.Output[Optional[str]]:
861
894
  """
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.
895
+ A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
864
896
  """
865
897
  return pulumi.get(self, "gc_metric")
866
898
 
@@ -868,7 +900,7 @@ class AlertCondition(pulumi.CustomResource):
868
900
  @pulumi.getter
869
901
  def metric(self) -> pulumi.Output[str]:
870
902
  """
871
- The metric field accepts parameters based on the type set.
903
+ The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
872
904
  """
873
905
  return pulumi.get(self, "metric")
874
906
 
@@ -876,13 +908,13 @@ class AlertCondition(pulumi.CustomResource):
876
908
  @pulumi.getter
877
909
  def name(self) -> pulumi.Output[str]:
878
910
  """
879
- The title of the condition. Must be between 1 and 128 characters, inclusive.
911
+ The title of the condition. Must be between 1 and 64 characters, inclusive.
880
912
  """
881
913
  return pulumi.get(self, "name")
882
914
 
883
915
  @property
884
916
  @pulumi.getter(name="policyId")
885
- def policy_id(self) -> pulumi.Output[int]:
917
+ def policy_id(self) -> pulumi.Output[str]:
886
918
  """
887
919
  The ID of the policy where this condition should be used.
888
920
  """
@@ -899,14 +931,16 @@ class AlertCondition(pulumi.CustomResource):
899
931
  @property
900
932
  @pulumi.getter
901
933
  def terms(self) -> pulumi.Output[Sequence['outputs.AlertConditionTerm']]:
934
+ """
935
+ A list of terms for this condition. See Terms below for details.
936
+ """
902
937
  return pulumi.get(self, "terms")
903
938
 
904
939
  @property
905
940
  @pulumi.getter
906
941
  def type(self) -> pulumi.Output[str]:
907
942
  """
908
- The type of condition. One of: (apm_app_metric, apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric,
909
- servers_metric).
943
+ The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
910
944
  """
911
945
  return pulumi.get(self, "type")
912
946
 
@@ -922,7 +956,13 @@ class AlertCondition(pulumi.CustomResource):
922
956
  @pulumi.getter(name="userDefinedValueFunction")
923
957
  def user_defined_value_function(self) -> pulumi.Output[Optional[str]]:
924
958
  """
925
- One of: (average, min, max, total, sample_size, percent, rate).
959
+ One of: `average`, `min`, `max`, `total`, `sample_size`, `rate` or `percent`.
960
+
961
+ > **NOTE:** The `user_defined_value_function` can have `rate` or `percent` only when the `type` is `mobile_metric`.
962
+
963
+ ```
964
+ 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.
965
+ ```
926
966
  """
927
967
  return pulumi.get(self, "user_defined_value_function")
928
968
 
@@ -930,8 +970,9 @@ class AlertCondition(pulumi.CustomResource):
930
970
  @pulumi.getter(name="violationCloseTimer")
931
971
  def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
932
972
  """
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.
973
+ 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:
974
+ * when `type` = `apm_app_metric` and `condition_scope` = `instance`
975
+ * when `type` = `apm_jvm_metric`
935
976
  """
936
977
  return pulumi.get(self, "violation_close_timer")
937
978