pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.25.0__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 +499 -93
- pulumi_newrelic/account_management.py +14 -14
- pulumi_newrelic/alert_channel.py +38 -38
- pulumi_newrelic/alert_condition.py +153 -112
- pulumi_newrelic/alert_muting_rule.py +31 -31
- pulumi_newrelic/alert_policy.py +47 -41
- pulumi_newrelic/alert_policy_channel.py +42 -42
- pulumi_newrelic/api_access_key.py +28 -28
- pulumi_newrelic/browser_application.py +14 -14
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
- pulumi_newrelic/cloud/aws_integrations.py +28 -28
- pulumi_newrelic/cloud/aws_link_account.py +14 -14
- pulumi_newrelic/cloud/azure_integrations.py +28 -28
- pulumi_newrelic/cloud/azure_link_account.py +14 -14
- pulumi_newrelic/cloud/gcp_integrations.py +28 -28
- pulumi_newrelic/cloud/gcp_link_account.py +14 -14
- pulumi_newrelic/config/__init__.pyi +1 -1
- pulumi_newrelic/config/vars.py +2 -2
- pulumi_newrelic/data_partition_rule.py +14 -14
- pulumi_newrelic/entity_tags.py +7 -7
- pulumi_newrelic/events_to_metrics_rule.py +16 -16
- pulumi_newrelic/get_account.py +7 -7
- pulumi_newrelic/get_alert_channel.py +8 -8
- pulumi_newrelic/get_alert_policy.py +16 -7
- pulumi_newrelic/get_application.py +2 -2
- pulumi_newrelic/get_cloud_account.py +9 -9
- pulumi_newrelic/get_entity.py +15 -15
- pulumi_newrelic/get_notification_destination.py +7 -7
- pulumi_newrelic/get_obfuscation_expression.py +9 -9
- pulumi_newrelic/get_service_level_alert_helper.py +28 -10
- pulumi_newrelic/get_test_grok_pattern.py +7 -7
- pulumi_newrelic/infra_alert_condition.py +119 -140
- pulumi_newrelic/insights/event.py +13 -0
- pulumi_newrelic/log_parsing_rule.py +14 -14
- pulumi_newrelic/monitor_downtime.py +14 -14
- pulumi_newrelic/notification_channel.py +36 -36
- pulumi_newrelic/notification_destination.py +28 -24
- pulumi_newrelic/nrql_alert_condition.py +32 -32
- pulumi_newrelic/nrql_drop_rule.py +44 -44
- pulumi_newrelic/obfuscation_expression.py +16 -16
- pulumi_newrelic/obfuscation_rule.py +14 -14
- pulumi_newrelic/one_dashboard.py +58 -52
- pulumi_newrelic/one_dashboard_json.py +14 -14
- pulumi_newrelic/one_dashboard_raw.py +14 -14
- pulumi_newrelic/outputs.py +482 -77
- pulumi_newrelic/plugins/_inputs.py +8 -8
- pulumi_newrelic/plugins/outputs.py +8 -8
- pulumi_newrelic/plugins/workload.py +83 -83
- pulumi_newrelic/provider.py +14 -9
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +85 -6
- pulumi_newrelic/synthetics/alert_condition.py +56 -28
- pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
- pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
- pulumi_newrelic/synthetics/get_private_location.py +11 -11
- pulumi_newrelic/synthetics/get_secure_credential.py +13 -5
- pulumi_newrelic/synthetics/monitor.py +18 -14
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +77 -63
- pulumi_newrelic/synthetics/private_location.py +14 -14
- pulumi_newrelic/synthetics/script_monitor.py +18 -14
- pulumi_newrelic/synthetics/secure_credential.py +24 -31
- pulumi_newrelic/synthetics/step_monitor.py +32 -14
- pulumi_newrelic/workflow.py +14 -14
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.25.0.dist-info/RECORD +89 -0
- pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.25.0.dist-info}/top_level.txt +0 -0
pulumi_newrelic/service_level.py
CHANGED
@@ -23,6 +23,13 @@ class ServiceLevelArgs:
|
|
23
23
|
name: Optional[pulumi.Input[str]] = None):
|
24
24
|
"""
|
25
25
|
The set of arguments for constructing a ServiceLevel resource.
|
26
|
+
:param pulumi.Input['ServiceLevelEventsArgs'] events: The events that define the NRDB data for the SLI/SLO calculations.
|
27
|
+
See Events below for details.
|
28
|
+
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
29
|
+
:param pulumi.Input['ServiceLevelObjectiveArgs'] objective: The objective of the SLI, only one can be defined.
|
30
|
+
See Objective below for details.
|
31
|
+
:param pulumi.Input[str] description: The description of the SLI.
|
32
|
+
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
26
33
|
"""
|
27
34
|
pulumi.set(__self__, "events", events)
|
28
35
|
pulumi.set(__self__, "guid", guid)
|
@@ -35,6 +42,10 @@ class ServiceLevelArgs:
|
|
35
42
|
@property
|
36
43
|
@pulumi.getter
|
37
44
|
def events(self) -> pulumi.Input['ServiceLevelEventsArgs']:
|
45
|
+
"""
|
46
|
+
The events that define the NRDB data for the SLI/SLO calculations.
|
47
|
+
See Events below for details.
|
48
|
+
"""
|
38
49
|
return pulumi.get(self, "events")
|
39
50
|
|
40
51
|
@events.setter
|
@@ -44,6 +55,9 @@ class ServiceLevelArgs:
|
|
44
55
|
@property
|
45
56
|
@pulumi.getter
|
46
57
|
def guid(self) -> pulumi.Input[str]:
|
58
|
+
"""
|
59
|
+
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
60
|
+
"""
|
47
61
|
return pulumi.get(self, "guid")
|
48
62
|
|
49
63
|
@guid.setter
|
@@ -53,6 +67,10 @@ class ServiceLevelArgs:
|
|
53
67
|
@property
|
54
68
|
@pulumi.getter
|
55
69
|
def objective(self) -> pulumi.Input['ServiceLevelObjectiveArgs']:
|
70
|
+
"""
|
71
|
+
The objective of the SLI, only one can be defined.
|
72
|
+
See Objective below for details.
|
73
|
+
"""
|
56
74
|
return pulumi.get(self, "objective")
|
57
75
|
|
58
76
|
@objective.setter
|
@@ -62,6 +80,9 @@ class ServiceLevelArgs:
|
|
62
80
|
@property
|
63
81
|
@pulumi.getter
|
64
82
|
def description(self) -> Optional[pulumi.Input[str]]:
|
83
|
+
"""
|
84
|
+
The description of the SLI.
|
85
|
+
"""
|
65
86
|
return pulumi.get(self, "description")
|
66
87
|
|
67
88
|
@description.setter
|
@@ -71,6 +92,9 @@ class ServiceLevelArgs:
|
|
71
92
|
@property
|
72
93
|
@pulumi.getter
|
73
94
|
def name(self) -> Optional[pulumi.Input[str]]:
|
95
|
+
"""
|
96
|
+
A short name for the SLI that will help anyone understand what it is about.
|
97
|
+
"""
|
74
98
|
return pulumi.get(self, "name")
|
75
99
|
|
76
100
|
@name.setter
|
@@ -90,6 +114,13 @@ class _ServiceLevelState:
|
|
90
114
|
sli_id: Optional[pulumi.Input[str]] = None):
|
91
115
|
"""
|
92
116
|
Input properties used for looking up and filtering ServiceLevel resources.
|
117
|
+
:param pulumi.Input[str] description: The description of the SLI.
|
118
|
+
:param pulumi.Input['ServiceLevelEventsArgs'] events: The events that define the NRDB data for the SLI/SLO calculations.
|
119
|
+
See Events below for details.
|
120
|
+
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
121
|
+
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
122
|
+
:param pulumi.Input['ServiceLevelObjectiveArgs'] objective: The objective of the SLI, only one can be defined.
|
123
|
+
See Objective below for details.
|
93
124
|
:param pulumi.Input[str] sli_guid: The unique entity identifier of the Service Level Indicator in New Relic.
|
94
125
|
:param pulumi.Input[str] sli_id: The unique entity identifier of the Service Level Indicator.
|
95
126
|
"""
|
@@ -111,6 +142,9 @@ class _ServiceLevelState:
|
|
111
142
|
@property
|
112
143
|
@pulumi.getter
|
113
144
|
def description(self) -> Optional[pulumi.Input[str]]:
|
145
|
+
"""
|
146
|
+
The description of the SLI.
|
147
|
+
"""
|
114
148
|
return pulumi.get(self, "description")
|
115
149
|
|
116
150
|
@description.setter
|
@@ -120,6 +154,10 @@ class _ServiceLevelState:
|
|
120
154
|
@property
|
121
155
|
@pulumi.getter
|
122
156
|
def events(self) -> Optional[pulumi.Input['ServiceLevelEventsArgs']]:
|
157
|
+
"""
|
158
|
+
The events that define the NRDB data for the SLI/SLO calculations.
|
159
|
+
See Events below for details.
|
160
|
+
"""
|
123
161
|
return pulumi.get(self, "events")
|
124
162
|
|
125
163
|
@events.setter
|
@@ -129,6 +167,9 @@ class _ServiceLevelState:
|
|
129
167
|
@property
|
130
168
|
@pulumi.getter
|
131
169
|
def guid(self) -> Optional[pulumi.Input[str]]:
|
170
|
+
"""
|
171
|
+
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
172
|
+
"""
|
132
173
|
return pulumi.get(self, "guid")
|
133
174
|
|
134
175
|
@guid.setter
|
@@ -138,6 +179,9 @@ class _ServiceLevelState:
|
|
138
179
|
@property
|
139
180
|
@pulumi.getter
|
140
181
|
def name(self) -> Optional[pulumi.Input[str]]:
|
182
|
+
"""
|
183
|
+
A short name for the SLI that will help anyone understand what it is about.
|
184
|
+
"""
|
141
185
|
return pulumi.get(self, "name")
|
142
186
|
|
143
187
|
@name.setter
|
@@ -147,6 +191,10 @@ class _ServiceLevelState:
|
|
147
191
|
@property
|
148
192
|
@pulumi.getter
|
149
193
|
def objective(self) -> Optional[pulumi.Input['ServiceLevelObjectiveArgs']]:
|
194
|
+
"""
|
195
|
+
The objective of the SLI, only one can be defined.
|
196
|
+
See Objective below for details.
|
197
|
+
"""
|
150
198
|
return pulumi.get(self, "objective")
|
151
199
|
|
152
200
|
@objective.setter
|
@@ -211,7 +259,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
211
259
|
name="Latency",
|
212
260
|
description="Proportion of requests that are served faster than a threshold.",
|
213
261
|
events=newrelic.ServiceLevelEventsArgs(
|
214
|
-
account_id=12345678,
|
262
|
+
account_id="12345678",
|
215
263
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
216
264
|
from_="Transaction",
|
217
265
|
where="appName = 'Example application' AND (transactionType='Web')",
|
@@ -245,7 +293,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
245
293
|
name="My synthethic monitor - Success",
|
246
294
|
description="Proportion of successful synthetic checks.",
|
247
295
|
events=newrelic.ServiceLevelEventsArgs(
|
248
|
-
account_id=12345678,
|
296
|
+
account_id="12345678",
|
249
297
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
250
298
|
from_="SyntheticCheck",
|
251
299
|
where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
|
@@ -292,7 +340,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
292
340
|
name="Duration distribution is under 7",
|
293
341
|
description="Monitor created to test concurrent request from terraform",
|
294
342
|
events=newrelic.ServiceLevelEventsArgs(
|
295
|
-
account_id=313870,
|
343
|
+
account_id="313870",
|
296
344
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
297
345
|
from_="Metric",
|
298
346
|
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
@@ -340,6 +388,13 @@ class ServiceLevel(pulumi.CustomResource):
|
|
340
388
|
|
341
389
|
:param str resource_name: The name of the resource.
|
342
390
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
391
|
+
:param pulumi.Input[str] description: The description of the SLI.
|
392
|
+
:param pulumi.Input[pulumi.InputType['ServiceLevelEventsArgs']] events: The events that define the NRDB data for the SLI/SLO calculations.
|
393
|
+
See Events below for details.
|
394
|
+
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
395
|
+
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
396
|
+
:param pulumi.Input[pulumi.InputType['ServiceLevelObjectiveArgs']] objective: The objective of the SLI, only one can be defined.
|
397
|
+
See Objective below for details.
|
343
398
|
"""
|
344
399
|
...
|
345
400
|
@overload
|
@@ -369,7 +424,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
369
424
|
name="Latency",
|
370
425
|
description="Proportion of requests that are served faster than a threshold.",
|
371
426
|
events=newrelic.ServiceLevelEventsArgs(
|
372
|
-
account_id=12345678,
|
427
|
+
account_id="12345678",
|
373
428
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
374
429
|
from_="Transaction",
|
375
430
|
where="appName = 'Example application' AND (transactionType='Web')",
|
@@ -403,7 +458,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
403
458
|
name="My synthethic monitor - Success",
|
404
459
|
description="Proportion of successful synthetic checks.",
|
405
460
|
events=newrelic.ServiceLevelEventsArgs(
|
406
|
-
account_id=12345678,
|
461
|
+
account_id="12345678",
|
407
462
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
408
463
|
from_="SyntheticCheck",
|
409
464
|
where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
|
@@ -450,7 +505,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
450
505
|
name="Duration distribution is under 7",
|
451
506
|
description="Monitor created to test concurrent request from terraform",
|
452
507
|
events=newrelic.ServiceLevelEventsArgs(
|
453
|
-
account_id=313870,
|
508
|
+
account_id="313870",
|
454
509
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
455
510
|
from_="Metric",
|
456
511
|
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
@@ -562,6 +617,13 @@ class ServiceLevel(pulumi.CustomResource):
|
|
562
617
|
:param str resource_name: The unique name of the resulting resource.
|
563
618
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
564
619
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
620
|
+
:param pulumi.Input[str] description: The description of the SLI.
|
621
|
+
:param pulumi.Input[pulumi.InputType['ServiceLevelEventsArgs']] events: The events that define the NRDB data for the SLI/SLO calculations.
|
622
|
+
See Events below for details.
|
623
|
+
:param pulumi.Input[str] guid: The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
624
|
+
:param pulumi.Input[str] name: A short name for the SLI that will help anyone understand what it is about.
|
625
|
+
:param pulumi.Input[pulumi.InputType['ServiceLevelObjectiveArgs']] objective: The objective of the SLI, only one can be defined.
|
626
|
+
See Objective below for details.
|
565
627
|
:param pulumi.Input[str] sli_guid: The unique entity identifier of the Service Level Indicator in New Relic.
|
566
628
|
:param pulumi.Input[str] sli_id: The unique entity identifier of the Service Level Indicator.
|
567
629
|
"""
|
@@ -581,26 +643,43 @@ class ServiceLevel(pulumi.CustomResource):
|
|
581
643
|
@property
|
582
644
|
@pulumi.getter
|
583
645
|
def description(self) -> pulumi.Output[Optional[str]]:
|
646
|
+
"""
|
647
|
+
The description of the SLI.
|
648
|
+
"""
|
584
649
|
return pulumi.get(self, "description")
|
585
650
|
|
586
651
|
@property
|
587
652
|
@pulumi.getter
|
588
653
|
def events(self) -> pulumi.Output['outputs.ServiceLevelEvents']:
|
654
|
+
"""
|
655
|
+
The events that define the NRDB data for the SLI/SLO calculations.
|
656
|
+
See Events below for details.
|
657
|
+
"""
|
589
658
|
return pulumi.get(self, "events")
|
590
659
|
|
591
660
|
@property
|
592
661
|
@pulumi.getter
|
593
662
|
def guid(self) -> pulumi.Output[str]:
|
663
|
+
"""
|
664
|
+
The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.
|
665
|
+
"""
|
594
666
|
return pulumi.get(self, "guid")
|
595
667
|
|
596
668
|
@property
|
597
669
|
@pulumi.getter
|
598
670
|
def name(self) -> pulumi.Output[str]:
|
671
|
+
"""
|
672
|
+
A short name for the SLI that will help anyone understand what it is about.
|
673
|
+
"""
|
599
674
|
return pulumi.get(self, "name")
|
600
675
|
|
601
676
|
@property
|
602
677
|
@pulumi.getter
|
603
678
|
def objective(self) -> pulumi.Output['outputs.ServiceLevelObjective']:
|
679
|
+
"""
|
680
|
+
The objective of the SLI, only one can be defined.
|
681
|
+
See Objective below for details.
|
682
|
+
"""
|
604
683
|
return pulumi.get(self, "objective")
|
605
684
|
|
606
685
|
@property
|
@@ -15,15 +15,19 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
15
15
|
class AlertConditionArgs:
|
16
16
|
def __init__(__self__, *,
|
17
17
|
monitor_id: pulumi.Input[str],
|
18
|
-
policy_id: pulumi.Input[
|
18
|
+
policy_id: pulumi.Input[str],
|
19
19
|
enabled: Optional[pulumi.Input[bool]] = None,
|
20
20
|
name: Optional[pulumi.Input[str]] = None,
|
21
21
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
22
22
|
"""
|
23
23
|
The set of arguments for constructing a AlertCondition resource.
|
24
|
-
:param pulumi.Input[str] monitor_id: The
|
25
|
-
:param pulumi.Input[
|
26
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true
|
24
|
+
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
25
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
26
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
27
|
+
|
28
|
+
```
|
29
|
+
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.
|
30
|
+
```
|
27
31
|
:param pulumi.Input[str] name: The title of this condition.
|
28
32
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
29
33
|
"""
|
@@ -40,7 +44,7 @@ class AlertConditionArgs:
|
|
40
44
|
@pulumi.getter(name="monitorId")
|
41
45
|
def monitor_id(self) -> pulumi.Input[str]:
|
42
46
|
"""
|
43
|
-
The
|
47
|
+
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
44
48
|
"""
|
45
49
|
return pulumi.get(self, "monitor_id")
|
46
50
|
|
@@ -50,21 +54,25 @@ class AlertConditionArgs:
|
|
50
54
|
|
51
55
|
@property
|
52
56
|
@pulumi.getter(name="policyId")
|
53
|
-
def policy_id(self) -> pulumi.Input[
|
57
|
+
def policy_id(self) -> pulumi.Input[str]:
|
54
58
|
"""
|
55
59
|
The ID of the policy where this condition should be used.
|
56
60
|
"""
|
57
61
|
return pulumi.get(self, "policy_id")
|
58
62
|
|
59
63
|
@policy_id.setter
|
60
|
-
def policy_id(self, value: pulumi.Input[
|
64
|
+
def policy_id(self, value: pulumi.Input[str]):
|
61
65
|
pulumi.set(self, "policy_id", value)
|
62
66
|
|
63
67
|
@property
|
64
68
|
@pulumi.getter
|
65
69
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
66
70
|
"""
|
67
|
-
Set whether to enable the alert condition. Defaults to true
|
71
|
+
Set whether to enable the alert condition. Defaults to `true`.
|
72
|
+
|
73
|
+
```
|
74
|
+
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.
|
75
|
+
```
|
68
76
|
"""
|
69
77
|
return pulumi.get(self, "enabled")
|
70
78
|
|
@@ -104,15 +112,19 @@ class _AlertConditionState:
|
|
104
112
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
105
113
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
106
114
|
name: Optional[pulumi.Input[str]] = None,
|
107
|
-
policy_id: Optional[pulumi.Input[
|
115
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
108
116
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
109
117
|
"""
|
110
118
|
Input properties used for looking up and filtering AlertCondition resources.
|
111
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true
|
119
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
120
|
+
|
121
|
+
```
|
122
|
+
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.
|
123
|
+
```
|
112
124
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
113
|
-
:param pulumi.Input[str] monitor_id: The
|
125
|
+
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
114
126
|
:param pulumi.Input[str] name: The title of this condition.
|
115
|
-
:param pulumi.Input[
|
127
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
116
128
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
117
129
|
"""
|
118
130
|
if enabled is not None:
|
@@ -132,7 +144,11 @@ class _AlertConditionState:
|
|
132
144
|
@pulumi.getter
|
133
145
|
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
134
146
|
"""
|
135
|
-
Set whether to enable the alert condition. Defaults to true
|
147
|
+
Set whether to enable the alert condition. Defaults to `true`.
|
148
|
+
|
149
|
+
```
|
150
|
+
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.
|
151
|
+
```
|
136
152
|
"""
|
137
153
|
return pulumi.get(self, "enabled")
|
138
154
|
|
@@ -156,7 +172,7 @@ class _AlertConditionState:
|
|
156
172
|
@pulumi.getter(name="monitorId")
|
157
173
|
def monitor_id(self) -> Optional[pulumi.Input[str]]:
|
158
174
|
"""
|
159
|
-
The
|
175
|
+
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
160
176
|
"""
|
161
177
|
return pulumi.get(self, "monitor_id")
|
162
178
|
|
@@ -178,14 +194,14 @@ class _AlertConditionState:
|
|
178
194
|
|
179
195
|
@property
|
180
196
|
@pulumi.getter(name="policyId")
|
181
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
197
|
+
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
182
198
|
"""
|
183
199
|
The ID of the policy where this condition should be used.
|
184
200
|
"""
|
185
201
|
return pulumi.get(self, "policy_id")
|
186
202
|
|
187
203
|
@policy_id.setter
|
188
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
204
|
+
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
189
205
|
pulumi.set(self, "policy_id", value)
|
190
206
|
|
191
207
|
@property
|
@@ -209,7 +225,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
209
225
|
enabled: Optional[pulumi.Input[bool]] = None,
|
210
226
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
211
227
|
name: Optional[pulumi.Input[str]] = None,
|
212
|
-
policy_id: Optional[pulumi.Input[
|
228
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
213
229
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
214
230
|
__props__=None):
|
215
231
|
"""
|
@@ -290,10 +306,14 @@ class AlertCondition(pulumi.CustomResource):
|
|
290
306
|
|
291
307
|
:param str resource_name: The name of the resource.
|
292
308
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
293
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true
|
294
|
-
|
309
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
310
|
+
|
311
|
+
```
|
312
|
+
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.
|
313
|
+
```
|
314
|
+
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
295
315
|
:param pulumi.Input[str] name: The title of this condition.
|
296
|
-
:param pulumi.Input[
|
316
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
297
317
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
298
318
|
"""
|
299
319
|
...
|
@@ -396,7 +416,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
396
416
|
enabled: Optional[pulumi.Input[bool]] = None,
|
397
417
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
398
418
|
name: Optional[pulumi.Input[str]] = None,
|
399
|
-
policy_id: Optional[pulumi.Input[
|
419
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
400
420
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
401
421
|
__props__=None):
|
402
422
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -431,7 +451,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
431
451
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
432
452
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
433
453
|
name: Optional[pulumi.Input[str]] = None,
|
434
|
-
policy_id: Optional[pulumi.Input[
|
454
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
435
455
|
runbook_url: Optional[pulumi.Input[str]] = None) -> 'AlertCondition':
|
436
456
|
"""
|
437
457
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
@@ -440,11 +460,15 @@ class AlertCondition(pulumi.CustomResource):
|
|
440
460
|
:param str resource_name: The unique name of the resulting resource.
|
441
461
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
442
462
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
443
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to true
|
463
|
+
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
464
|
+
|
465
|
+
```
|
466
|
+
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.
|
467
|
+
```
|
444
468
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
445
|
-
:param pulumi.Input[str] monitor_id: The
|
469
|
+
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
446
470
|
:param pulumi.Input[str] name: The title of this condition.
|
447
|
-
:param pulumi.Input[
|
471
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
448
472
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
449
473
|
"""
|
450
474
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -463,7 +487,11 @@ class AlertCondition(pulumi.CustomResource):
|
|
463
487
|
@pulumi.getter
|
464
488
|
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
465
489
|
"""
|
466
|
-
Set whether to enable the alert condition. Defaults to true
|
490
|
+
Set whether to enable the alert condition. Defaults to `true`.
|
491
|
+
|
492
|
+
```
|
493
|
+
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.
|
494
|
+
```
|
467
495
|
"""
|
468
496
|
return pulumi.get(self, "enabled")
|
469
497
|
|
@@ -479,7 +507,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
479
507
|
@pulumi.getter(name="monitorId")
|
480
508
|
def monitor_id(self) -> pulumi.Output[str]:
|
481
509
|
"""
|
482
|
-
The
|
510
|
+
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
483
511
|
"""
|
484
512
|
return pulumi.get(self, "monitor_id")
|
485
513
|
|
@@ -493,7 +521,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
493
521
|
|
494
522
|
@property
|
495
523
|
@pulumi.getter(name="policyId")
|
496
|
-
def policy_id(self) -> pulumi.Output[
|
524
|
+
def policy_id(self) -> pulumi.Output[str]:
|
497
525
|
"""
|
498
526
|
The ID of the policy where this condition should be used.
|
499
527
|
"""
|