pulumi-newrelic 5.20.0a1709365820__py3-none-any.whl → 5.21.0a1710157101__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 (67) hide show
  1. pulumi_newrelic/__init__.py +10 -0
  2. pulumi_newrelic/account_management.py +6 -2
  3. pulumi_newrelic/alert_channel.py +34 -2
  4. pulumi_newrelic/alert_condition.py +26 -2
  5. pulumi_newrelic/alert_muting_rule.py +6 -2
  6. pulumi_newrelic/alert_policy.py +48 -4
  7. pulumi_newrelic/alert_policy_channel.py +8 -4
  8. pulumi_newrelic/api_access_key.py +6 -26
  9. pulumi_newrelic/browser_application.py +6 -2
  10. pulumi_newrelic/cloud/aws_govcloud_integrations.py +2 -2
  11. pulumi_newrelic/cloud/aws_govcloud_link_account.py +6 -2
  12. pulumi_newrelic/cloud/aws_integrations.py +6 -2
  13. pulumi_newrelic/cloud/aws_link_account.py +6 -2
  14. pulumi_newrelic/cloud/azure_integrations.py +6 -2
  15. pulumi_newrelic/cloud/azure_link_account.py +6 -2
  16. pulumi_newrelic/cloud/gcp_integrations.py +6 -2
  17. pulumi_newrelic/cloud/gcp_link_account.py +6 -2
  18. pulumi_newrelic/data_partition_rule.py +8 -2
  19. pulumi_newrelic/entity_tags.py +8 -4
  20. pulumi_newrelic/events_to_metrics_rule.py +8 -4
  21. pulumi_newrelic/get_account.py +4 -0
  22. pulumi_newrelic/get_alert_policy.py +3 -3
  23. pulumi_newrelic/get_application.py +4 -0
  24. pulumi_newrelic/get_authentication_domain.py +4 -0
  25. pulumi_newrelic/get_cloud_account.py +4 -0
  26. pulumi_newrelic/get_entity.py +66 -4
  27. pulumi_newrelic/get_group.py +145 -0
  28. pulumi_newrelic/get_key_transaction.py +4 -0
  29. pulumi_newrelic/get_obfuscation_expression.py +4 -0
  30. pulumi_newrelic/get_service_level_alert_helper.py +12 -0
  31. pulumi_newrelic/get_test_grok_pattern.py +4 -0
  32. pulumi_newrelic/get_user.py +10 -6
  33. pulumi_newrelic/group.py +426 -0
  34. pulumi_newrelic/infra_alert_condition.py +33 -9
  35. pulumi_newrelic/insights/event.py +6 -0
  36. pulumi_newrelic/log_parsing_rule.py +12 -2
  37. pulumi_newrelic/monitor_downtime.py +28 -2
  38. pulumi_newrelic/notification_channel.py +72 -0
  39. pulumi_newrelic/notification_destination.py +132 -2
  40. pulumi_newrelic/nrql_alert_condition.py +28 -4
  41. pulumi_newrelic/nrql_drop_rule.py +30 -4
  42. pulumi_newrelic/obfuscation_expression.py +6 -2
  43. pulumi_newrelic/obfuscation_rule.py +6 -2
  44. pulumi_newrelic/one_dashboard.py +2 -2
  45. pulumi_newrelic/one_dashboard_json.py +2 -2
  46. pulumi_newrelic/one_dashboard_raw.py +6 -0
  47. pulumi_newrelic/plugins/application_settings.py +22 -2
  48. pulumi_newrelic/plugins/workload.py +112 -4
  49. pulumi_newrelic/service_level.py +20 -6
  50. pulumi_newrelic/synthetics/alert_condition.py +26 -2
  51. pulumi_newrelic/synthetics/broken_links_monitor.py +12 -2
  52. pulumi_newrelic/synthetics/cert_check_monitor.py +12 -2
  53. pulumi_newrelic/synthetics/get_private_location.py +8 -0
  54. pulumi_newrelic/synthetics/get_secure_credential.py +4 -0
  55. pulumi_newrelic/synthetics/monitor.py +20 -2
  56. pulumi_newrelic/synthetics/multi_location_alert_condition.py +12 -4
  57. pulumi_newrelic/synthetics/private_location.py +6 -2
  58. pulumi_newrelic/synthetics/script_monitor.py +20 -2
  59. pulumi_newrelic/synthetics/secure_credential.py +6 -2
  60. pulumi_newrelic/synthetics/step_monitor.py +8 -2
  61. pulumi_newrelic/user.py +4 -0
  62. pulumi_newrelic/workflow.py +22 -4
  63. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/METADATA +1 -1
  64. pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +89 -0
  65. pulumi_newrelic-5.20.0a1709365820.dist-info/RECORD +0 -87
  66. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/WHEEL +0 -0
  67. {pulumi_newrelic-5.20.0a1709365820.dist-info → pulumi_newrelic-5.21.0a1710157101.dist-info}/top_level.txt +0 -0
