pulumi-newrelic 5.23.0a1713561620__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.
- pulumi_newrelic/_inputs.py +110 -270
- pulumi_newrelic/account_management.py +14 -18
- pulumi_newrelic/alert_channel.py +28 -56
- pulumi_newrelic/alert_condition.py +84 -133
- pulumi_newrelic/alert_muting_rule.py +21 -25
- pulumi_newrelic/alert_policy.py +42 -33
- pulumi_newrelic/alert_policy_channel.py +0 -4
- pulumi_newrelic/cloud/_inputs.py +322 -1072
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -4
- pulumi_newrelic/cloud/aws_integrations.py +7 -11
- pulumi_newrelic/cloud/aws_link_account.py +0 -4
- pulumi_newrelic/cloud/azure_integrations.py +0 -4
- pulumi_newrelic/cloud/azure_link_account.py +0 -4
- pulumi_newrelic/cloud/gcp_integrations.py +0 -4
- pulumi_newrelic/cloud/gcp_link_account.py +0 -4
- pulumi_newrelic/cloud/outputs.py +322 -1072
- pulumi_newrelic/data_partition_rule.py +0 -4
- pulumi_newrelic/entity_tags.py +7 -11
- pulumi_newrelic/events_to_metrics_rule.py +0 -4
- pulumi_newrelic/get_account.py +0 -4
- pulumi_newrelic/get_application.py +0 -4
- pulumi_newrelic/get_authentication_domain.py +0 -4
- pulumi_newrelic/get_cloud_account.py +0 -4
- pulumi_newrelic/get_entity.py +0 -16
- pulumi_newrelic/get_group.py +0 -8
- pulumi_newrelic/get_key_transaction.py +0 -4
- pulumi_newrelic/get_obfuscation_expression.py +0 -4
- pulumi_newrelic/get_service_level_alert_helper.py +0 -30
- pulumi_newrelic/get_test_grok_pattern.py +0 -4
- pulumi_newrelic/get_user.py +0 -4
- pulumi_newrelic/group.py +0 -12
- pulumi_newrelic/infra_alert_condition.py +126 -113
- pulumi_newrelic/insights/event.py +0 -17
- pulumi_newrelic/log_parsing_rule.py +0 -8
- pulumi_newrelic/monitor_downtime.py +70 -101
- pulumi_newrelic/notification_channel.py +0 -44
- pulumi_newrelic/nrql_alert_condition.py +0 -20
- pulumi_newrelic/nrql_drop_rule.py +28 -32
- pulumi_newrelic/obfuscation_expression.py +0 -4
- pulumi_newrelic/obfuscation_rule.py +0 -4
- pulumi_newrelic/one_dashboard.py +42 -48
- pulumi_newrelic/one_dashboard_raw.py +0 -4
- pulumi_newrelic/outputs.py +110 -270
- pulumi_newrelic/plugins/_inputs.py +16 -16
- pulumi_newrelic/plugins/application_settings.py +0 -4
- pulumi_newrelic/plugins/outputs.py +16 -16
- pulumi_newrelic/plugins/workload.py +28 -48
- pulumi_newrelic/service_level.py +0 -91
- pulumi_newrelic/synthetics/alert_condition.py +14 -50
- pulumi_newrelic/synthetics/broken_links_monitor.py +0 -8
- pulumi_newrelic/synthetics/cert_check_monitor.py +0 -8
- pulumi_newrelic/synthetics/get_private_location.py +0 -8
- pulumi_newrelic/synthetics/get_secure_credential.py +0 -12
- pulumi_newrelic/synthetics/monitor.py +0 -16
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +49 -71
- pulumi_newrelic/synthetics/private_location.py +0 -4
- pulumi_newrelic/synthetics/script_monitor.py +4 -20
- pulumi_newrelic/synthetics/secure_credential.py +21 -18
- pulumi_newrelic/synthetics/step_monitor.py +4 -12
- pulumi_newrelic/user.py +0 -4
- pulumi_newrelic/workflow.py +0 -16
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713975814.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1713561620.dist-info → pulumi_newrelic-5.23.0a1713975814.dist-info}/top_level.txt +0 -0
@@ -286,7 +286,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
286
286
|
## Example Usage
|
287
287
|
|
288
288
|
##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)
|
289
|
-
<!--Start PulumiCodeChooser -->
|
290
289
|
```python
|
291
290
|
import pulumi
|
292
291
|
import pulumi_newrelic as newrelic
|
@@ -303,7 +302,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
303
302
|
label="Payload Template",
|
304
303
|
)])
|
305
304
|
```
|
306
|
-
<!--End PulumiCodeChooser -->
|
307
305
|
See additional examples.
|
308
306
|
|
309
307
|
## Additional Examples
|
@@ -313,7 +311,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
313
311
|
##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
|
314
312
|
To see the properties’ keys for your account, check ServiceNow incidents table.
|
315
313
|
|
316
|
-
<!--Start PulumiCodeChooser -->
|
317
314
|
```python
|
318
315
|
import pulumi
|
319
316
|
import pulumi_newrelic as newrelic
|
@@ -335,10 +332,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
335
332
|
),
|
336
333
|
])
|
337
334
|
```
|
338
|
-
<!--End PulumiCodeChooser -->
|
339
335
|
|
340
336
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
341
|
-
<!--Start PulumiCodeChooser -->
|
342
337
|
```python
|
343
338
|
import pulumi
|
344
339
|
import pulumi_newrelic as newrelic
|
@@ -360,10 +355,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
360
355
|
),
|
361
356
|
])
|
362
357
|
```
|
363
|
-
<!--End PulumiCodeChooser -->
|
364
358
|
|
365
359
|
##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)
|
366
|
-
<!--Start PulumiCodeChooser -->
|
367
360
|
```python
|
368
361
|
import pulumi
|
369
362
|
import pulumi_newrelic as newrelic
|
@@ -393,10 +386,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
393
386
|
),
|
394
387
|
])
|
395
388
|
```
|
396
|
-
<!--End PulumiCodeChooser -->
|
397
389
|
|
398
390
|
##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
399
|
-
<!--Start PulumiCodeChooser -->
|
400
391
|
```python
|
401
392
|
import pulumi
|
402
393
|
import pulumi_newrelic as newrelic
|
@@ -440,10 +431,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
440
431
|
),
|
441
432
|
])
|
442
433
|
```
|
443
|
-
<!--End PulumiCodeChooser -->
|
444
434
|
|
445
435
|
##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
446
|
-
<!--Start PulumiCodeChooser -->
|
447
436
|
```python
|
448
437
|
import pulumi
|
449
438
|
import pulumi_newrelic as newrelic
|
@@ -478,10 +467,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
478
467
|
),
|
479
468
|
])
|
480
469
|
```
|
481
|
-
<!--End PulumiCodeChooser -->
|
482
470
|
|
483
471
|
#### Mobile Push
|
484
|
-
<!--Start PulumiCodeChooser -->
|
485
472
|
```python
|
486
473
|
import pulumi
|
487
474
|
import pulumi_newrelic as newrelic
|
@@ -493,10 +480,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
493
480
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
494
481
|
product="IINT")
|
495
482
|
```
|
496
|
-
<!--End PulumiCodeChooser -->
|
497
483
|
|
498
484
|
#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)
|
499
|
-
<!--Start PulumiCodeChooser -->
|
500
485
|
```python
|
501
486
|
import pulumi
|
502
487
|
import pulumi_newrelic as newrelic
|
@@ -518,10 +503,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
518
503
|
),
|
519
504
|
])
|
520
505
|
```
|
521
|
-
<!--End PulumiCodeChooser -->
|
522
506
|
|
523
507
|
#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)
|
524
|
-
<!--Start PulumiCodeChooser -->
|
525
508
|
```python
|
526
509
|
import pulumi
|
527
510
|
import pulumi_newrelic as newrelic
|
@@ -543,7 +526,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
543
526
|
),
|
544
527
|
])
|
545
528
|
```
|
546
|
-
<!--End PulumiCodeChooser -->
|
547
529
|
|
548
530
|
> **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
549
531
|
|
@@ -552,7 +534,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
552
534
|
Create a destination resource and reference that destination to the channel resource:
|
553
535
|
|
554
536
|
### Create a destination
|
555
|
-
<!--Start PulumiCodeChooser -->
|
556
537
|
```python
|
557
538
|
import pulumi
|
558
539
|
import pulumi_newrelic as newrelic
|
@@ -570,10 +551,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
570
551
|
password="password",
|
571
552
|
))
|
572
553
|
```
|
573
|
-
<!--End PulumiCodeChooser -->
|
574
554
|
|
575
555
|
### Create a channel
|
576
|
-
<!--Start PulumiCodeChooser -->
|
577
556
|
```python
|
578
557
|
import pulumi
|
579
558
|
import pulumi_newrelic as newrelic
|
@@ -590,7 +569,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
590
569
|
label="Payload Template",
|
591
570
|
)])
|
592
571
|
```
|
593
|
-
<!--End PulumiCodeChooser -->
|
594
572
|
|
595
573
|
## Additional Information
|
596
574
|
|
@@ -634,7 +612,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
634
612
|
## Example Usage
|
635
613
|
|
636
614
|
##### [Webhook](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#webhook)
|
637
|
-
<!--Start PulumiCodeChooser -->
|
638
615
|
```python
|
639
616
|
import pulumi
|
640
617
|
import pulumi_newrelic as newrelic
|
@@ -651,7 +628,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
651
628
|
label="Payload Template",
|
652
629
|
)])
|
653
630
|
```
|
654
|
-
<!--End PulumiCodeChooser -->
|
655
631
|
See additional examples.
|
656
632
|
|
657
633
|
## Additional Examples
|
@@ -661,7 +637,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
661
637
|
##### [ServiceNow](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenow)
|
662
638
|
To see the properties’ keys for your account, check ServiceNow incidents table.
|
663
639
|
|
664
|
-
<!--Start PulumiCodeChooser -->
|
665
640
|
```python
|
666
641
|
import pulumi
|
667
642
|
import pulumi_newrelic as newrelic
|
@@ -683,10 +658,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
683
658
|
),
|
684
659
|
])
|
685
660
|
```
|
686
|
-
<!--End PulumiCodeChooser -->
|
687
661
|
|
688
662
|
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
|
689
|
-
<!--Start PulumiCodeChooser -->
|
690
663
|
```python
|
691
664
|
import pulumi
|
692
665
|
import pulumi_newrelic as newrelic
|
@@ -708,10 +681,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
708
681
|
),
|
709
682
|
])
|
710
683
|
```
|
711
|
-
<!--End PulumiCodeChooser -->
|
712
684
|
|
713
685
|
##### [Jira Classic](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#jira)
|
714
|
-
<!--Start PulumiCodeChooser -->
|
715
686
|
```python
|
716
687
|
import pulumi
|
717
688
|
import pulumi_newrelic as newrelic
|
@@ -741,10 +712,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
741
712
|
),
|
742
713
|
])
|
743
714
|
```
|
744
|
-
<!--End PulumiCodeChooser -->
|
745
715
|
|
746
716
|
##### [PagerDuty with account integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
747
|
-
<!--Start PulumiCodeChooser -->
|
748
717
|
```python
|
749
718
|
import pulumi
|
750
719
|
import pulumi_newrelic as newrelic
|
@@ -788,10 +757,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
788
757
|
),
|
789
758
|
])
|
790
759
|
```
|
791
|
-
<!--End PulumiCodeChooser -->
|
792
760
|
|
793
761
|
##### [PagerDuty with service integration](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#pagerduty)
|
794
|
-
<!--Start PulumiCodeChooser -->
|
795
762
|
```python
|
796
763
|
import pulumi
|
797
764
|
import pulumi_newrelic as newrelic
|
@@ -826,10 +793,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
826
793
|
),
|
827
794
|
])
|
828
795
|
```
|
829
|
-
<!--End PulumiCodeChooser -->
|
830
796
|
|
831
797
|
#### Mobile Push
|
832
|
-
<!--Start PulumiCodeChooser -->
|
833
798
|
```python
|
834
799
|
import pulumi
|
835
800
|
import pulumi_newrelic as newrelic
|
@@ -841,10 +806,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
841
806
|
destination_id="00b6bd1d-ac06-4d3d-bd72-49551e70f7a8",
|
842
807
|
product="IINT")
|
843
808
|
```
|
844
|
-
<!--End PulumiCodeChooser -->
|
845
809
|
|
846
810
|
#### [AWS Event Bridge](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#eventBridge)
|
847
|
-
<!--Start PulumiCodeChooser -->
|
848
811
|
```python
|
849
812
|
import pulumi
|
850
813
|
import pulumi_newrelic as newrelic
|
@@ -866,10 +829,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
866
829
|
),
|
867
830
|
])
|
868
831
|
```
|
869
|
-
<!--End PulumiCodeChooser -->
|
870
832
|
|
871
833
|
#### [SLACK](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#slack)
|
872
|
-
<!--Start PulumiCodeChooser -->
|
873
834
|
```python
|
874
835
|
import pulumi
|
875
836
|
import pulumi_newrelic as newrelic
|
@@ -891,7 +852,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
891
852
|
),
|
892
853
|
])
|
893
854
|
```
|
894
|
-
<!--End PulumiCodeChooser -->
|
895
855
|
|
896
856
|
> **NOTE:** Sensitive data such as channel API keys, service keys, etc are not returned from the underlying API for security reasons and may not be set in state when importing.
|
897
857
|
|
@@ -900,7 +860,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
900
860
|
Create a destination resource and reference that destination to the channel resource:
|
901
861
|
|
902
862
|
### Create a destination
|
903
|
-
<!--Start PulumiCodeChooser -->
|
904
863
|
```python
|
905
864
|
import pulumi
|
906
865
|
import pulumi_newrelic as newrelic
|
@@ -918,10 +877,8 @@ class NotificationChannel(pulumi.CustomResource):
|
|
918
877
|
password="password",
|
919
878
|
))
|
920
879
|
```
|
921
|
-
<!--End PulumiCodeChooser -->
|
922
880
|
|
923
881
|
### Create a channel
|
924
|
-
<!--Start PulumiCodeChooser -->
|
925
882
|
```python
|
926
883
|
import pulumi
|
927
884
|
import pulumi_newrelic as newrelic
|
@@ -938,7 +895,6 @@ class NotificationChannel(pulumi.CustomResource):
|
|
938
895
|
label="Payload Template",
|
939
896
|
)])
|
940
897
|
```
|
941
|
-
<!--End PulumiCodeChooser -->
|
942
898
|
|
943
899
|
## Additional Information
|
944
900
|
|
@@ -913,7 +913,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
913
913
|
|
914
914
|
### Type: `static` (default)
|
915
915
|
|
916
|
-
<!--Start PulumiCodeChooser -->
|
917
916
|
```python
|
918
917
|
import pulumi
|
919
918
|
import pulumi_newrelic as newrelic
|
@@ -953,7 +952,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
953
952
|
threshold_occurrences="ALL",
|
954
953
|
))
|
955
954
|
```
|
956
|
-
<!--End PulumiCodeChooser -->
|
957
955
|
|
958
956
|
## NRQL
|
959
957
|
|
@@ -993,7 +991,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
993
991
|
|
994
992
|
[Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
|
995
993
|
|
996
|
-
<!--Start PulumiCodeChooser -->
|
997
994
|
```python
|
998
995
|
import pulumi
|
999
996
|
import pulumi_newrelic as newrelic
|
@@ -1033,13 +1030,11 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1033
1030
|
threshold_occurrences="ALL",
|
1034
1031
|
))
|
1035
1032
|
```
|
1036
|
-
<!--End PulumiCodeChooser -->
|
1037
1033
|
|
1038
1034
|
## Tags
|
1039
1035
|
|
1040
1036
|
Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
|
1041
1037
|
|
1042
|
-
<!--Start PulumiCodeChooser -->
|
1043
1038
|
```python
|
1044
1039
|
import pulumi
|
1045
1040
|
import pulumi_newrelic as newrelic
|
@@ -1094,7 +1089,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1094
1089
|
),
|
1095
1090
|
])
|
1096
1091
|
```
|
1097
|
-
<!--End PulumiCodeChooser -->
|
1098
1092
|
|
1099
1093
|
<small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
|
1100
1094
|
|
@@ -1106,7 +1100,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1106
1100
|
|
1107
1101
|
An example resource from 1.x might look like the following.
|
1108
1102
|
|
1109
|
-
<!--Start PulumiCodeChooser -->
|
1110
1103
|
```python
|
1111
1104
|
import pulumi
|
1112
1105
|
import pulumi_newrelic as newrelic
|
@@ -1128,12 +1121,10 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1128
1121
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1129
1122
|
))
|
1130
1123
|
```
|
1131
|
-
<!--End PulumiCodeChooser -->
|
1132
1124
|
|
1133
1125
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
1134
1126
|
the resource now looks like the following.
|
1135
1127
|
|
1136
|
-
<!--Start PulumiCodeChooser -->
|
1137
1128
|
```python
|
1138
1129
|
import pulumi
|
1139
1130
|
import pulumi_newrelic as newrelic
|
@@ -1156,7 +1147,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1156
1147
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1157
1148
|
))
|
1158
1149
|
```
|
1159
|
-
<!--End PulumiCodeChooser -->
|
1160
1150
|
|
1161
1151
|
## Import
|
1162
1152
|
|
@@ -1217,7 +1207,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1217
1207
|
|
1218
1208
|
### Type: `static` (default)
|
1219
1209
|
|
1220
|
-
<!--Start PulumiCodeChooser -->
|
1221
1210
|
```python
|
1222
1211
|
import pulumi
|
1223
1212
|
import pulumi_newrelic as newrelic
|
@@ -1257,7 +1246,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1257
1246
|
threshold_occurrences="ALL",
|
1258
1247
|
))
|
1259
1248
|
```
|
1260
|
-
<!--End PulumiCodeChooser -->
|
1261
1249
|
|
1262
1250
|
## NRQL
|
1263
1251
|
|
@@ -1297,7 +1285,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1297
1285
|
|
1298
1286
|
[Baseline NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-baseline-alert-conditions) are dynamic in nature and adjust to the behavior of your data. The example below demonstrates a baseline NRQL alert condition for alerting when transaction durations are above a specified threshold and dynamically adjusts based on data trends.
|
1299
1287
|
|
1300
|
-
<!--Start PulumiCodeChooser -->
|
1301
1288
|
```python
|
1302
1289
|
import pulumi
|
1303
1290
|
import pulumi_newrelic as newrelic
|
@@ -1337,13 +1324,11 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1337
1324
|
threshold_occurrences="ALL",
|
1338
1325
|
))
|
1339
1326
|
```
|
1340
|
-
<!--End PulumiCodeChooser -->
|
1341
1327
|
|
1342
1328
|
## Tags
|
1343
1329
|
|
1344
1330
|
Manage NRQL alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check `EntityTags`.
|
1345
1331
|
|
1346
|
-
<!--Start PulumiCodeChooser -->
|
1347
1332
|
```python
|
1348
1333
|
import pulumi
|
1349
1334
|
import pulumi_newrelic as newrelic
|
@@ -1398,7 +1383,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1398
1383
|
),
|
1399
1384
|
])
|
1400
1385
|
```
|
1401
|
-
<!--End PulumiCodeChooser -->
|
1402
1386
|
|
1403
1387
|
<small>alerts.newrelic.com/accounts/**\\<account_id\\>**/policies/**\\<policy_id\\>**/conditions/**\\<condition_id\\>**/edit</small>
|
1404
1388
|
|
@@ -1410,7 +1394,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1410
1394
|
|
1411
1395
|
An example resource from 1.x might look like the following.
|
1412
1396
|
|
1413
|
-
<!--Start PulumiCodeChooser -->
|
1414
1397
|
```python
|
1415
1398
|
import pulumi
|
1416
1399
|
import pulumi_newrelic as newrelic
|
@@ -1432,12 +1415,10 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1432
1415
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1433
1416
|
))
|
1434
1417
|
```
|
1435
|
-
<!--End PulumiCodeChooser -->
|
1436
1418
|
|
1437
1419
|
After making the appropriate adjustments mentioned in the deprecation warnings,
|
1438
1420
|
the resource now looks like the following.
|
1439
1421
|
|
1440
|
-
<!--Start PulumiCodeChooser -->
|
1441
1422
|
```python
|
1442
1423
|
import pulumi
|
1443
1424
|
import pulumi_newrelic as newrelic
|
@@ -1460,7 +1441,6 @@ class NrqlAlertCondition(pulumi.CustomResource):
|
|
1460
1441
|
query="SELECT count(*) FROM TransactionError WHERE appName like '%Dummy App%' FACET appName",
|
1461
1442
|
))
|
1462
1443
|
```
|
1463
|
-
<!--End PulumiCodeChooser -->
|
1464
1444
|
|
1465
1445
|
## Import
|
1466
1446
|
|
@@ -20,10 +20,10 @@ class NrqlDropRuleArgs:
|
|
20
20
|
description: Optional[pulumi.Input[str]] = None):
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a NrqlDropRule resource.
|
23
|
-
:param pulumi.Input[str] action:
|
24
|
-
:param pulumi.Input[str] nrql:
|
25
|
-
:param pulumi.Input[int] account_id: Account
|
26
|
-
:param pulumi.Input[str] description:
|
23
|
+
:param pulumi.Input[str] action: The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
24
|
+
:param pulumi.Input[str] nrql: Explains which data to apply the drop rule to.
|
25
|
+
:param pulumi.Input[int] account_id: Account with the NRQL drop rule will be put.
|
26
|
+
:param pulumi.Input[str] description: Provides additional information about the rule.
|
27
27
|
"""
|
28
28
|
pulumi.set(__self__, "action", action)
|
29
29
|
pulumi.set(__self__, "nrql", nrql)
|
@@ -36,7 +36,7 @@ class NrqlDropRuleArgs:
|
|
36
36
|
@pulumi.getter
|
37
37
|
def action(self) -> pulumi.Input[str]:
|
38
38
|
"""
|
39
|
-
|
39
|
+
The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
40
40
|
"""
|
41
41
|
return pulumi.get(self, "action")
|
42
42
|
|
@@ -48,7 +48,7 @@ class NrqlDropRuleArgs:
|
|
48
48
|
@pulumi.getter
|
49
49
|
def nrql(self) -> pulumi.Input[str]:
|
50
50
|
"""
|
51
|
-
|
51
|
+
Explains which data to apply the drop rule to.
|
52
52
|
"""
|
53
53
|
return pulumi.get(self, "nrql")
|
54
54
|
|
@@ -60,7 +60,7 @@ class NrqlDropRuleArgs:
|
|
60
60
|
@pulumi.getter(name="accountId")
|
61
61
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
62
62
|
"""
|
63
|
-
Account
|
63
|
+
Account with the NRQL drop rule will be put.
|
64
64
|
"""
|
65
65
|
return pulumi.get(self, "account_id")
|
66
66
|
|
@@ -72,7 +72,7 @@ class NrqlDropRuleArgs:
|
|
72
72
|
@pulumi.getter
|
73
73
|
def description(self) -> Optional[pulumi.Input[str]]:
|
74
74
|
"""
|
75
|
-
|
75
|
+
Provides additional information about the rule.
|
76
76
|
"""
|
77
77
|
return pulumi.get(self, "description")
|
78
78
|
|
@@ -91,10 +91,10 @@ class _NrqlDropRuleState:
|
|
91
91
|
rule_id: Optional[pulumi.Input[str]] = None):
|
92
92
|
"""
|
93
93
|
Input properties used for looking up and filtering NrqlDropRule resources.
|
94
|
-
:param pulumi.Input[int] account_id: Account
|
95
|
-
:param pulumi.Input[str] action:
|
96
|
-
:param pulumi.Input[str] description:
|
97
|
-
:param pulumi.Input[str] nrql:
|
94
|
+
:param pulumi.Input[int] account_id: Account with the NRQL drop rule will be put.
|
95
|
+
:param pulumi.Input[str] action: The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
96
|
+
:param pulumi.Input[str] description: Provides additional information about the rule.
|
97
|
+
:param pulumi.Input[str] nrql: Explains which data to apply the drop rule to.
|
98
98
|
:param pulumi.Input[str] rule_id: The id, uniquely identifying the rule.
|
99
99
|
"""
|
100
100
|
if account_id is not None:
|
@@ -112,7 +112,7 @@ class _NrqlDropRuleState:
|
|
112
112
|
@pulumi.getter(name="accountId")
|
113
113
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
114
114
|
"""
|
115
|
-
Account
|
115
|
+
Account with the NRQL drop rule will be put.
|
116
116
|
"""
|
117
117
|
return pulumi.get(self, "account_id")
|
118
118
|
|
@@ -124,7 +124,7 @@ class _NrqlDropRuleState:
|
|
124
124
|
@pulumi.getter
|
125
125
|
def action(self) -> Optional[pulumi.Input[str]]:
|
126
126
|
"""
|
127
|
-
|
127
|
+
The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
128
128
|
"""
|
129
129
|
return pulumi.get(self, "action")
|
130
130
|
|
@@ -136,7 +136,7 @@ class _NrqlDropRuleState:
|
|
136
136
|
@pulumi.getter
|
137
137
|
def description(self) -> Optional[pulumi.Input[str]]:
|
138
138
|
"""
|
139
|
-
|
139
|
+
Provides additional information about the rule.
|
140
140
|
"""
|
141
141
|
return pulumi.get(self, "description")
|
142
142
|
|
@@ -148,7 +148,7 @@ class _NrqlDropRuleState:
|
|
148
148
|
@pulumi.getter
|
149
149
|
def nrql(self) -> Optional[pulumi.Input[str]]:
|
150
150
|
"""
|
151
|
-
|
151
|
+
Explains which data to apply the drop rule to.
|
152
152
|
"""
|
153
153
|
return pulumi.get(self, "nrql")
|
154
154
|
|
@@ -182,7 +182,6 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
182
182
|
"""
|
183
183
|
## Example Usage
|
184
184
|
|
185
|
-
<!--Start PulumiCodeChooser -->
|
186
185
|
```python
|
187
186
|
import pulumi
|
188
187
|
import pulumi_newrelic as newrelic
|
@@ -203,7 +202,6 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
203
202
|
action="drop_attributes_from_metric_aggregates",
|
204
203
|
nrql="SELECT containerId FROM Metric")
|
205
204
|
```
|
206
|
-
<!--End PulumiCodeChooser -->
|
207
205
|
|
208
206
|
## Using `newrelic-cli` to List Out Drop Rules
|
209
207
|
|
@@ -230,10 +228,10 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
230
228
|
|
231
229
|
:param str resource_name: The name of the resource.
|
232
230
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
233
|
-
:param pulumi.Input[int] account_id: Account
|
234
|
-
:param pulumi.Input[str] action:
|
235
|
-
:param pulumi.Input[str] description:
|
236
|
-
:param pulumi.Input[str] nrql:
|
231
|
+
:param pulumi.Input[int] account_id: Account with the NRQL drop rule will be put.
|
232
|
+
:param pulumi.Input[str] action: The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
233
|
+
:param pulumi.Input[str] description: Provides additional information about the rule.
|
234
|
+
:param pulumi.Input[str] nrql: Explains which data to apply the drop rule to.
|
237
235
|
"""
|
238
236
|
...
|
239
237
|
@overload
|
@@ -244,7 +242,6 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
244
242
|
"""
|
245
243
|
## Example Usage
|
246
244
|
|
247
|
-
<!--Start PulumiCodeChooser -->
|
248
245
|
```python
|
249
246
|
import pulumi
|
250
247
|
import pulumi_newrelic as newrelic
|
@@ -265,7 +262,6 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
265
262
|
action="drop_attributes_from_metric_aggregates",
|
266
263
|
nrql="SELECT containerId FROM Metric")
|
267
264
|
```
|
268
|
-
<!--End PulumiCodeChooser -->
|
269
265
|
|
270
266
|
## Using `newrelic-cli` to List Out Drop Rules
|
271
267
|
|
@@ -349,10 +345,10 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
349
345
|
:param str resource_name: The unique name of the resulting resource.
|
350
346
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
351
347
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
352
|
-
:param pulumi.Input[int] account_id: Account
|
353
|
-
:param pulumi.Input[str] action:
|
354
|
-
:param pulumi.Input[str] description:
|
355
|
-
:param pulumi.Input[str] nrql:
|
348
|
+
:param pulumi.Input[int] account_id: Account with the NRQL drop rule will be put.
|
349
|
+
:param pulumi.Input[str] action: The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
350
|
+
:param pulumi.Input[str] description: Provides additional information about the rule.
|
351
|
+
:param pulumi.Input[str] nrql: Explains which data to apply the drop rule to.
|
356
352
|
:param pulumi.Input[str] rule_id: The id, uniquely identifying the rule.
|
357
353
|
"""
|
358
354
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -370,7 +366,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
370
366
|
@pulumi.getter(name="accountId")
|
371
367
|
def account_id(self) -> pulumi.Output[int]:
|
372
368
|
"""
|
373
|
-
Account
|
369
|
+
Account with the NRQL drop rule will be put.
|
374
370
|
"""
|
375
371
|
return pulumi.get(self, "account_id")
|
376
372
|
|
@@ -378,7 +374,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
378
374
|
@pulumi.getter
|
379
375
|
def action(self) -> pulumi.Output[str]:
|
380
376
|
"""
|
381
|
-
|
377
|
+
The drop rule action (drop_data, drop_attributes, or drop_attributes_from_metric_aggregates).
|
382
378
|
"""
|
383
379
|
return pulumi.get(self, "action")
|
384
380
|
|
@@ -386,7 +382,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
386
382
|
@pulumi.getter
|
387
383
|
def description(self) -> pulumi.Output[Optional[str]]:
|
388
384
|
"""
|
389
|
-
|
385
|
+
Provides additional information about the rule.
|
390
386
|
"""
|
391
387
|
return pulumi.get(self, "description")
|
392
388
|
|
@@ -394,7 +390,7 @@ class NrqlDropRule(pulumi.CustomResource):
|
|
394
390
|
@pulumi.getter
|
395
391
|
def nrql(self) -> pulumi.Output[str]:
|
396
392
|
"""
|
397
|
-
|
393
|
+
Explains which data to apply the drop rule to.
|
398
394
|
"""
|
399
395
|
return pulumi.get(self, "nrql")
|
400
396
|
|
@@ -169,7 +169,6 @@ class ObfuscationExpression(pulumi.CustomResource):
|
|
169
169
|
|
170
170
|
## Example Usage
|
171
171
|
|
172
|
-
<!--Start PulumiCodeChooser -->
|
173
172
|
```python
|
174
173
|
import pulumi
|
175
174
|
import pulumi_newrelic as newrelic
|
@@ -180,7 +179,6 @@ class ObfuscationExpression(pulumi.CustomResource):
|
|
180
179
|
description="The description",
|
181
180
|
regex="(regex.*)")
|
182
181
|
```
|
183
|
-
<!--End PulumiCodeChooser -->
|
184
182
|
|
185
183
|
## Import
|
186
184
|
|
@@ -210,7 +208,6 @@ class ObfuscationExpression(pulumi.CustomResource):
|
|
210
208
|
|
211
209
|
## Example Usage
|
212
210
|
|
213
|
-
<!--Start PulumiCodeChooser -->
|
214
211
|
```python
|
215
212
|
import pulumi
|
216
213
|
import pulumi_newrelic as newrelic
|
@@ -221,7 +218,6 @@ class ObfuscationExpression(pulumi.CustomResource):
|
|
221
218
|
description="The description",
|
222
219
|
regex="(regex.*)")
|
223
220
|
```
|
224
|
-
<!--End PulumiCodeChooser -->
|
225
221
|
|
226
222
|
## Import
|
227
223
|
|
@@ -235,7 +235,6 @@ class ObfuscationRule(pulumi.CustomResource):
|
|
235
235
|
|
236
236
|
## Example Usage
|
237
237
|
|
238
|
-
<!--Start PulumiCodeChooser -->
|
239
238
|
```python
|
240
239
|
import pulumi
|
241
240
|
import pulumi_newrelic as newrelic
|
@@ -255,7 +254,6 @@ class ObfuscationRule(pulumi.CustomResource):
|
|
255
254
|
method="MASK",
|
256
255
|
)])
|
257
256
|
```
|
258
|
-
<!--End PulumiCodeChooser -->
|
259
257
|
|
260
258
|
## Import
|
261
259
|
|
@@ -287,7 +285,6 @@ class ObfuscationRule(pulumi.CustomResource):
|
|
287
285
|
|
288
286
|
## Example Usage
|
289
287
|
|
290
|
-
<!--Start PulumiCodeChooser -->
|
291
288
|
```python
|
292
289
|
import pulumi
|
293
290
|
import pulumi_newrelic as newrelic
|
@@ -307,7 +304,6 @@ class ObfuscationRule(pulumi.CustomResource):
|
|
307
304
|
method="MASK",
|
308
305
|
)])
|
309
306
|
```
|
310
|
-
<!--End PulumiCodeChooser -->
|
311
307
|
|
312
308
|
## Import
|
313
309
|
|