pulumi-newrelic 5.23.0__py3-none-any.whl → 5.23.0a1711707796__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 +270 -183
  2. pulumi_newrelic/account_management.py +20 -20
  3. pulumi_newrelic/alert_channel.py +92 -76
  4. pulumi_newrelic/alert_condition.py +163 -104
  5. pulumi_newrelic/alert_muting_rule.py +35 -33
  6. pulumi_newrelic/alert_policy.py +43 -68
  7. pulumi_newrelic/alert_policy_channel.py +8 -12
  8. pulumi_newrelic/cloud/_inputs.py +1072 -322
  9. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -4
  10. pulumi_newrelic/cloud/aws_integrations.py +15 -13
  11. pulumi_newrelic/cloud/aws_link_account.py +6 -4
  12. pulumi_newrelic/cloud/azure_integrations.py +12 -10
  13. pulumi_newrelic/cloud/azure_link_account.py +6 -4
  14. pulumi_newrelic/cloud/gcp_integrations.py +6 -6
  15. pulumi_newrelic/cloud/gcp_link_account.py +6 -4
  16. pulumi_newrelic/cloud/outputs.py +1072 -322
  17. pulumi_newrelic/data_partition_rule.py +4 -0
  18. pulumi_newrelic/entity_tags.py +17 -13
  19. pulumi_newrelic/events_to_metrics_rule.py +4 -2
  20. pulumi_newrelic/get_account.py +4 -0
  21. pulumi_newrelic/get_application.py +10 -8
  22. pulumi_newrelic/get_authentication_domain.py +8 -4
  23. pulumi_newrelic/get_cloud_account.py +4 -0
  24. pulumi_newrelic/get_entity.py +32 -28
  25. pulumi_newrelic/get_group.py +8 -42
  26. pulumi_newrelic/get_key_transaction.py +10 -8
  27. pulumi_newrelic/get_notification_destination.py +1 -20
  28. pulumi_newrelic/get_obfuscation_expression.py +4 -2
  29. pulumi_newrelic/get_service_level_alert_helper.py +46 -22
  30. pulumi_newrelic/get_test_grok_pattern.py +6 -4
  31. pulumi_newrelic/get_user.py +4 -0
  32. pulumi_newrelic/group.py +42 -40
  33. pulumi_newrelic/infra_alert_condition.py +145 -154
  34. pulumi_newrelic/insights/event.py +25 -8
  35. pulumi_newrelic/log_parsing_rule.py +10 -6
  36. pulumi_newrelic/monitor_downtime.py +193 -174
  37. pulumi_newrelic/notification_channel.py +150 -124
  38. pulumi_newrelic/notification_destination.py +1 -95
  39. pulumi_newrelic/nrql_alert_condition.py +48 -38
  40. pulumi_newrelic/nrql_drop_rule.py +38 -34
  41. pulumi_newrelic/obfuscation_expression.py +4 -2
  42. pulumi_newrelic/obfuscation_rule.py +4 -4
  43. pulumi_newrelic/one_dashboard.py +48 -42
  44. pulumi_newrelic/one_dashboard_raw.py +86 -86
  45. pulumi_newrelic/outputs.py +270 -180
  46. pulumi_newrelic/plugins/_inputs.py +16 -16
  47. pulumi_newrelic/plugins/application_settings.py +36 -20
  48. pulumi_newrelic/plugins/outputs.py +16 -16
  49. pulumi_newrelic/plugins/workload.py +40 -158
  50. pulumi_newrelic/service_level.py +123 -38
  51. pulumi_newrelic/synthetics/alert_condition.py +78 -34
  52. pulumi_newrelic/synthetics/broken_links_monitor.py +20 -18
  53. pulumi_newrelic/synthetics/cert_check_monitor.py +18 -16
  54. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  55. pulumi_newrelic/synthetics/get_secure_credential.py +12 -0
  56. pulumi_newrelic/synthetics/monitor.py +52 -48
  57. pulumi_newrelic/synthetics/multi_location_alert_condition.py +83 -69
  58. pulumi_newrelic/synthetics/private_location.py +6 -6
  59. pulumi_newrelic/synthetics/script_monitor.py +42 -38
  60. pulumi_newrelic/synthetics/secure_credential.py +22 -25
  61. pulumi_newrelic/synthetics/step_monitor.py +20 -18
  62. pulumi_newrelic/user.py +10 -8
  63. pulumi_newrelic/workflow.py +24 -20
  64. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711707796.dist-info}/METADATA +1 -1
  65. pulumi_newrelic-5.23.0a1711707796.dist-info/RECORD +89 -0
  66. pulumi_newrelic-5.23.0.dist-info/RECORD +0 -89
  67. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711707796.dist-info}/WHEEL +0 -0
  68. {pulumi_newrelic-5.23.0.dist-info → pulumi_newrelic-5.23.0a1711707796.dist-info}/top_level.txt +0 -0