@@ -23,9 +23,11 @@ class ApplicationSettingsArgs:
23
23
  :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
24
24
  :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
25
25
 
26
+ <!--Start PulumiCodeChooser -->
26
27
  ```python
27
28
  import pulumi
28
29
  ```
30
+ <!--End PulumiCodeChooser -->
29
31
  :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
30
32
  :param pulumi.Input[str] name: The name of the application in New Relic APM.
31
33
  """
@@ -53,9 +55,11 @@ class ApplicationSettingsArgs:
53
55
  """
54
56
  Enable or disable real user monitoring for the New Relic application.
55
57
 
58
+ <!--Start PulumiCodeChooser -->
56
59
  ```python
57
60
  import pulumi
58
61
  ```
62
+ <!--End PulumiCodeChooser -->
59
63
  """
60
64
  return pulumi.get(self, "enable_real_user_monitoring")
61
65
 
@@ -100,9 +104,11 @@ class _ApplicationSettingsState:
100
104
  :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
101
105
  :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
102
106
 
107
+ <!--Start PulumiCodeChooser -->
103
108
  ```python
104
109
  import pulumi
105
110
  ```
111
+ <!--End PulumiCodeChooser -->
106
112
  :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
107
113
  :param pulumi.Input[str] name: The name of the application in New Relic APM.
108
114
  """
@@ -133,9 +139,11 @@ class _ApplicationSettingsState:
133
139
  """
134
140
  Enable or disable real user monitoring for the New Relic application.
135
141
 
142
+ <!--Start PulumiCodeChooser -->
136
143
  ```python
137
144
  import pulumi
138
145
  ```
146
+ <!--End PulumiCodeChooser -->
139
147
  """
140
148
  return pulumi.get(self, "enable_real_user_monitoring")
141
149
 
@@ -187,6 +195,7 @@ class ApplicationSettings(pulumi.CustomResource):
187
195
 
188
196
  ## Example Usage
189
197
 
198
+ <!--Start PulumiCodeChooser -->
190
199
  ```python
191
200
  import pulumi
192
201
  import pulumi_newrelic as newrelic
@@ -196,6 +205,8 @@ class ApplicationSettings(pulumi.CustomResource):
196
205
  enable_real_user_monitoring=False,
197
206
  end_user_apdex_threshold=0.8)
198
207
  ```
208
+ <!--End PulumiCodeChooser -->
209
+
199
210
  ## Notes
200
211
 
201
212
  > **NOTE:** Applications that have reported data in the last twelve hours
@@ -206,7 +217,7 @@ class ApplicationSettings(pulumi.CustomResource):
206
217
  Applications can be imported using notation `application_id`, e.g.
207
218
 
208
219
  ```sh
209
- $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
220
+ $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
210
221
  ```
211
222
 
212
223
  :param str resource_name: The name of the resource.
@@ -214,9 +225,11 @@ class ApplicationSettings(pulumi.CustomResource):
214
225
  :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
215
226
  :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
216
227
 
228
+ <!--Start PulumiCodeChooser -->
217
229
  ```python
218
230
  import pulumi
219
231
  ```
232
+ <!--End PulumiCodeChooser -->
220
233
  :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
221
234
  :param pulumi.Input[str] name: The name of the application in New Relic APM.
