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