@@ -26,15 +26,17 @@ class MultiLocationAlertConditionArgs:
26
26
  warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
27
27
  """
28
28
  The set of arguments for constructing a MultiLocationAlertCondition resource.
29
- :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with priority set to critical.
30
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The GUIDs of the Synthetics monitors to alert on.
29
+ :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
30
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
31
31
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
32
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
33
- :param pulumi.Input[str] name: The title of this condition.
32
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
33
+ :param pulumi.Input[str] name: The title of the condition.
34
34
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
35
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
36
- select. Must be in the range of 300 to 2592000 (inclusive)
37
- :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with priority set to warning.
35
+ :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
36
+ :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
37
+
38
+
39
+ > **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.
38
40
  """
39
41
  pulumi.set(__self__, "critical", critical)
40
42
  pulumi.set(__self__, "entities", entities)
@@ -54,7 +56,7 @@ class MultiLocationAlertConditionArgs:
54
56
  @pulumi.getter
55
57
  def critical(self) -> pulumi.Input['MultiLocationAlertConditionCriticalArgs']:
56
58
  """
57
- A condition term with priority set to critical.
59
+ A condition term with the priority set to critical.
58
60
  """
59
61
  return pulumi.get(self, "critical")
60
62
 
@@ -66,7 +68,7 @@ class MultiLocationAlertConditionArgs:
66
68
  @pulumi.getter