222
235
  """
@@ -235,6 +248,7 @@ class ApplicationSettings(pulumi.CustomResource):
235
248
 
236
249
  ## Example Usage
237
250
 
251
+ <!--Start PulumiCodeChooser -->
238
252
  ```python
239
253
  import pulumi
240
254
  import pulumi_newrelic as newrelic
@@ -244,6 +258,8 @@ class ApplicationSettings(pulumi.CustomResource):
244
258
  enable_real_user_monitoring=False,
245
259
  end_user_apdex_threshold=0.8)
246
260
  ```
261
+ <!--End PulumiCodeChooser -->
262
+
247
263
  ## Notes
248
264
 
249
265
  > **NOTE:** Applications that have reported data in the last twelve hours
@@ -254,7 +270,7 @@ class ApplicationSettings(pulumi.CustomResource):
254
270
  Applications can be imported using notation `application_id`, e.g.
255
271
 
256
272
  ```sh
257
- $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
273
+ $ pulumi import newrelic:plugins/applicationSettings:ApplicationSettings main 6789012345
258
274
  ```
259
275
 
260
276
  :param str resource_name: The name of the resource.
@@ -319,9 +335,11 @@ class ApplicationSettings(pulumi.CustomResource):
319
335
  :param pulumi.Input[float] app_apdex_threshold: The apdex threshold for the New Relic application.
320
336
  :param pulumi.Input[bool] enable_real_user_monitoring: Enable or disable real user monitoring for the New Relic application.
321
337
 
338
+ <!--Start PulumiCodeChooser -->
322
339
  ```python
323
340
  import pulumi
324
341
  ```
342
+ <!--End PulumiCodeChooser -->
325
343
  :param pulumi.Input[float] end_user_apdex_threshold: The user's apdex threshold for the New Relic application.
326
344
  :param pulumi.Input[str] name: The name of the application in New Relic APM.
327
345
  """
@@ -349,9 +367,11 @@ class ApplicationSettings(pulumi.CustomResource):
349
367
  """
350
368
  Enable or disable real user monitoring for the New Relic application.
351
369
 
370
+ <!--Start PulumiCodeChooser -->
352
371
  ```python
353
372
  import pulumi
354
373
  ```
374
+ <!--End PulumiCodeChooser -->
355
375
  """
356
376
  return pulumi.get(self, "enable_real_user_monitoring")
357
377
 
@@ -370,13 +370,67 @@ class Workload(pulumi.CustomResource):
370
370
  attribute in the `provider` block or the `NEW_RELIC_API_KEY` environment
371
371
  variable with your User API key.
372
372
 
373
+ ## Example Usage
374
+
375
+ Include entities with a certain string on the name.
376
+ <!--Start PulumiCodeChooser -->
377
+ ```python
378
+ import pulumi
379
+ import pulumi_newrelic as newrelic
380
+
381
+ foo = newrelic.plugins.Workload("foo",
382
+ account_id=12345678,
383
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
384
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
385
+ query="name like '%Example application%'",
386
+ )],
387
+ scope_account_ids=[12345678])
388
+ ```
389
+ <!--End PulumiCodeChooser -->
390
+
391
+ Include entities with a set of tags.
392
+ <!--Start PulumiCodeChooser -->
393
+ ```python
394
+ import pulumi
395
+ import pulumi_newrelic as newrelic
396
+
397
+ foo = newrelic.plugins.Workload("foo",
398
+ account_id=12345678,
399
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
400
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
401
+ query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
402
+ )],
403
+ scope_account_ids=[12345678])
404
+ ```
405
+ <!--End PulumiCodeChooser -->
406
+
407
+ Include entities with a set of tags.
408
+ <!--Start PulumiCodeChooser -->
409
+ ```python
410
+ import pulumi
411
+ import pulumi_newrelic as newrelic
412
+
413
+ foo = newrelic.plugins.Workload("foo",
414
+ account_id=12345678,
415
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
416
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
417
+ query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
418
+ )],
419
+ scope_account_ids=[12345678])
420
+ ```
421
+ <!--End PulumiCodeChooser -->
422
+
423
+ Include automatic status
424
+
425
+ > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
426
+
373
427
  ## Import
