pulumi-newrelic 5.23.0a1712988017__py3-none-any.whl → 5.23.0a1713561620__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.
- pulumi_newrelic/account_management.py +6 -2
- pulumi_newrelic/alert_channel.py +48 -36
- pulumi_newrelic/alert_condition.py +20 -16
- pulumi_newrelic/alert_muting_rule.py +12 -10
- pulumi_newrelic/alert_policy.py +26 -10
- pulumi_newrelic/alert_policy_channel.py +12 -4
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -2
- pulumi_newrelic/cloud/aws_integrations.py +6 -4
- pulumi_newrelic/cloud/aws_link_account.py +4 -2
- pulumi_newrelic/cloud/azure_integrations.py +10 -8
- pulumi_newrelic/cloud/azure_link_account.py +4 -2
- pulumi_newrelic/cloud/gcp_integrations.py +6 -2
- pulumi_newrelic/cloud/gcp_link_account.py +4 -2
- pulumi_newrelic/entity_tags.py +6 -6
- pulumi_newrelic/events_to_metrics_rule.py +2 -0
- pulumi_newrelic/get_application.py +8 -6
- pulumi_newrelic/get_authentication_domain.py +4 -4
- pulumi_newrelic/get_entity.py +28 -16
- pulumi_newrelic/get_group.py +46 -4
- pulumi_newrelic/get_key_transaction.py +8 -6
- pulumi_newrelic/get_obfuscation_expression.py +2 -0
- pulumi_newrelic/get_service_level_alert_helper.py +22 -16
- pulumi_newrelic/get_test_grok_pattern.py +4 -2
- pulumi_newrelic/group.py +40 -30
- pulumi_newrelic/infra_alert_condition.py +28 -18
- pulumi_newrelic/insights/event.py +8 -8
- pulumi_newrelic/log_parsing_rule.py +6 -2
- pulumi_newrelic/monitor_downtime.py +104 -92
- pulumi_newrelic/notification_channel.py +124 -106
- pulumi_newrelic/nrql_alert_condition.py +38 -28
- pulumi_newrelic/nrql_drop_rule.py +6 -6
- pulumi_newrelic/obfuscation_expression.py +2 -0
- pulumi_newrelic/obfuscation_rule.py +4 -0
- pulumi_newrelic/one_dashboard_raw.py +86 -82
- pulumi_newrelic/plugins/application_settings.py +6 -4
- pulumi_newrelic/plugins/workload.py +138 -0
- pulumi_newrelic/service_level.py +38 -32
- pulumi_newrelic/synthetics/alert_condition.py +20 -14
- pulumi_newrelic/synthetics/broken_links_monitor.py +18 -12
- pulumi_newrelic/synthetics/cert_check_monitor.py +16 -10
- pulumi_newrelic/synthetics/monitor.py +48 -36
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +20 -12
- pulumi_newrelic/synthetics/private_location.py +6 -2
- pulumi_newrelic/synthetics/script_monitor.py +34 -22
- pulumi_newrelic/synthetics/secure_credential.py +4 -4
- pulumi_newrelic/synthetics/step_monitor.py +14 -8
- pulumi_newrelic/user.py +8 -6
- pulumi_newrelic/workflow.py +20 -8
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1712988017.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/top_level.txt +0 -0
@@ -293,14 +293,15 @@ class NotificationChannel(pulumi.CustomResource):
|
|
293
293
|
|
294
294
|
foo = newrelic.NotificationChannel("foo",
|
295
295
|
account_id=12345678,
|
296
|
+
name="webhook-example",
|
297
|
+
type="WEBHOOK",
|
296
298
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
297
299
|
product="IINT",
|
298
300
|
properties=[newrelic.NotificationChannelPropertyArgs(
|
299
301
|
key="payload",
|
300
|
-
label="Payload Template",
|
301
302
|
value="name: {{ foo }}",
|
302
|
-
|
303
|
-
|
303
|
+
label="Payload Template",
|
304
|
+
)])
|
304
305
|
```
|
305
306
|
<!--End PulumiCodeChooser -->
|
306
307
|
See additional examples.
|
@@ -319,6 +320,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
319
320
|
|
320
321
|
foo = newrelic.NotificationChannel("foo",
|
321
322
|
account_id=12345678,
|
323
|
+
name="servicenow-incident-example",
|
324
|
+
type="SERVICENOW_INCIDENTS",
|
322
325
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
323
326
|
product="IINT",
|
324
327
|
properties=[
|
@@ -330,8 +333,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
330
333
|
key="short_description",
|
331
334
|
value="Short description",
|
332
335
|
),
|
333
|
-
]
|
334
|
-
type="SERVICENOW_INCIDENTS")
|
336
|
+
])
|
335
337
|
```
|
336
338
|
<!--End PulumiCodeChooser -->
|
337
339
|
|
@@ -343,6 +345,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
343
345
|
|
344
346
|
foo = newrelic.NotificationChannel("foo",
|
345
347
|
account_id=12345678,
|
348
|
+
name="email-example",
|
349
|
+
type="EMAIL",
|
346
350
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
347
351
|
product="IINT",
|
348
352
|
properties=[
|
@@ -354,8 +358,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
354
358
|
key="customDetailsEmail",
|
355
359
|
value="issue id - {{issueId}}",
|
356
360
|
),
|
357
|
-
]
|
358
|
-
type="EMAIL")
|
361
|
+
])
|
359
362
|
```
|
360
363
|
<!--End PulumiCodeChooser -->
|
361
364
|
|
@@ -367,6 +370,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
367
370
|
|
368
371
|
foo = newrelic.NotificationChannel("foo",
|
369
372
|
account_id=12345678,
|
373
|
+
name="jira-example",
|
374
|
+
type="JIRA_CLASSIC",
|
370
375
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
371
376
|
product="ERROR_TRACKING",
|
372
377
|
properties=[
|
@@ -386,8 +391,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
386
391
|
key="summary",
|
387
392
|
value="{{ annotations.title.[0] }}",
|
388
393
|
),
|
389
|
-
]
|
390
|
-
type="JIRA_CLASSIC")
|
394
|
+
])
|
391
395
|
```
|
392
396
|
<!--End PulumiCodeChooser -->
|
393
397
|
|
@@ -399,6 +403,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
399
403
|
|
400
404
|
foo = newrelic.NotificationChannel("foo",
|
401
405
|
account_id=12345678,
|
406
|
+
name="pagerduty-account-example",
|
407
|
+
type="PAGERDUTY_ACCOUNT_INTEGRATION",
|
402
408
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
403
409
|
product="IINT",
|
404
410
|
properties=[
|
@@ -417,24 +423,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
417
423
|
),
|
418
424
|
newrelic.NotificationChannelPropertyArgs(
|
419
425
|
key="customDetails",
|
420
|
-
value=\"\"\"
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
426
|
+
value=\"\"\"{
|
427
|
+
"id":{{json issueId}},
|
428
|
+
"IssueURL":{{json issuePageUrl}},
|
429
|
+
"NewRelic priority":{{json priority}},
|
430
|
+
"Total Incidents":{{json totalIncidents}},
|
431
|
+
"Impacted Entities":"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
432
|
+
"Runbook":"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
433
|
+
"Description":"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
434
|
+
"isCorrelated":{{json isCorrelated}},
|
435
|
+
"Alert Policy Names":"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
436
|
+
"Alert Condition Names":"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
437
|
+
"Workflow Name":{{json workflowName}}
|
438
|
+
}
|
434
439
|
\"\"\",
|
435
440
|
),
|
436
|
-
]
|
437
|
-
type="PAGERDUTY_ACCOUNT_INTEGRATION")
|
441
|
+
])
|
438
442
|
```
|
439
443
|
<!--End PulumiCodeChooser -->
|
440
444
|
|
@@ -446,6 +450,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
446
450
|
|
447
451
|
foo = newrelic.NotificationChannel("foo",
|
448
452
|
account_id=12345678,
|
453
|
+
name="pagerduty-account-example",
|
454
|
+
type="PAGERDUTY_SERVICE_INTEGRATION",
|
449
455
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
450
456
|
product="IINT",
|
451
457
|
properties=[
|
@@ -455,24 +461,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
455
461
|
),
|
456
462
|
newrelic.NotificationChannelPropertyArgs(
|
457
463
|
key="customDetails",
|
458
|
-
value=\"\"\"
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
464
|
+
value=\"\"\"{
|
465
|
+
"id":{{json issueId}},
|
466
|
+
"IssueURL":{{json issuePageUrl}},
|
467
|
+
"NewRelic priority":{{json priority}},
|
468
|
+
"Total Incidents":{{json totalIncidents}},
|
469
|
+
"Impacted Entities":"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
470
|
+
"Runbook":"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
471
|
+
"Description":"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
472
|
+
"isCorrelated":{{json isCorrelated}},
|
473
|
+
"Alert Policy Names":"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
474
|
+
"Alert Condition Names":"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
475
|
+
"Workflow Name":{{json workflowName}}
|
476
|
+
}
|
472
477
|
\"\"\",
|
473
478
|
),
|
474
|
-
]
|
475
|
-
type="PAGERDUTY_SERVICE_INTEGRATION")
|
479
|
+
])
|
476
480
|
```
|
477
481
|
<!--End PulumiCodeChooser -->
|
478
482
|
|
@@ -484,9 +488,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
484
488
|
|
485
489
|
foo = newrelic.NotificationChannel("foo",
|
486
490
|
account_id=12345678,
|
491
|
+
name="mobile-push-example",
|
492
|
+
type="MOBILE_PUSH",
|
487
493
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
488
|
-
product="IINT"
|
489
|
-
type="MOBILE_PUSH")
|
494
|
+
product="IINT")
|
490
495
|
```
|
491
496
|
<!--End PulumiCodeChooser -->
|
492
497
|
|
@@ -498,6 +503,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
498
503
|
|
499
504
|
foo = newrelic.NotificationChannel("foo",
|
500
505
|
account_id=12345678,
|
506
|
+
name="event-bridge-example",
|
507
|
+
type="EVENT_BRIDGE",
|
501
508
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
502
509
|
product="IINT",
|
503
510
|
properties=[
|
@@ -509,8 +516,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
509
516
|
key="eventContent",
|
510
517
|
value="{ id: {{ json issueId }} }",
|
511
518
|
),
|
512
|
-
]
|
513
|
-
type="EVENT_BRIDGE")
|
519
|
+
])
|
514
520
|
```
|
515
521
|
<!--End PulumiCodeChooser -->
|
516
522
|
|
@@ -522,6 +528,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
522
528
|
|
523
529
|
foo = newrelic.NotificationChannel("foo",
|
524
530
|
account_id=12345678,
|
531
|
+
name="slack-example",
|
532
|
+
type="SLACK",
|
525
533
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
526
534
|
product="IINT",
|
527
535
|
properties=[
|
@@ -533,8 +541,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
533
541
|
key="customDetailsSlack",
|
534
542
|
value="issue id - {{issueId}}",
|
535
543
|
),
|
536
|
-
]
|
537
|
-
type="SLACK")
|
544
|
+
])
|
538
545
|
```
|
539
546
|
<!--End PulumiCodeChooser -->
|
540
547
|
|
@@ -552,15 +559,16 @@ class NotificationChannel(pulumi.CustomResource):
|
|
552
559
|
|
553
560
|
webhook_destination = newrelic.NotificationDestination("webhook-destination",
|
554
561
|
account_id=12345678,
|
555
|
-
|
556
|
-
|
557
|
-
user="username",
|
558
|
-
),
|
562
|
+
name="destination-webhook",
|
563
|
+
type="WEBHOOK",
|
559
564
|
properties=[newrelic.NotificationDestinationPropertyArgs(
|
560
565
|
key="url",
|
561
566
|
value="https://webhook.mywebhook.com",
|
562
567
|
)],
|
563
|
-
|
568
|
+
auth_basic=newrelic.NotificationDestinationAuthBasicArgs(
|
569
|
+
user="username",
|
570
|
+
password="password",
|
571
|
+
))
|
564
572
|
```
|
565
573
|
<!--End PulumiCodeChooser -->
|
566
574
|
|
@@ -572,8 +580,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
572
580
|
|
573
581
|
webhook_channel = newrelic.NotificationChannel("webhook-channel",
|
574
582
|
account_id=12345678,
|
583
|
+
name="channel-webhook",
|
575
584
|
type="WEBHOOK",
|
576
|
-
destination_id=
|
585
|
+
destination_id=webhook_destination["id"],
|
577
586
|
product="IINT",
|
578
587
|
properties=[newrelic.NotificationChannelPropertyArgs(
|
579
588
|
key="payload",
|
@@ -632,14 +641,15 @@ class NotificationChannel(pulumi.CustomResource):
|
|
632
641
|
|
633
642
|
foo = newrelic.NotificationChannel("foo",
|
634
643
|
account_id=12345678,
|
644
|
+
name="webhook-example",
|
645
|
+
type="WEBHOOK",
|
635
646
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
636
647
|
product="IINT",
|
637
648
|
properties=[newrelic.NotificationChannelPropertyArgs(
|
638
649
|
key="payload",
|
639
|
-
label="Payload Template",
|
640
650
|
value="name: {{ foo }}",
|
641
|
-
|
642
|
-
|
651
|
+
label="Payload Template",
|
652
|
+
)])
|
643
653
|
```
|
644
654
|
<!--End PulumiCodeChooser -->
|
645
655
|
See additional examples.
|
@@ -658,6 +668,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
658
668
|
|
659
669
|
foo = newrelic.NotificationChannel("foo",
|
660
670
|
account_id=12345678,
|
671
|
+
name="servicenow-incident-example",
|
672
|
+
type="SERVICENOW_INCIDENTS",
|
661
673
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
662
674
|
product="IINT",
|
663
675
|
properties=[
|
@@ -669,8 +681,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
669
681
|
key="short_description",
|
670
682
|
value="Short description",
|
671
683
|
),
|
672
|
-
]
|
673
|
-
type="SERVICENOW_INCIDENTS")
|
684
|
+
])
|
674
685
|
```
|
675
686
|
<!--End PulumiCodeChooser -->
|
676
687
|
|
@@ -682,6 +693,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
682
693
|
|
683
694
|
foo = newrelic.NotificationChannel("foo",
|
684
695
|
account_id=12345678,
|
696
|
+
name="email-example",
|
697
|
+
type="EMAIL",
|
685
698
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
686
699
|
product="IINT",
|
687
700
|
properties=[
|
@@ -693,8 +706,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
693
706
|
key="customDetailsEmail",
|
694
707
|
value="issue id - {{issueId}}",
|
695
708
|
),
|
696
|
-
]
|
697
|
-
type="EMAIL")
|
709
|
+
])
|
698
710
|
```
|
699
711
|
<!--End PulumiCodeChooser -->
|
700
712
|
|
@@ -706,6 +718,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
706
718
|
|
707
719
|
foo = newrelic.NotificationChannel("foo",
|
708
720
|
account_id=12345678,
|
721
|
+
name="jira-example",
|
722
|
+
type="JIRA_CLASSIC",
|
709
723
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
710
724
|
product="ERROR_TRACKING",
|
711
725
|
properties=[
|
@@ -725,8 +739,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
725
739
|
key="summary",
|
726
740
|
value="{{ annotations.title.[0] }}",
|
727
741
|
),
|
728
|
-
]
|
729
|
-
type="JIRA_CLASSIC")
|
742
|
+
])
|
730
743
|
```
|
731
744
|
<!--End PulumiCodeChooser -->
|
732
745
|
|
@@ -738,6 +751,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
738
751
|
|
739
752
|
foo = newrelic.NotificationChannel("foo",
|
740
753
|
account_id=12345678,
|
754
|
+
name="pagerduty-account-example",
|
755
|
+
type="PAGERDUTY_ACCOUNT_INTEGRATION",
|
741
756
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
742
757
|
product="IINT",
|
743
758
|
properties=[
|
@@ -756,24 +771,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
756
771
|
),
|
757
772
|
newrelic.NotificationChannelPropertyArgs(
|
758
773
|
key="customDetails",
|
759
|
-
value=\"\"\"
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
774
|
+
value=\"\"\"{
|
775
|
+
"id":{{json issueId}},
|
776
|
+
"IssueURL":{{json issuePageUrl}},
|
777
|
+
"NewRelic priority":{{json priority}},
|
778
|
+
"Total Incidents":{{json totalIncidents}},
|
779
|
+
"Impacted Entities":"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
780
|
+
"Runbook":"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
781
|
+
"Description":"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
782
|
+
"isCorrelated":{{json isCorrelated}},
|
783
|
+
"Alert Policy Names":"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
784
|
+
"Alert Condition Names":"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
785
|
+
"Workflow Name":{{json workflowName}}
|
786
|
+
}
|
773
787
|
\"\"\",
|
774
788
|
),
|
775
|
-
]
|
776
|
-
type="PAGERDUTY_ACCOUNT_INTEGRATION")
|
789
|
+
])
|
777
790
|
```
|
778
791
|
<!--End PulumiCodeChooser -->
|
779
792
|
|
@@ -785,6 +798,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
785
798
|
|
786
799
|
foo = newrelic.NotificationChannel("foo",
|
787
800
|
account_id=12345678,
|
801
|
+
name="pagerduty-account-example",
|
802
|
+
type="PAGERDUTY_SERVICE_INTEGRATION",
|
788
803
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
789
804
|
product="IINT",
|
790
805
|
properties=[
|
@@ -794,24 +809,22 @@ class NotificationChannel(pulumi.CustomResource):
|
|
794
809
|
),
|
795
810
|
newrelic.NotificationChannelPropertyArgs(
|
796
811
|
key="customDetails",
|
797
|
-
value=\"\"\"
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
812
|
+
value=\"\"\"{
|
813
|
+
"id":{{json issueId}},
|
814
|
+
"IssueURL":{{json issuePageUrl}},
|
815
|
+
"NewRelic priority":{{json priority}},
|
816
|
+
"Total Incidents":{{json totalIncidents}},
|
817
|
+
"Impacted Entities":"{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
818
|
+
"Runbook":"{{#each accumulations.runbookUrl}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
819
|
+
"Description":"{{#each annotations.description}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
820
|
+
"isCorrelated":{{json isCorrelated}},
|
821
|
+
"Alert Policy Names":"{{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
822
|
+
"Alert Condition Names":"{{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}",
|
823
|
+
"Workflow Name":{{json workflowName}}
|
824
|
+
}
|
811
825
|
\"\"\",
|
812
826
|
),
|
813
|
-
]
|
814
|
-
type="PAGERDUTY_SERVICE_INTEGRATION")
|
827
|
+
])
|
815
828
|
```
|
816
829
|
<!--End PulumiCodeChooser -->
|
817
830
|
|
@@ -823,9 +836,10 @@ class NotificationChannel(pulumi.CustomResource):
|
|
823
836
|
|
824
837
|
foo = newrelic.NotificationChannel("foo",
|
825
838
|
account_id=12345678,
|
839
|
+
name="mobile-push-example",
|
840
|
+
type="MOBILE_PUSH",
|
826
841
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
827
|
-
product="IINT"
|
828
|
-
type="MOBILE_PUSH")
|
842
|
+
product="IINT")
|
829
843
|
```
|
830
844
|
<!--End PulumiCodeChooser -->
|
831
845
|
|
@@ -837,6 +851,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
837
851
|
|
838
852
|
foo = newrelic.NotificationChannel("foo",
|
839
853
|
account_id=12345678,
|
854
|
+
name="event-bridge-example",
|
855
|
+
type="EVENT_BRIDGE",
|
840
856
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
841
857
|
product="IINT",
|
842
858
|
properties=[
|
@@ -848,8 +864,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
848
864
|
key="eventContent",
|
849
865
|
value="{ id: {{ json issueId }} }",
|
850
866
|
),
|
851
|
-
]
|
852
|
-
type="EVENT_BRIDGE")
|
867
|
+
])
|
853
868
|
```
|
854
869
|
<!--End PulumiCodeChooser -->
|
855
870
|
|
@@ -861,6 +876,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
861
876
|
|
862
877
|
foo = newrelic.NotificationChannel("foo",
|
863
878
|
account_id=12345678,
|
879
|
+
name="slack-example",
|
880
|
+
type="SLACK",
|
864
881
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
865
882
|
product="IINT",
|
866
883
|
properties=[
|
@@ -872,8 +889,7 @@ class NotificationChannel(pulumi.CustomResource):
|
|
872
889
|
key="customDetailsSlack",
|
873
890
|
value="issue id - {{issueId}}",
|
874
891
|
),
|
875
|
-
]
|
876
|
-
type="SLACK")
|
892
|
+
])
|
877
893
|
```
|
878
894
|
<!--End PulumiCodeChooser -->
|
879
895
|
|
@@ -891,15 +907,16 @@ class NotificationChannel(pulumi.CustomResource):
|
|
891
907
|
|
892
908
|
webhook_destination = newrelic.NotificationDestination("webhook-destination",
|
893
909
|
account_id=12345678,
|
894
|
-
|
895
|
-
|
896
|
-
user="username",
|
897
|
-
),
|
910
|
+
name="destination-webhook",
|
911
|
+
type="WEBHOOK",
|
898
912
|
properties=[newrelic.NotificationDestinationPropertyArgs(
|
899
913
|
key="url",
|
900
914
|
value="https://webhook.mywebhook.com",
|
901
915
|
)],
|
902
|
-
|
916
|
+
auth_basic=newrelic.NotificationDestinationAuthBasicArgs(
|
917
|
+
user="username",
|
918
|
+
password="password",
|
919
|
+
))
|
903
920
|
```
|
904
921
|
<!--End PulumiCodeChooser -->
|
905
922
|
|
@@ -911,8 +928,9 @@ class NotificationChannel(pulumi.CustomResource):
|
|
911
928
|
|
912
929
|
webhook_channel = newrelic.NotificationChannel("webhook-channel",
|
913
930
|
account_id=12345678,
|
931
|
+
name="channel-webhook",
|
914
932
|
type="WEBHOOK",
|
915
|
-
destination_id=
|
933
|
+
destination_id=webhook_destination["id"],
|
916
934
|
product="IINT",
|
917
935
|
properties=[newrelic.NotificationChannelPropertyArgs(
|
918
936
|
key="payload",
|
@@ -918,11 +918,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
918
918
|
import pulumi
|
919
919
|
import pulumi_newrelic as newrelic
|
920
920
|
|
921
|
-
|
922
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
921
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
922
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
923
923
|
account_id=12345678,
|
924
|
-
policy_id=
|
924
|
+
policy_id=foo.id,
|
925
925
|
type="static",
|
926
|
+
name="foo",
|
926
927
|
description="Alert when transactions are taking too long",
|
927
928
|
runbook_url="https://www.example.com",
|
928
929
|
enabled=True,
|
@@ -997,11 +998,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
997
998
|
import pulumi
|
998
999
|
import pulumi_newrelic as newrelic
|
999
1000
|
|
1000
|
-
|
1001
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1001
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
1002
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1002
1003
|
account_id="your_account_id",
|
1003
|
-
policy_id=
|
1004
|
+
policy_id=foo.id,
|
1004
1005
|
type="static",
|
1006
|
+
name="foo",
|
1005
1007
|
description="Alert when transactions are taking too long",
|
1006
1008
|
runbook_url="https://www.example.com",
|
1007
1009
|
enabled=True,
|
@@ -1042,11 +1044,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1042
1044
|
import pulumi
|
1043
1045
|
import pulumi_newrelic as newrelic
|
1044
1046
|
|
1045
|
-
|
1046
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1047
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
1048
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1047
1049
|
account_id=12345678,
|
1048
|
-
policy_id=
|
1050
|
+
policy_id=foo.id,
|
1049
1051
|
type="static",
|
1052
|
+
name="foo",
|
1050
1053
|
description="Alert when transactions are taking too long",
|
1051
1054
|
runbook_url="https://www.example.com",
|
1052
1055
|
enabled=True,
|
@@ -1075,7 +1078,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1075
1078
|
threshold_duration=600,
|
1076
1079
|
threshold_occurrences="ALL",
|
1077
1080
|
))
|
1078
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
1081
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
1079
1082
|
guid=foo_nrql_alert_condition.entity_guid,
|
1080
1083
|
tags=[
|
1081
1084
|
newrelic.EntityTagsTagArgs(
|
@@ -1108,8 +1111,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1108
1111
|
import pulumi
|
1109
1112
|
import pulumi_newrelic as newrelic
|
1110
1113
|
|
1111
|
-
|
1112
|
-
policy_id=
|
1114
|
+
z = newrelic.NrqlAlertCondition("z",
|
1115
|
+
policy_id=z_newrelic_alert_policy["id"],
|
1116
|
+
name="zleslie-test",
|
1113
1117
|
type="static",
|
1114
1118
|
runbook_url="https://localhost",
|
1115
1119
|
enabled=True,
|
@@ -1134,8 +1138,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1134
1138
|
import pulumi
|
1135
1139
|
import pulumi_newrelic as newrelic
|
1136
1140
|
|
1137
|
-
|
1138
|
-
policy_id=
|
1141
|
+
z = newrelic.NrqlAlertCondition("z",
|
1142
|
+
policy_id=z_newrelic_alert_policy["id"],
|
1143
|
+
name="zleslie-test",
|
1139
1144
|
type="static",
|
1140
1145
|
runbook_url="https://localhost",
|
1141
1146
|
enabled=True,
|
@@ -1217,11 +1222,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1217
1222
|
import pulumi
|
1218
1223
|
import pulumi_newrelic as newrelic
|
1219
1224
|
|
1220
|
-
|
1221
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1225
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
1226
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1222
1227
|
account_id=12345678,
|
1223
|
-
policy_id=
|
1228
|
+
policy_id=foo.id,
|
1224
1229
|
type="static",
|
1230
|
+
name="foo",
|
1225
1231
|
description="Alert when transactions are taking too long",
|
1226
1232
|
runbook_url="https://www.example.com",
|
1227
1233
|
enabled=True,
|
@@ -1296,11 +1302,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1296
1302
|
import pulumi
|
1297
1303
|
import pulumi_newrelic as newrelic
|
1298
1304
|
|
1299
|
-
|
1300
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1305
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
1306
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1301
1307
|
account_id="your_account_id",
|
1302
|
-
policy_id=
|
1308
|
+
policy_id=foo.id,
|
1303
1309
|
type="static",
|
1310
|
+
name="foo",
|
1304
1311
|
description="Alert when transactions are taking too long",
|
1305
1312
|
runbook_url="https://www.example.com",
|
1306
1313
|
enabled=True,
|
@@ -1341,11 +1348,12 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1341
1348
|
import pulumi
|
1342
1349
|
import pulumi_newrelic as newrelic
|
1343
1350
|
|
1344
|
-
|
1345
|
-
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("
|
1351
|
+
foo = newrelic.AlertPolicy("foo", name="foo")
|
1352
|
+
foo_nrql_alert_condition = newrelic.NrqlAlertCondition("foo",
|
1346
1353
|
account_id=12345678,
|
1347
|
-
policy_id=
|
1354
|
+
policy_id=foo.id,
|
1348
1355
|
type="static",
|
1356
|
+
name="foo",
|
1349
1357
|
description="Alert when transactions are taking too long",
|
1350
1358
|
runbook_url="https://www.example.com",
|
1351
1359
|
enabled=True,
|
@@ -1374,7 +1382,7 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1374
1382
|
threshold_duration=600,
|
1375
1383
|
threshold_occurrences="ALL",
|
1376
1384
|
))
|
1377
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
1385
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
1378
1386
|
guid=foo_nrql_alert_condition.entity_guid,
|
1379
1387
|
tags=[
|
1380
1388
|
newrelic.EntityTagsTagArgs(
|
@@ -1407,8 +1415,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1407
1415
|
import pulumi
|
1408
1416
|
import pulumi_newrelic as newrelic
|
1409
1417
|
|
1410
|
-
|
1411
|
-
policy_id=
|
1418
|
+
z = newrelic.NrqlAlertCondition("z",
|
1419
|
+
policy_id=z_newrelic_alert_policy["id"],
|
1420
|
+
name="zleslie-test",
|
1412
1421
|
type="static",
|
1413
1422
|
runbook_url="https://localhost",
|
1414
1423
|
enabled=True,
|
@@ -1433,8 +1442,9 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1433
1442
|
import pulumi
|
1434
1443
|
import pulumi_newrelic as newrelic
|
1435
1444
|
|
1436
|
-
|
1437
|
-
policy_id=
|
1445
|
+
z = newrelic.NrqlAlertCondition("z",
|
1446
|
+
policy_id=z_newrelic_alert_policy["id"],
|
1447
|
+
name="zleslie-test",
|
1438
1448
|
type="static",
|
1439
1449
|
runbook_url="https://localhost",
|
1440
1450
|
enabled=True,
|