pulumi-newrelic 5.49.0a1753337775__py3-none-any.whl → 5.49.0a1753510512__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +1 -1
- pulumi_newrelic/_inputs.py +3759 -3760
- pulumi_newrelic/account_management.py +35 -36
- pulumi_newrelic/alert_channel.py +55 -56
- pulumi_newrelic/alert_condition.py +217 -218
- pulumi_newrelic/alert_muting_rule.py +92 -93
- pulumi_newrelic/alert_policy.py +69 -70
- pulumi_newrelic/alert_policy_channel.py +52 -53
- pulumi_newrelic/api_access_key.py +112 -113
- pulumi_newrelic/browser_application.py +113 -114
- pulumi_newrelic/cloud/__init__.py +1 -1
- pulumi_newrelic/cloud/_inputs.py +2129 -2130
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +95 -96
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +69 -70
- pulumi_newrelic/cloud/aws_integrations.py +194 -195
- pulumi_newrelic/cloud/aws_link_account.py +69 -70
- pulumi_newrelic/cloud/azure_integrations.py +131 -132
- pulumi_newrelic/cloud/azure_link_account.py +103 -104
- pulumi_newrelic/cloud/gcp_integrations.py +113 -114
- pulumi_newrelic/cloud/gcp_link_account.py +52 -53
- pulumi_newrelic/cloud/outputs.py +1417 -1418
- pulumi_newrelic/config/__init__.py +1 -1
- pulumi_newrelic/config/__init__.pyi +1 -2
- pulumi_newrelic/config/vars.py +14 -15
- pulumi_newrelic/data_partition_rule.py +112 -113
- pulumi_newrelic/entity_tags.py +21 -22
- pulumi_newrelic/events_to_metrics_rule.py +95 -96
- pulumi_newrelic/get_account.py +21 -22
- pulumi_newrelic/get_alert_channel.py +20 -21
- pulumi_newrelic/get_alert_policy.py +25 -26
- pulumi_newrelic/get_application.py +13 -14
- pulumi_newrelic/get_authentication_domain.py +9 -10
- pulumi_newrelic/get_cloud_account.py +21 -22
- pulumi_newrelic/get_entity.py +52 -53
- pulumi_newrelic/get_group.py +17 -18
- pulumi_newrelic/get_key_transaction.py +25 -26
- pulumi_newrelic/get_notification_destination.py +29 -30
- pulumi_newrelic/get_obfuscation_expression.py +15 -16
- pulumi_newrelic/get_service_level_alert_helper.py +53 -54
- pulumi_newrelic/get_test_grok_pattern.py +22 -23
- pulumi_newrelic/get_user.py +21 -22
- pulumi_newrelic/group.py +52 -53
- pulumi_newrelic/infra_alert_condition.py +255 -256
- pulumi_newrelic/insights/__init__.py +1 -1
- pulumi_newrelic/insights/_inputs.py +32 -33
- pulumi_newrelic/insights/event.py +4 -5
- pulumi_newrelic/insights/outputs.py +22 -23
- pulumi_newrelic/key_transaction.py +104 -105
- pulumi_newrelic/log_parsing_rule.py +146 -147
- pulumi_newrelic/monitor_downtime.py +143 -144
- pulumi_newrelic/notification_channel.py +115 -116
- pulumi_newrelic/notification_destination.py +111 -112
- pulumi_newrelic/nrql_alert_condition.py +430 -431
- pulumi_newrelic/nrql_drop_rule.py +78 -79
- pulumi_newrelic/obfuscation_expression.py +69 -70
- pulumi_newrelic/obfuscation_rule.py +89 -90
- pulumi_newrelic/one_dashboard.py +93 -94
- pulumi_newrelic/one_dashboard_json.py +62 -63
- pulumi_newrelic/one_dashboard_raw.py +90 -91
- pulumi_newrelic/outputs.py +2646 -2647
- pulumi_newrelic/plugins/__init__.py +1 -1
- pulumi_newrelic/plugins/_inputs.py +158 -159
- pulumi_newrelic/plugins/application_settings.py +167 -168
- pulumi_newrelic/plugins/outputs.py +108 -109
- pulumi_newrelic/plugins/workload.py +131 -132
- pulumi_newrelic/provider.py +106 -107
- pulumi_newrelic/pulumi-plugin.json +1 -1
- pulumi_newrelic/service_level.py +76 -77
- pulumi_newrelic/synthetics/__init__.py +1 -1
- pulumi_newrelic/synthetics/_inputs.py +127 -128
- pulumi_newrelic/synthetics/alert_condition.py +95 -96
- pulumi_newrelic/synthetics/broken_links_monitor.py +197 -198
- pulumi_newrelic/synthetics/cert_check_monitor.py +205 -206
- pulumi_newrelic/synthetics/get_private_location.py +21 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +19 -20
- pulumi_newrelic/synthetics/monitor.py +378 -379
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +118 -119
- pulumi_newrelic/synthetics/outputs.py +85 -86
- pulumi_newrelic/synthetics/private_location.py +105 -106
- pulumi_newrelic/synthetics/script_monitor.py +302 -303
- pulumi_newrelic/synthetics/secure_credential.py +86 -87
- pulumi_newrelic/synthetics/step_monitor.py +220 -221
- pulumi_newrelic/user.py +69 -70
- pulumi_newrelic/workflow.py +139 -140
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.49.0a1753510512.dist-info/RECORD +90 -0
- pulumi_newrelic-5.49.0a1753337775.dist-info/RECORD +0 -90
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.49.0a1753337775.dist-info → pulumi_newrelic-5.49.0a1753510512.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -20,22 +19,22 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class AlertConditionArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
monitor_id: pulumi.Input[
|
|
24
|
-
policy_id: pulumi.Input[
|
|
25
|
-
enabled: Optional[pulumi.Input[
|
|
26
|
-
name: Optional[pulumi.Input[
|
|
27
|
-
runbook_url: Optional[pulumi.Input[
|
|
22
|
+
monitor_id: pulumi.Input[_builtins.str],
|
|
23
|
+
policy_id: pulumi.Input[_builtins.str],
|
|
24
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None):
|
|
28
27
|
"""
|
|
29
28
|
The set of arguments for constructing a AlertCondition resource.
|
|
30
|
-
:param pulumi.Input[
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[
|
|
29
|
+
:param pulumi.Input[_builtins.str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
30
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
31
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
33
32
|
|
|
34
33
|
```
|
|
35
34
|
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.
|
|
36
35
|
```
|
|
37
|
-
:param pulumi.Input[
|
|
38
|
-
:param pulumi.Input[
|
|
36
|
+
:param pulumi.Input[_builtins.str] name: The title of this condition.
|
|
37
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
39
38
|
"""
|
|
40
39
|
pulumi.set(__self__, "monitor_id", monitor_id)
|
|
41
40
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
@@ -46,33 +45,33 @@ class AlertConditionArgs:
|
|
|
46
45
|
if runbook_url is not None:
|
|
47
46
|
pulumi.set(__self__, "runbook_url", runbook_url)
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter(name="monitorId")
|
|
51
|
-
def monitor_id(self) -> pulumi.Input[
|
|
50
|
+
def monitor_id(self) -> pulumi.Input[_builtins.str]:
|
|
52
51
|
"""
|
|
53
52
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
54
53
|
"""
|
|
55
54
|
return pulumi.get(self, "monitor_id")
|
|
56
55
|
|
|
57
56
|
@monitor_id.setter
|
|
58
|
-
def monitor_id(self, value: pulumi.Input[
|
|
57
|
+
def monitor_id(self, value: pulumi.Input[_builtins.str]):
|
|
59
58
|
pulumi.set(self, "monitor_id", value)
|
|
60
59
|
|
|
61
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
62
61
|
@pulumi.getter(name="policyId")
|
|
63
|
-
def policy_id(self) -> pulumi.Input[
|
|
62
|
+
def policy_id(self) -> pulumi.Input[_builtins.str]:
|
|
64
63
|
"""
|
|
65
64
|
The ID of the policy where this condition should be used.
|
|
66
65
|
"""
|
|
67
66
|
return pulumi.get(self, "policy_id")
|
|
68
67
|
|
|
69
68
|
@policy_id.setter
|
|
70
|
-
def policy_id(self, value: pulumi.Input[
|
|
69
|
+
def policy_id(self, value: pulumi.Input[_builtins.str]):
|
|
71
70
|
pulumi.set(self, "policy_id", value)
|
|
72
71
|
|
|
73
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
74
73
|
@pulumi.getter
|
|
75
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
74
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
76
75
|
"""
|
|
77
76
|
Set whether to enable the alert condition. Defaults to `true`.
|
|
78
77
|
|
|
@@ -83,55 +82,55 @@ class AlertConditionArgs:
|
|
|
83
82
|
return pulumi.get(self, "enabled")
|
|
84
83
|
|
|
85
84
|
@enabled.setter
|
|
86
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
85
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
87
86
|
pulumi.set(self, "enabled", value)
|
|
88
87
|
|
|
89
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
90
89
|
@pulumi.getter
|
|
91
|
-
def name(self) -> Optional[pulumi.Input[
|
|
90
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
92
91
|
"""
|
|
93
92
|
The title of this condition.
|
|
94
93
|
"""
|
|
95
94
|
return pulumi.get(self, "name")
|
|
96
95
|
|
|
97
96
|
@name.setter
|
|
98
|
-
def name(self, value: Optional[pulumi.Input[
|
|
97
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
99
98
|
pulumi.set(self, "name", value)
|
|
100
99
|
|
|
101
|
-
@property
|
|
100
|
+
@_builtins.property
|
|
102
101
|
@pulumi.getter(name="runbookUrl")
|
|
103
|
-
def runbook_url(self) -> Optional[pulumi.Input[
|
|
102
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
104
103
|
"""
|
|
105
104
|
Runbook URL to display in notifications.
|
|
106
105
|
"""
|
|
107
106
|
return pulumi.get(self, "runbook_url")
|
|
108
107
|
|
|
109
108
|
@runbook_url.setter
|
|
110
|
-
def runbook_url(self, value: Optional[pulumi.Input[
|
|
109
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
111
110
|
pulumi.set(self, "runbook_url", value)
|
|
112
111
|
|
|
113
112
|
|
|
114
113
|
@pulumi.input_type
|
|
115
114
|
class _AlertConditionState:
|
|
116
115
|
def __init__(__self__, *,
|
|
117
|
-
enabled: Optional[pulumi.Input[
|
|
118
|
-
entity_guid: Optional[pulumi.Input[
|
|
119
|
-
monitor_id: Optional[pulumi.Input[
|
|
120
|
-
name: Optional[pulumi.Input[
|
|
121
|
-
policy_id: Optional[pulumi.Input[
|
|
122
|
-
runbook_url: Optional[pulumi.Input[
|
|
116
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
117
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
118
|
+
monitor_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
119
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
120
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
121
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None):
|
|
123
122
|
"""
|
|
124
123
|
Input properties used for looking up and filtering AlertCondition resources.
|
|
125
|
-
:param pulumi.Input[
|
|
124
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
126
125
|
|
|
127
126
|
```
|
|
128
127
|
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.
|
|
129
128
|
```
|
|
130
|
-
:param pulumi.Input[
|
|
131
|
-
:param pulumi.Input[
|
|
132
|
-
:param pulumi.Input[
|
|
133
|
-
:param pulumi.Input[
|
|
134
|
-
:param pulumi.Input[
|
|
129
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
130
|
+
:param pulumi.Input[_builtins.str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
131
|
+
:param pulumi.Input[_builtins.str] name: The title of this condition.
|
|
132
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
133
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
135
134
|
"""
|
|
136
135
|
if enabled is not None:
|
|
137
136
|
pulumi.set(__self__, "enabled", enabled)
|
|
@@ -146,9 +145,9 @@ class _AlertConditionState:
|
|
|
146
145
|
if runbook_url is not None:
|
|
147
146
|
pulumi.set(__self__, "runbook_url", runbook_url)
|
|
148
147
|
|
|
149
|
-
@property
|
|
148
|
+
@_builtins.property
|
|
150
149
|
@pulumi.getter
|
|
151
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
150
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
152
151
|
"""
|
|
153
152
|
Set whether to enable the alert condition. Defaults to `true`.
|
|
154
153
|
|
|
@@ -159,67 +158,67 @@ class _AlertConditionState:
|
|
|
159
158
|
return pulumi.get(self, "enabled")
|
|
160
159
|
|
|
161
160
|
@enabled.setter
|
|
162
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
161
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
163
162
|
pulumi.set(self, "enabled", value)
|
|
164
163
|
|
|
165
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
166
165
|
@pulumi.getter(name="entityGuid")
|
|
167
|
-
def entity_guid(self) -> Optional[pulumi.Input[
|
|
166
|
+
def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
168
167
|
"""
|
|
169
168
|
The unique entity identifier of the condition in New Relic.
|
|
170
169
|
"""
|
|
171
170
|
return pulumi.get(self, "entity_guid")
|
|
172
171
|
|
|
173
172
|
@entity_guid.setter
|
|
174
|
-
def entity_guid(self, value: Optional[pulumi.Input[
|
|
173
|
+
def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
175
174
|
pulumi.set(self, "entity_guid", value)
|
|
176
175
|
|
|
177
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
178
177
|
@pulumi.getter(name="monitorId")
|
|
179
|
-
def monitor_id(self) -> Optional[pulumi.Input[
|
|
178
|
+
def monitor_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
180
179
|
"""
|
|
181
180
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
182
181
|
"""
|
|
183
182
|
return pulumi.get(self, "monitor_id")
|
|
184
183
|
|
|
185
184
|
@monitor_id.setter
|
|
186
|
-
def monitor_id(self, value: Optional[pulumi.Input[
|
|
185
|
+
def monitor_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
187
186
|
pulumi.set(self, "monitor_id", value)
|
|
188
187
|
|
|
189
|
-
@property
|
|
188
|
+
@_builtins.property
|
|
190
189
|
@pulumi.getter
|
|
191
|
-
def name(self) -> Optional[pulumi.Input[
|
|
190
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
192
191
|
"""
|
|
193
192
|
The title of this condition.
|
|
194
193
|
"""
|
|
195
194
|
return pulumi.get(self, "name")
|
|
196
195
|
|
|
197
196
|
@name.setter
|
|
198
|
-
def name(self, value: Optional[pulumi.Input[
|
|
197
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
199
198
|
pulumi.set(self, "name", value)
|
|
200
199
|
|
|
201
|
-
@property
|
|
200
|
+
@_builtins.property
|
|
202
201
|
@pulumi.getter(name="policyId")
|
|
203
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
|
202
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
204
203
|
"""
|
|
205
204
|
The ID of the policy where this condition should be used.
|
|
206
205
|
"""
|
|
207
206
|
return pulumi.get(self, "policy_id")
|
|
208
207
|
|
|
209
208
|
@policy_id.setter
|
|
210
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
|
209
|
+
def policy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
211
210
|
pulumi.set(self, "policy_id", value)
|
|
212
211
|
|
|
213
|
-
@property
|
|
212
|
+
@_builtins.property
|
|
214
213
|
@pulumi.getter(name="runbookUrl")
|
|
215
|
-
def runbook_url(self) -> Optional[pulumi.Input[
|
|
214
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
216
215
|
"""
|
|
217
216
|
Runbook URL to display in notifications.
|
|
218
217
|
"""
|
|
219
218
|
return pulumi.get(self, "runbook_url")
|
|
220
219
|
|
|
221
220
|
@runbook_url.setter
|
|
222
|
-
def runbook_url(self, value: Optional[pulumi.Input[
|
|
221
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
223
222
|
pulumi.set(self, "runbook_url", value)
|
|
224
223
|
|
|
225
224
|
|
|
@@ -229,11 +228,11 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
229
228
|
def __init__(__self__,
|
|
230
229
|
resource_name: str,
|
|
231
230
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
232
|
-
enabled: Optional[pulumi.Input[
|
|
233
|
-
monitor_id: Optional[pulumi.Input[
|
|
234
|
-
name: Optional[pulumi.Input[
|
|
235
|
-
policy_id: Optional[pulumi.Input[
|
|
236
|
-
runbook_url: Optional[pulumi.Input[
|
|
231
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
232
|
+
monitor_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
233
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
234
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
235
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
237
236
|
__props__=None):
|
|
238
237
|
"""
|
|
239
238
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
|
@@ -313,15 +312,15 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
313
312
|
|
|
314
313
|
:param str resource_name: The name of the resource.
|
|
315
314
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
316
|
-
:param pulumi.Input[
|
|
315
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
317
316
|
|
|
318
317
|
```
|
|
319
318
|
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.
|
|
320
319
|
```
|
|
321
|
-
:param pulumi.Input[
|
|
322
|
-
:param pulumi.Input[
|
|
323
|
-
:param pulumi.Input[
|
|
324
|
-
:param pulumi.Input[
|
|
320
|
+
:param pulumi.Input[_builtins.str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
321
|
+
:param pulumi.Input[_builtins.str] name: The title of this condition.
|
|
322
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
323
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
325
324
|
"""
|
|
326
325
|
...
|
|
327
326
|
@overload
|
|
@@ -420,11 +419,11 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
420
419
|
def _internal_init(__self__,
|
|
421
420
|
resource_name: str,
|
|
422
421
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
423
|
-
enabled: Optional[pulumi.Input[
|
|
424
|
-
monitor_id: Optional[pulumi.Input[
|
|
425
|
-
name: Optional[pulumi.Input[
|
|
426
|
-
policy_id: Optional[pulumi.Input[
|
|
427
|
-
runbook_url: Optional[pulumi.Input[
|
|
422
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
423
|
+
monitor_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
424
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
425
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
426
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
427
|
__props__=None):
|
|
429
428
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
430
429
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -454,12 +453,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
454
453
|
def get(resource_name: str,
|
|
455
454
|
id: pulumi.Input[str],
|
|
456
455
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
457
|
-
enabled: Optional[pulumi.Input[
|
|
458
|
-
entity_guid: Optional[pulumi.Input[
|
|
459
|
-
monitor_id: Optional[pulumi.Input[
|
|
460
|
-
name: Optional[pulumi.Input[
|
|
461
|
-
policy_id: Optional[pulumi.Input[
|
|
462
|
-
runbook_url: Optional[pulumi.Input[
|
|
456
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
457
|
+
entity_guid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
monitor_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
459
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
460
|
+
policy_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
461
|
+
runbook_url: Optional[pulumi.Input[_builtins.str]] = None) -> 'AlertCondition':
|
|
463
462
|
"""
|
|
464
463
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
|
465
464
|
properties used to qualify the lookup.
|
|
@@ -467,16 +466,16 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
467
466
|
:param str resource_name: The unique name of the resulting resource.
|
|
468
467
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
469
468
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
470
|
-
:param pulumi.Input[
|
|
469
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
471
470
|
|
|
472
471
|
```
|
|
473
472
|
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.
|
|
474
473
|
```
|
|
475
|
-
:param pulumi.Input[
|
|
476
|
-
:param pulumi.Input[
|
|
477
|
-
:param pulumi.Input[
|
|
478
|
-
:param pulumi.Input[
|
|
479
|
-
:param pulumi.Input[
|
|
474
|
+
:param pulumi.Input[_builtins.str] entity_guid: The unique entity identifier of the condition in New Relic.
|
|
475
|
+
:param pulumi.Input[_builtins.str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
476
|
+
:param pulumi.Input[_builtins.str] name: The title of this condition.
|
|
477
|
+
:param pulumi.Input[_builtins.str] policy_id: The ID of the policy where this condition should be used.
|
|
478
|
+
:param pulumi.Input[_builtins.str] runbook_url: Runbook URL to display in notifications.
|
|
480
479
|
"""
|
|
481
480
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
482
481
|
|
|
@@ -490,9 +489,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
490
489
|
__props__.__dict__["runbook_url"] = runbook_url
|
|
491
490
|
return AlertCondition(resource_name, opts=opts, __props__=__props__)
|
|
492
491
|
|
|
493
|
-
@property
|
|
492
|
+
@_builtins.property
|
|
494
493
|
@pulumi.getter
|
|
495
|
-
def enabled(self) -> pulumi.Output[Optional[
|
|
494
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
496
495
|
"""
|
|
497
496
|
Set whether to enable the alert condition. Defaults to `true`.
|
|
498
497
|
|
|
@@ -502,41 +501,41 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
502
501
|
"""
|
|
503
502
|
return pulumi.get(self, "enabled")
|
|
504
503
|
|
|
505
|
-
@property
|
|
504
|
+
@_builtins.property
|
|
506
505
|
@pulumi.getter(name="entityGuid")
|
|
507
|
-
def entity_guid(self) -> pulumi.Output[
|
|
506
|
+
def entity_guid(self) -> pulumi.Output[_builtins.str]:
|
|
508
507
|
"""
|
|
509
508
|
The unique entity identifier of the condition in New Relic.
|
|
510
509
|
"""
|
|
511
510
|
return pulumi.get(self, "entity_guid")
|
|
512
511
|
|
|
513
|
-
@property
|
|
512
|
+
@_builtins.property
|
|
514
513
|
@pulumi.getter(name="monitorId")
|
|
515
|
-
def monitor_id(self) -> pulumi.Output[
|
|
514
|
+
def monitor_id(self) -> pulumi.Output[_builtins.str]:
|
|
516
515
|
"""
|
|
517
516
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
518
517
|
"""
|
|
519
518
|
return pulumi.get(self, "monitor_id")
|
|
520
519
|
|
|
521
|
-
@property
|
|
520
|
+
@_builtins.property
|
|
522
521
|
@pulumi.getter
|
|
523
|
-
def name(self) -> pulumi.Output[
|
|
522
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
524
523
|
"""
|
|
525
524
|
The title of this condition.
|
|
526
525
|
"""
|
|
527
526
|
return pulumi.get(self, "name")
|
|
528
527
|
|
|
529
|
-
@property
|
|
528
|
+
@_builtins.property
|
|
530
529
|
@pulumi.getter(name="policyId")
|
|
531
|
-
def policy_id(self) -> pulumi.Output[
|
|
530
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
532
531
|
"""
|
|
533
532
|
The ID of the policy where this condition should be used.
|
|
534
533
|
"""
|
|
535
534
|
return pulumi.get(self, "policy_id")
|
|
536
535
|
|
|
537
|
-
@property
|
|
536
|
+
@_builtins.property
|
|
538
537
|
@pulumi.getter(name="runbookUrl")
|
|
539
|
-
def runbook_url(self) -> pulumi.Output[Optional[
|
|
538
|
+
def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
540
539
|
"""
|
|
541
540
|
Runbook URL to display in notifications.
|
|
542
541
|
"""
|