374
428
 
375
429
  New Relic workloads can be imported using a concatenated string of the format
376
430
 
377
- `<account_id>:<workload_id>:<guid>`, e.g.
431
+ `<account_id>:<workload_id>:<guid>`, e.g.
378
432
 
379
- bash
433
+ bash
380
434
 
381
435
  ```sh
382
436
  $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -406,13 +460,67 @@ class Workload(pulumi.CustomResource):
406
460
  attribute in the `provider` block or the `NEW_RELIC_API_KEY` environment
407
461
  variable with your User API key.
408
462
 
463
+ ## Example Usage
464
+
465
+ Include entities with a certain string on the name.
466
+ <!--Start PulumiCodeChooser -->
467
+ ```python
468
+ import pulumi
469
+ import pulumi_newrelic as newrelic
470
+
471
+ foo = newrelic.plugins.Workload("foo",
472
+ account_id=12345678,
473
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
474
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
475
+ query="name like '%Example application%'",
476
+ )],
477
+ scope_account_ids=[12345678])
478
+ ```
479
+ <!--End PulumiCodeChooser -->
480
+
481
+ Include entities with a set of tags.
482
+ <!--Start PulumiCodeChooser -->
483
+ ```python
484
+ import pulumi
485
+ import pulumi_newrelic as newrelic
486
+
487
+ foo = newrelic.plugins.Workload("foo",
488
+ account_id=12345678,
489
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
490
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
491
+ query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
492
+ )],
493
+ scope_account_ids=[12345678])
494
+ ```
495
+ <!--End PulumiCodeChooser -->
496
+
497
+ Include entities with a set of tags.
498
+ <!--Start PulumiCodeChooser -->
499
+ ```python
500
+ import pulumi
501
+ import pulumi_newrelic as newrelic
502
+
503
+ foo = newrelic.plugins.Workload("foo",
504
+ account_id=12345678,
505
+ entity_guids=["MjUyMDUyOHxBUE18QVBQTElDQVRJT058MjE1MDM3Nzk1"],
506
+ entity_search_queries=[newrelic.plugins.WorkloadEntitySearchQueryArgs(
507
+ query="tags.accountId = '12345678' AND tags.environment='production' AND tags.language='java'",
508
+ )],
509
+ scope_account_ids=[12345678])
510
+ ```
511
+ <!--End PulumiCodeChooser -->
512
+
513
+ Include automatic status
514
+
515
+ > The global status of your workload is a quick indicator of the workload health. You can configure it to be calculated automatically, and you can also set an alert and get a notification whenever the workload stops being operational. Alternatively, you can communicate a certain status of the workload by setting up a static value and a description. [See our docs](https://docs.newrelic.com/docs/workloads/use-workloads/workloads/workload-status)
516
+
409
517
  ## Import
410
518
 
411
519
  New Relic workloads can be imported using a concatenated string of the format
412
520
 
413
- `<account_id>:<workload_id>:<guid>`, e.g.
521
+ `<account_id>:<workload_id>:<guid>`, e.g.
414
522
 
415
- bash
523
+ bash
416
524
 
417
525
  ```sh
418
526
  $ pulumi import newrelic:plugins/workload:Workload foo 12345678:1456:MjUyMDUyOHxBUE18QVBRTElDQVRJT058MjE1MDM3Nzk1
@@ -250,6 +250,7 @@ class ServiceLevel(pulumi.CustomResource):
250
250
 
251
251
  ## Example Usage
252
252
 
253
+ <!--Start PulumiCodeChooser -->
253
254
  ```python
254
255
  import pulumi
255
256
  import pulumi_newrelic as newrelic
@@ -278,10 +279,13 @@ class ServiceLevel(pulumi.CustomResource):
278
279
  ),
279
280
  ))
280
281
  ```
282
+ <!--End PulumiCodeChooser -->
283
+
281
284
  ## Additional Example
282
285
 
283
286
  Service level with tags:
284
287
 