67
69
  def entities(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
68
70
  """
69
- The GUIDs of the Synthetics monitors to alert on.
71
+ The Monitor GUID's of the Synthetics monitors to alert on.
70
72
  """
71
73
  return pulumi.get(self, "entities")
72
74
 
@@ -90,7 +92,7 @@ class MultiLocationAlertConditionArgs:
90
92
  @pulumi.getter
91
93
  def enabled(self) -> Optional[pulumi.Input[bool]]:
92
94
  """
93
- Set whether to enable the alert condition. Defaults to true.
95
+ Set whether to enable the alert condition. Defaults to true.
94
96
  """
95
97
  return pulumi.get(self, "enabled")
96
98
 
@@ -102,7 +104,7 @@ class MultiLocationAlertConditionArgs:
102
104
  @pulumi.getter
103
105
  def name(self) -> Optional[pulumi.Input[str]]:
104
106
  """
105
- The title of this condition.
107
+ The title of the condition.
106
108
  """
107
109
  return pulumi.get(self, "name")
108
110
 
@@ -126,8 +128,7 @@ class MultiLocationAlertConditionArgs:
126
128
  @pulumi.getter(name="violationTimeLimitSeconds")
127
129
  def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
128
130
  """
129
- Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
130
- select. Must be in the range of 300 to 2592000 (inclusive)
131
+ The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
131
132
  """
132
133
  return pulumi.get(self, "violation_time_limit_seconds")
133
134
 
@@ -139,7 +140,10 @@ class MultiLocationAlertConditionArgs:
139
140
  @pulumi.getter
140
141
  def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
141
142
  """
142
- A condition term with priority set to warning.
143
+ A condition term with the priority set to warning.
144
+
145
+
146
+ > **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.
143
147
  """
144
148
  return pulumi.get(self, "warning")
145
149
 
@@ -162,16 +166,18 @@ class _MultiLocationAlertConditionState:
162
166
  warning: Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']] = None):
163
167
  """
164
168
  Input properties used for looking up and filtering MultiLocationAlertCondition resources.
165
- :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with priority set to critical.
166
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
167
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The GUIDs of the Synthetics monitors to alert on.
169
+ :param pulumi.Input['MultiLocationAlertConditionCriticalArgs'] critical: A condition term with the priority set to critical.
170
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
171
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
168
172
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
169
- :param pulumi.Input[str] name: The title of this condition.
173
+ :param pulumi.Input[str] name: The title of the condition.
170
174
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
171
175
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
172
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
173
- select. Must be in the range of 300 to 2592000 (inclusive)
174
- :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with priority set to warning.
176
+ :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
177
+ :param pulumi.Input['MultiLocationAlertConditionWarningArgs'] warning: A condition term with the priority set to warning.
178
+
179
+
180
+ > **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.
175
181
  """
176
182
  if critical is not None:
177
183
  pulumi.set(__self__, "critical", critical)
@@ -196,7 +202,7 @@ class _MultiLocationAlertConditionState:
196
202
  @pulumi.getter
197
203
  def critical(self) -> Optional[pulumi.Input['MultiLocationAlertConditionCriticalArgs']]:
198
204
  """
199
- A condition term with priority set to critical.
205
+ A condition term with the priority set to critical.
200
206
  """
201
207
  return pulumi.get(self, "critical")
202
208
 
@@ -208,7 +214,7 @@ class _MultiLocationAlertConditionState:
208
214
  @pulumi.getter
209
215
  def enabled(self) -> Optional[pulumi.Input[bool]]:
210
216
  """
211
- Set whether to enable the alert condition. Defaults to true.
217
+ Set whether to enable the alert condition. Defaults to true.
212
218
  """
213
219
  return pulumi.get(self, "enabled")
214
220
 
@@ -220,7 +226,7 @@ class _MultiLocationAlertConditionState:
220
226
  @pulumi.getter
221
227
  def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
222
228
  """
223
- The GUIDs of the Synthetics monitors to alert on.
229
+ The Monitor GUID's of the Synthetics monitors to alert on.
224
230
  """
225
231
  return pulumi.get(self, "entities")
226
232
 
@@ -244,7 +250,7 @@ class _MultiLocationAlertConditionState:
244
250
  @pulumi.getter
245
251
  def name(self) -> Optional[pulumi.Input[str]]:
246
252
  """
247
- The title of this condition.
253
+ The title of the condition.
248
254
  """
249
255
  return pulumi.get(self, "name")
250
256
 
@@ -280,8 +286,7 @@ class _MultiLocationAlertConditionState:
280
286
  @pulumi.getter(name="violationTimeLimitSeconds")
281
287
  def violation_time_limit_seconds(self) -> Optional[pulumi.Input[int]]:
282
288
  """
283
- Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
284
- select. Must be in the range of 300 to 2592000 (inclusive)
289
+ The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
285
290
  """
286
291
  return pulumi.get(self, "violation_time_limit_seconds")
287
292
 
@@ -293,7 +298,10 @@ class _MultiLocationAlertConditionState:
293
298
  @pulumi.getter
294
299
  def warning(self) -> Optional[pulumi.Input['MultiLocationAlertConditionWarningArgs']]:
295
300
  """
296
- A condition term with priority set to warning.
301
+ A condition term with the priority set to warning.
302
+
303
+
304
+ > **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.
297
305
  """
298
306
  return pulumi.get(self, "warning")
299
307
 
@@ -323,21 +331,20 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
323
331
 
324
332
  ## Example Usage
325
333
 
334
+ <!--Start PulumiCodeChooser -->
326
335
  ```python
327
336
  import pulumi
328
337
  import pulumi_newrelic as newrelic
329
338
 
330
- policy = newrelic.AlertPolicy("policy", name="my-policy")
339
+ policy = newrelic.AlertPolicy("policy")
331
340
  monitor = newrelic.synthetics.Monitor("monitor",
332
341
  locations_publics=["US_WEST_1"],
333
- name="my-monitor",
334
342
  period="EVERY_10_MINUTES",
335
343
  status="DISABLED",
336
344
  type="SIMPLE",
337
345
  uri="https://www.one.newrelic.com")
338
346
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
339
347
  policy_id=policy.id,
340
- name="Example condition",
341
348
  runbook_url="https://example.com",
342
349
  enabled=True,
343
350
  violation_time_limit_seconds=3600,
@@ -349,18 +356,19 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
349
356
  threshold=1,
350
357
  ))
351
358
  ```
359
+ <!--End PulumiCodeChooser -->
352
360
  ## Tags
353
361
 
354
362
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
355
363
 
364
+ <!--Start PulumiCodeChooser -->
356
365
  ```python
357
366
  import pulumi
358
367
  import pulumi_newrelic as newrelic
359
368
 
360
- foo = newrelic.AlertPolicy("foo", name="foo policy")
361
- foo_monitor = newrelic.synthetics.Monitor("foo",
369
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
370
+ foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
362
371
  status="ENABLED",
363
- name="foo monitor",
364
372
  period="EVERY_MINUTE",
365
373
  uri="https://www.one.newrelic.com",
366
374
  type="SIMPLE",
@@ -377,9 +385,8 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
377
385
  key="some_key",
378
386
  values=["some_value"],
379
387
  )])
380
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
381
- policy_id=foo.id,
382
- name="foo condition",
388
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
389
+ policy_id=foo_alert_policy.id,
383
390
  runbook_url="https://example.com",
384
391
  enabled=True,
385
392
  violation_time_limit_seconds=3600,
@@ -390,7 +397,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
390
397
  warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
391
398
  threshold=1,
392
399
  ))
393
- my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
400
+ my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
394
401
  guid=foo_multi_location_alert_condition.entity_guid,
395
402
  tags=[
396
403
  newrelic.EntityTagsTagArgs(
@@ -406,6 +413,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
406
413
  ),
407
414
  ])
408
415
  ```
416
+ <!--End PulumiCodeChooser -->
409
417
 
410
418
  ## Import
411
419
 
@@ -421,15 +429,17 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
421
429
 
422
430
  :param str resource_name: The name of the resource.
423
431
  :param pulumi.ResourceOptions opts: Options for the resource.
424
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with priority set to critical.
425
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
426
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The GUIDs of the Synthetics monitors to alert on.
427
- :param pulumi.Input[str] name: The title of this condition.
432
+ :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
433
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
434
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
435
+ :param pulumi.Input[str] name: The title of the condition.
428
436
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
429
437
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
430
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
431
- select. Must be in the range of 300 to 2592000 (inclusive)
432
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with priority set to warning.
438
+ :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
439
+ :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
440
+
441
+
442
+ > **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.
433
443
  """
434
444
  ...
435
445
  @overload
@@ -444,21 +454,20 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
444
454
 
445
455
  ## Example Usage
446
456
 
457
+ <!--Start PulumiCodeChooser -->
447
458
  ```python
448
459
  import pulumi
449
460
  import pulumi_newrelic as newrelic
450
461
 
451
- policy = newrelic.AlertPolicy("policy", name="my-policy")
462
+ policy = newrelic.AlertPolicy("policy")
452
463
  monitor = newrelic.synthetics.Monitor("monitor",
453
464
  locations_publics=["US_WEST_1"],
454
- name="my-monitor",
455
465
  period="EVERY_10_MINUTES",
456
466
  status="DISABLED",
457
467
  type="SIMPLE",
458
468
  uri="https://www.one.newrelic.com")
459
469
  example = newrelic.synthetics.MultiLocationAlertCondition("example",
460
470
  policy_id=policy.id,
461
- name="Example condition",
462
471
  runbook_url="https://example.com",
463
472
  enabled=True,
464
473
  violation_time_limit_seconds=3600,
@@ -470,18 +479,19 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
470
479
  threshold=1,
471
480
  ))
472
481
  ```
482
+ <!--End PulumiCodeChooser -->
473
483
  ## Tags
474
484
 
475
485
  Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
476
486
 
487
+ <!--Start PulumiCodeChooser -->
477
488
  ```python
478
489
  import pulumi
479
490
  import pulumi_newrelic as newrelic
480
491
 
481
- foo = newrelic.AlertPolicy("foo", name="foo policy")
482
- foo_monitor = newrelic.synthetics.Monitor("foo",
492
+ foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
493
+ foo_monitor = newrelic.synthetics.Monitor("fooMonitor",
483
494
  status="ENABLED",
484
- name="foo monitor",
485
495
  period="EVERY_MINUTE",
486
496
  uri="https://www.one.newrelic.com",
487
497
  type="SIMPLE",
@@ -498,9 +508,8 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
498
508
  key="some_key",
499
509
  values=["some_value"],
500
510
  )])
501
- foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("foo",
502
- policy_id=foo.id,
503
- name="foo condition",
511
+ foo_multi_location_alert_condition = newrelic.synthetics.MultiLocationAlertCondition("fooMultiLocationAlertCondition",
512
+ policy_id=foo_alert_policy.id,
504
513
  runbook_url="https://example.com",
505
514
  enabled=True,
506
515
  violation_time_limit_seconds=3600,
@@ -511,7 +520,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
511
520
  warning=newrelic.synthetics.MultiLocationAlertConditionWarningArgs(
512
521
  threshold=1,
513
522
  ))
514
- my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
523
+ my_condition_entity_tags = newrelic.EntityTags("myConditionEntityTags",
515
524
  guid=foo_multi_location_alert_condition.entity_guid,
516
525
  tags=[
517
526
  newrelic.EntityTagsTagArgs(
@@ -527,6 +536,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
527
536
  ),
528
537
  ])
529
538
  ```
539
+ <!--End PulumiCodeChooser -->
530
540
 
531
541
  ## Import
532
542
 
@@ -613,16 +623,18 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
613
623
  :param str resource_name: The unique name of the resulting resource.
614
624
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
615
625
  :param pulumi.ResourceOptions opts: Options for the resource.
616
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with priority set to critical.
617
- :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
618
- :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The GUIDs of the Synthetics monitors to alert on.
626
+ :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionCriticalArgs']] critical: A condition term with the priority set to critical.
627
+ :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true.
628
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] entities: The Monitor GUID's of the Synthetics monitors to alert on.
619
629
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
620
- :param pulumi.Input[str] name: The title of this condition.
630
+ :param pulumi.Input[str] name: The title of the condition.
621
631
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition will be used.
622
632
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
623
- :param pulumi.Input[int] violation_time_limit_seconds: Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
624
- select. Must be in the range of 300 to 2592000 (inclusive)
625
- :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with priority set to warning.
633
+ :param pulumi.Input[int] violation_time_limit_seconds: The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
634
+ :param pulumi.Input[pulumi.InputType['MultiLocationAlertConditionWarningArgs']] warning: A condition term with the priority set to warning.
635
+
636
+
637
+ > **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.
626
638
  """
627
639
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
628
640
 
@@ -643,7 +655,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
643
655
  @pulumi.getter
644
656
  def critical(self) -> pulumi.Output['outputs.MultiLocationAlertConditionCritical']:
645
657
  """
646
- A condition term with priority set to critical.
658
+ A condition term with the priority set to critical.
647
659
  """
648
660
  return pulumi.get(self, "critical")
649
661
 
@@ -651,7 +663,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
651
663
  @pulumi.getter
652
664
  def enabled(self) -> pulumi.Output[Optional[bool]]:
653
665
  """
654
- Set whether to enable the alert condition. Defaults to true.
666
+ Set whether to enable the alert condition. Defaults to true.
655
667
  """
656
668
  return pulumi.get(self, "enabled")
657
669
 
@@ -659,7 +671,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
659
671
  @pulumi.getter
660
672
  def entities(self) -> pulumi.Output[Sequence[str]]:
661
673
  """
662
- The GUIDs of the Synthetics monitors to alert on.
674
+ The Monitor GUID's of the Synthetics monitors to alert on.
663
675
  """
664
676
  return pulumi.get(self, "entities")
665
677
 
@@ -675,7 +687,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
675
687
  @pulumi.getter
676
688
  def name(self) -> pulumi.Output[str]:
677
689
  """
678
- The title of this condition.
690
+ The title of the condition.
679
691
  """
680
692
  return pulumi.get(self, "name")
681
693
 
@@ -699,8 +711,7 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
699
711
  @pulumi.getter(name="violationTimeLimitSeconds")
700
712
  def violation_time_limit_seconds(self) -> pulumi.Output[Optional[int]]:
701
713
  """
702
- Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
703
- select. Must be in the range of 300 to 2592000 (inclusive)
714
+ The maximum number of seconds a violation can remain open before being closed by the system. The value must be between 300 seconds (5 minutes) to 2592000 seconds (30 days), both inclusive. Defaults to 259200 seconds (3 days) if this argument is not specified in the configuration, in accordance with the characteristics of this field in NerdGraph, as specified in the [docs](https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/rest-api-alerts/alerts-conditions-api-field-names/#violation_time_limit_seconds).
704
715
  """
705
716
  return pulumi.get(self, "violation_time_limit_seconds")
706
717
 
@@ -708,7 +719,10 @@ class MultiLocationAlertCondition(pulumi.CustomResource):
708
719
  @pulumi.getter
709
720
  def warning(self) -> pulumi.Output[Optional['outputs.MultiLocationAlertConditionWarning']]:
710
721
  """
711
- A condition term with priority set to warning.
722
+ A condition term with the priority set to warning.
723
+
724
+
725
+ > **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.
712
726
  """
713
727
  return pulumi.get(self, "warning")
714
728
 
@@ -233,14 +233,14 @@ class PrivateLocation(pulumi.CustomResource):
233
233
 
234
234
  ## Example Usage
235
235
 
236
+ <!--Start PulumiCodeChooser -->
236
237
  ```python
237
238
  import pulumi
238
239
  import pulumi_newrelic as newrelic
239
240
 
240
- location = newrelic.synthetics.PrivateLocation("location",
241
- description="The private location description",
242
- name="The name of the private location")
241
+ location = newrelic.synthetics.PrivateLocation("location", description="The private location description")
243
242
  ```
243
+ <!--End PulumiCodeChooser -->
244
244
 
245
245
  ## Import
246
246
 
@@ -268,14 +268,14 @@ class PrivateLocation(pulumi.CustomResource):
268
268
 
269
269
  ## Example Usage
270
270
 
271
+ <!--Start PulumiCodeChooser -->
271
272
  ```python
272
273
  import pulumi
273
274
  import pulumi_newrelic as newrelic
274
275
 
275
- location = newrelic.synthetics.PrivateLocation("location",
276
- description="The private location description",
277
- name="The name of the private location")
276
+ location = newrelic.synthetics.PrivateLocation("location", description="The private location description")
278
277
  ```
278
+ <!--End PulumiCodeChooser -->
279
279
 
280
280
  ## Import
281
281