288
+ <!--Start PulumiCodeChooser -->
285
289
  ```python
286
290
  import pulumi
287
291
  import pulumi_newrelic as newrelic
@@ -325,9 +329,11 @@ class ServiceLevel(pulumi.CustomResource):
325
329
  ),
326
330
  ])
327
331
  ```
332
+ <!--End PulumiCodeChooser -->
328
333
 
329
334
  Using `select` for events
330
335
 
336
+ <!--Start PulumiCodeChooser -->
331
337
  ```python
332
338
  import pulumi
333
339
  import pulumi_newrelic as newrelic
@@ -365,6 +371,7 @@ class ServiceLevel(pulumi.CustomResource):
365
371
  ),
366
372
  ))
367
373
  ```
374
+ <!--End PulumiCodeChooser -->
368
375
 
369
376
  For up-to-date documentation about the tagging resource, please check EntityTags
370
377
 
@@ -372,11 +379,11 @@ class ServiceLevel(pulumi.CustomResource):
372
379
 
373
380
  New Relic Service Levels can be imported using a concatenated string of the format
374
381
 
375
- `<account_id>:<sli_id>:<guid>`, where the `guid` is the entity the SLI relates to.
382
+ `<account_id>:<sli_id>:<guid>`, where the `guid` is the entity the SLI relates to.
376
383
 
377
- Example:
384
+ Example:
378
385
 
379
- bash
386
+ bash
380
387
 
381
388
  ```sh
382
389
  $ pulumi import newrelic:index/serviceLevel:ServiceLevel foo 12345678:4321:MXxBUE18QVBQTElDQVRJT058MQ
@@ -411,6 +418,7 @@ class ServiceLevel(pulumi.CustomResource):
411
418
 
412
419
  ## Example Usage
413
420
 
421
+ <!--Start PulumiCodeChooser -->
414
422
  ```python
415
423
  import pulumi
416
424
  import pulumi_newrelic as newrelic
@@ -439,10 +447,13 @@ class ServiceLevel(pulumi.CustomResource):
439
447
  ),
440
448
  ))
441
449
  ```
450
+ <!--End PulumiCodeChooser -->
451
+
442
452
  ## Additional Example
443
453
 
444
454
  Service level with tags:
445
455
 
456
+ <!--Start PulumiCodeChooser -->
446
457
  ```python
447
458
  import pulumi
448
459
  import pulumi_newrelic as newrelic
@@ -486,9 +497,11 @@ class ServiceLevel(pulumi.CustomResource):
486
497
  ),
487
498
  ])
488
499
  ```
500
+ <!--End PulumiCodeChooser -->
489
501
 
490
502
  Using `select` for events
491
503
 
504
+ <!--Start PulumiCodeChooser -->
492
505
  ```python
493
506
  import pulumi
494
507
  import pulumi_newrelic as newrelic
@@ -526,6 +539,7 @@ class ServiceLevel(pulumi.CustomResource):
526
539
  ),
527
540
  ))
528
541
  ```
542
+ <!--End PulumiCodeChooser -->
529
543
 
530
544
  For up-to-date documentation about the tagging resource, please check EntityTags
531
545
 
@@ -533,11 +547,11 @@ class ServiceLevel(pulumi.CustomResource):
533
547
 
534
548
  New Relic Service Levels can be imported using a concatenated string of the format
535
549
 
536
- `<account_id>:<sli_id>:<guid>`, where the `guid` is the entity the SLI relates to.
550
+ `<account_id>:<sli_id>:<guid>`, where the `guid` is the entity the SLI relates to.
537
551
 
538
- Example:
552
+ Example:
539
553
 
540
- bash
554
+ bash
541
555
 
542
556
  ```sh
543
557
  $ pulumi import newrelic:index/serviceLevel:ServiceLevel foo 12345678:4321:MXxBUE18QVBQTElDQVRJT058MQ
@@ -25,9 +25,11 @@ class AlertConditionArgs:
25
25
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
26
26
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
27
27
 
28
+ <!--Start PulumiCodeChooser -->
28
29
  ```python
29
30
  import pulumi
30
31
  ```
32
+ <!--End PulumiCodeChooser -->
31
33
  :param pulumi.Input[str] name: The title of this condition.
32
34
  :param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
33
35
  """
@@ -70,9 +72,11 @@ class AlertConditionArgs:
70
72
  """
71
73
  Set whether to enable the alert condition. Defaults to `true`.
72
74
 
75
+ <!--Start PulumiCodeChooser -->
73
76
  ```python
74
77
  import pulumi
75
78
  ```
79
+ <!--End PulumiCodeChooser -->
76
80
  """
77
81
  return pulumi.get(self, "enabled")
78
82
 
@@ -118,9 +122,11 @@ class _AlertConditionState:
118
122
  Input properties used for looking up and filtering AlertCondition resources.
119
123
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
120
124
 
125
+ <!--Start PulumiCodeChooser -->
121
126
  ```python
122
127
  import pulumi
123
128
  ```
129
+ <!--End PulumiCodeChooser -->
124
130
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
125
131
  :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
126
132
  :param pulumi.Input[str] name: The title of this condition.
@@ -146,9 +152,11 @@ class _AlertConditionState:
146
152
  """
147
153
  Set whether to enable the alert condition. Defaults to `true`.
148
154
 
155
+ <!--Start PulumiCodeChooser -->
149
156
  ```python
150
157
  import pulumi
151
158
  ```
159
+ <!--End PulumiCodeChooser -->
152
160
  """
153
161
  return pulumi.get(self, "enabled")
154
162
 
@@ -235,6 +243,7 @@ class AlertCondition(pulumi.CustomResource):
235
243
 
236
244
  ## Example Usage
237
245
 
246
+ <!--Start PulumiCodeChooser -->
238
247
  ```python
239
248
  import pulumi
240
249
  import pulumi_newrelic as newrelic
@@ -244,10 +253,13 @@ class AlertCondition(pulumi.CustomResource):
244
253
  monitor_id=newrelic_synthetics_monitor["foo"]["id"],
245
254
  runbook_url="https://www.example.com")
246
255
  ```
256
+ <!--End PulumiCodeChooser -->
257
+
247
258
  ## Tags
248
259
 
249
260
  Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
250
261
 
262
+ <!--Start PulumiCodeChooser -->
251
263
  ```python
252
264
  import pulumi
253
265
  import pulumi_newrelic as newrelic
@@ -291,22 +303,25 @@ class AlertCondition(pulumi.CustomResource):
291
303
  ),
292
304
  ])
293
305
  ```
306
+ <!--End PulumiCodeChooser -->
294
307
 
295
308
  ## Import
296
309
 
297
310
  Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
298
311
 
299
312
  ```sh
300
- $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
313
+ $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
301
314
  ```
302
315
 
303
316
  :param str resource_name: The name of the resource.
304
317
  :param pulumi.ResourceOptions opts: Options for the resource.
305
318
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
306
319
 
320
+ <!--Start PulumiCodeChooser -->
307
321
  ```python
308
322
  import pulumi
309
323
  ```
324
+ <!--End PulumiCodeChooser -->
310
325
  :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
311
326
  :param pulumi.Input[str] name: The title of this condition.
312
327
  :param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
@@ -325,6 +340,7 @@ class AlertCondition(pulumi.CustomResource):
325
340
 
326
341
  ## Example Usage
327
342
 
343
+ <!--Start PulumiCodeChooser -->
328
344
  ```python
329
345
  import pulumi
330
346
  import pulumi_newrelic as newrelic
@@ -334,10 +350,13 @@ class AlertCondition(pulumi.CustomResource):
334
350
  monitor_id=newrelic_synthetics_monitor["foo"]["id"],
335
351
  runbook_url="https://www.example.com")
336
352
  ```
353
+ <!--End PulumiCodeChooser -->
354
+
337
355
  ## Tags
338
356
 
339
357
  Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
340
358
 
359
+ <!--Start PulumiCodeChooser -->
341
360
  ```python
342
361
  import pulumi
343
362
  import pulumi_newrelic as newrelic
@@ -381,13 +400,14 @@ class AlertCondition(pulumi.CustomResource):
381
400
  ),
382
401
  ])
383
402
  ```
403
+ <!--End PulumiCodeChooser -->
384
404
 
385
405
  ## Import
386
406
 
387
407
  Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
388
408
 
389
409
  ```sh
390
- $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
410
+ $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
391
411
  ```
392
412
 
393
413
  :param str resource_name: The name of the resource.
@@ -454,9 +474,11 @@ class AlertCondition(pulumi.CustomResource):
454
474
  :param pulumi.ResourceOptions opts: Options for the resource.
455
475
  :param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
456
476
 
477
+ <!--Start PulumiCodeChooser -->
457
478
  ```python
458
479
  import pulumi
459
480
  ```
481
+ <!--End PulumiCodeChooser -->
460
482
  :param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
461
483
  :param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
462
484
  :param pulumi.Input[str] name: The title of this condition.
@@ -481,9 +503,11 @@ class AlertCondition(pulumi.CustomResource):
481
503
  """
482
504
  Set whether to enable the alert condition. Defaults to `true`.
483
505
 
506
+ <!--Start PulumiCodeChooser -->
484
507
  ```python
485
508
  import pulumi
486
509
  ```
510
+ <!--End PulumiCodeChooser -->
487
511
  """
488
512
  return pulumi.get(self, "enabled")
489
513
 
@@ -341,6 +341,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
341
341
 
342
342
  ## Example Usage
343
343
 
344
+ <!--Start PulumiCodeChooser -->
344
345
  ```python
345
346
  import pulumi
346
347
  import pulumi_newrelic as newrelic
@@ -355,7 +356,9 @@ class BrokenLinksMonitor(pulumi.CustomResource):
355
356
  )],
356
357
  uri="https://www.one.example.com")
357
358
  ```
359
+ <!--End PulumiCodeChooser -->
358
360
  See additional examples.
361
+
359
362
  ## Additional Examples
360
363
 
361
364
  ### Create a monitor with a private location
@@ -364,6 +367,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
364
367
 
365
368
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
366
369
 
370
+ <!--Start PulumiCodeChooser -->
367
371
  ```python
368
372
  import pulumi
369
373
  import pulumi_newrelic as newrelic
@@ -381,12 +385,13 @@ class BrokenLinksMonitor(pulumi.CustomResource):
381
385
  values=["some_value"],
382
386
  )])
383
387
  ```
388
+ <!--End PulumiCodeChooser -->
384
389
 
385
390
  ## Import
386
391
 
387
392
  Synthetics broken links monitor scripts can be imported using the `guid`, e.g.
388
393
 
389
- bash
394
+ bash
390
395
 
391
396
  ```sh
392
397
  $ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor <guid>
@@ -416,6 +421,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
416
421
 
417
422
  ## Example Usage
418
423
 
424
+ <!--Start PulumiCodeChooser -->
419
425
  ```python
420
426
  import pulumi
421
427
  import pulumi_newrelic as newrelic
@@ -430,7 +436,9 @@ class BrokenLinksMonitor(pulumi.CustomResource):
430
436
  )],
431
437
  uri="https://www.one.example.com")
432
438
  ```
439
+ <!--End PulumiCodeChooser -->
433
440
  See additional examples.
441
+
434
442
  ## Additional Examples
435
443
 
436
444
  ### Create a monitor with a private location
@@ -439,6 +447,7 @@ class BrokenLinksMonitor(pulumi.CustomResource):
439
447
 
440
448
  > **NOTE:** It can take up to 10 minutes for a private location to become available.
441
449
 
450
+ <!--Start PulumiCodeChooser -->
442
451
  ```python
443
452
  import pulumi
444
453
  import pulumi_newrelic as newrelic
@@ -456,12 +465,13 @@ class BrokenLinksMonitor(pulumi.CustomResource):
456
465
  values=["some_value"],
457
466
  )])
458
467
  ```
468
+ <!--End PulumiCodeChooser -->
459
469
 
460
470
  ## Import
461
471
 
462
472
  Synthetics broken links monitor scripts can be imported using the `guid`, e.g.
463
473
 
464
- bash
474
+ bash
465
475
 
466
476
  ```sh
467
477
  $ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor <guid>