pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +7153 -461
- pulumi_newrelic/_utilities.py +41 -5
- pulumi_newrelic/account_management.py +13 -4
- pulumi_newrelic/alert_channel.py +122 -101
- pulumi_newrelic/alert_condition.py +120 -109
- pulumi_newrelic/alert_muting_rule.py +130 -74
- pulumi_newrelic/alert_policy.py +88 -67
- pulumi_newrelic/alert_policy_channel.py +81 -68
- pulumi_newrelic/api_access_key.py +49 -52
- pulumi_newrelic/browser_application.py +79 -76
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
- pulumi_newrelic/cloud/aws_integrations.py +300 -1324
- pulumi_newrelic/cloud/aws_link_account.py +25 -18
- pulumi_newrelic/cloud/azure_integrations.py +523 -481
- pulumi_newrelic/cloud/azure_link_account.py +36 -29
- pulumi_newrelic/cloud/gcp_integrations.py +343 -320
- pulumi_newrelic/cloud/gcp_link_account.py +25 -18
- pulumi_newrelic/cloud/outputs.py +327 -1072
- pulumi_newrelic/config/__init__.pyi +6 -1
- pulumi_newrelic/config/vars.py +7 -2
- pulumi_newrelic/data_partition_rule.py +23 -16
- pulumi_newrelic/entity_tags.py +36 -31
- pulumi_newrelic/events_to_metrics_rule.py +27 -20
- pulumi_newrelic/get_account.py +24 -12
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -27
- pulumi_newrelic/get_authentication_domain.py +17 -9
- pulumi_newrelic/get_cloud_account.py +26 -14
- pulumi_newrelic/get_entity.py +90 -85
- pulumi_newrelic/get_group.py +58 -9
- pulumi_newrelic/get_key_transaction.py +109 -30
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -24
- pulumi_newrelic/get_service_level_alert_helper.py +135 -105
- pulumi_newrelic/get_test_grok_pattern.py +29 -14
- pulumi_newrelic/get_user.py +17 -5
- pulumi_newrelic/group.py +5 -132
- pulumi_newrelic/infra_alert_condition.py +157 -140
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +50 -43
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +29 -18
- pulumi_newrelic/monitor_downtime.py +215 -203
- pulumi_newrelic/notification_channel.py +387 -326
- pulumi_newrelic/notification_destination.py +248 -118
- pulumi_newrelic/nrql_alert_condition.py +353 -246
- pulumi_newrelic/nrql_drop_rule.py +57 -30
- pulumi_newrelic/obfuscation_expression.py +25 -18
- pulumi_newrelic/obfuscation_rule.py +40 -31
- pulumi_newrelic/one_dashboard.py +31 -26
- pulumi_newrelic/one_dashboard_json.py +21 -16
- pulumi_newrelic/one_dashboard_raw.py +112 -101
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +29 -20
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +285 -54
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +193 -180
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +91 -78
- pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
- pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
- pulumi_newrelic/synthetics/get_private_location.py +34 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
- pulumi_newrelic/synthetics/monitor.py +352 -179
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +27 -18
- pulumi_newrelic/synthetics/script_monitor.py +321 -168
- pulumi_newrelic/synthetics/secure_credential.py +25 -20
- pulumi_newrelic/synthetics/step_monitor.py +409 -98
- pulumi_newrelic/user.py +13 -6
- pulumi_newrelic/workflow.py +215 -184
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,25 +4,56 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from .. import _utilities
|
11
16
|
|
12
17
|
__all__ = [
|
13
18
|
'BrokenLinksMonitorTagArgs',
|
19
|
+
'BrokenLinksMonitorTagArgsDict',
|
14
20
|
'CertCheckMonitorTagArgs',
|
21
|
+
'CertCheckMonitorTagArgsDict',
|
15
22
|
'MonitorCustomHeaderArgs',
|
23
|
+
'MonitorCustomHeaderArgsDict',
|
16
24
|
'MonitorTagArgs',
|
25
|
+
'MonitorTagArgsDict',
|
17
26
|
'MultiLocationAlertConditionCriticalArgs',
|
27
|
+
'MultiLocationAlertConditionCriticalArgsDict',
|
18
28
|
'MultiLocationAlertConditionWarningArgs',
|
29
|
+
'MultiLocationAlertConditionWarningArgsDict',
|
19
30
|
'ScriptMonitorLocationPrivateArgs',
|
31
|
+
'ScriptMonitorLocationPrivateArgsDict',
|
20
32
|
'ScriptMonitorTagArgs',
|
33
|
+
'ScriptMonitorTagArgsDict',
|
21
34
|
'StepMonitorLocationPrivateArgs',
|
35
|
+
'StepMonitorLocationPrivateArgsDict',
|
22
36
|
'StepMonitorStepArgs',
|
37
|
+
'StepMonitorStepArgsDict',
|
23
38
|
'StepMonitorTagArgs',
|
39
|
+
'StepMonitorTagArgsDict',
|
24
40
|
]
|
25
41
|
|
42
|
+
MYPY = False
|
43
|
+
|
44
|
+
if not MYPY:
|
45
|
+
class BrokenLinksMonitorTagArgsDict(TypedDict):
|
46
|
+
key: pulumi.Input[str]
|
47
|
+
"""
|
48
|
+
Name of the tag key.
|
49
|
+
"""
|
50
|
+
values: pulumi.Input[Sequence[pulumi.Input[str]]]
|
51
|
+
"""
|
52
|
+
Values associated with the tag key.
|
53
|
+
"""
|
54
|
+
elif False:
|
55
|
+
BrokenLinksMonitorTagArgsDict: TypeAlias = Mapping[str, Any]
|
56
|
+
|
26
57
|
@pulumi.input_type
|
27
58
|
class BrokenLinksMonitorTagArgs:
|
28
59
|
def __init__(__self__, *,
|
@@ -60,6 +91,19 @@ class BrokenLinksMonitorTagArgs:
|
|
60
91
|
pulumi.set(self, "values", value)
|
61
92
|
|
62
93
|
|
94
|
+
if not MYPY:
|
95
|
+
class CertCheckMonitorTagArgsDict(TypedDict):
|
96
|
+
key: pulumi.Input[str]
|
97
|
+
"""
|
98
|
+
Name of the tag key.
|
99
|
+
"""
|
100
|
+
values: pulumi.Input[Sequence[pulumi.Input[str]]]
|
101
|
+
"""
|
102
|
+
Values associated with the tag key.
|
103
|
+
"""
|
104
|
+
elif False:
|
105
|
+
CertCheckMonitorTagArgsDict: TypeAlias = Mapping[str, Any]
|
106
|
+
|
63
107
|
@pulumi.input_type
|
64
108
|
class CertCheckMonitorTagArgs:
|
65
109
|
def __init__(__self__, *,
|
@@ -97,6 +141,19 @@ class CertCheckMonitorTagArgs:
|
|
97
141
|
pulumi.set(self, "values", value)
|
98
142
|
|
99
143
|
|
144
|
+
if not MYPY:
|
145
|
+
class MonitorCustomHeaderArgsDict(TypedDict):
|
146
|
+
name: NotRequired[pulumi.Input[str]]
|
147
|
+
"""
|
148
|
+
Header name.
|
149
|
+
"""
|
150
|
+
value: NotRequired[pulumi.Input[str]]
|
151
|
+
"""
|
152
|
+
Header Value.
|
153
|
+
"""
|
154
|
+
elif False:
|
155
|
+
MonitorCustomHeaderArgsDict: TypeAlias = Mapping[str, Any]
|
156
|
+
|
100
157
|
@pulumi.input_type
|
101
158
|
class MonitorCustomHeaderArgs:
|
102
159
|
def __init__(__self__, *,
|
@@ -136,6 +193,19 @@ class MonitorCustomHeaderArgs:
|
|
136
193
|
pulumi.set(self, "value", value)
|
137
194
|
|
138
195
|
|
196
|
+
if not MYPY:
|
197
|
+
class MonitorTagArgsDict(TypedDict):
|
198
|
+
key: pulumi.Input[str]
|
199
|
+
"""
|
200
|
+
Name of the tag key.
|
201
|
+
"""
|
202
|
+
values: pulumi.Input[Sequence[pulumi.Input[str]]]
|
203
|
+
"""
|
204
|
+
Values associated with the tag key.
|
205
|
+
"""
|
206
|
+
elif False:
|
207
|
+
MonitorTagArgsDict: TypeAlias = Mapping[str, Any]
|
208
|
+
|
139
209
|
@pulumi.input_type
|
140
210
|
class MonitorTagArgs:
|
141
211
|
def __init__(__self__, *,
|
@@ -173,6 +243,15 @@ class MonitorTagArgs:
|
|
173
243
|
pulumi.set(self, "values", value)
|
174
244
|
|
175
245
|
|
246
|
+
if not MYPY:
|
247
|
+
class MultiLocationAlertConditionCriticalArgsDict(TypedDict):
|
248
|
+
threshold: pulumi.Input[int]
|
249
|
+
"""
|
250
|
+
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
|
251
|
+
"""
|
252
|
+
elif False:
|
253
|
+
MultiLocationAlertConditionCriticalArgsDict: TypeAlias = Mapping[str, Any]
|
254
|
+
|
176
255
|
@pulumi.input_type
|
177
256
|
class MultiLocationAlertConditionCriticalArgs:
|
178
257
|
def __init__(__self__, *,
|
@@ -195,6 +274,15 @@ class MultiLocationAlertConditionCriticalArgs:
|
|
195
274
|
pulumi.set(self, "threshold", value)
|
196
275
|
|
197
276
|
|
277
|
+
if not MYPY:
|
278
|
+
class MultiLocationAlertConditionWarningArgsDict(TypedDict):
|
279
|
+
threshold: pulumi.Input[int]
|
280
|
+
"""
|
281
|
+
The minimum number of monitor locations that must be concurrently failing before an incident is opened.
|
282
|
+
"""
|
283
|
+
elif False:
|
284
|
+
MultiLocationAlertConditionWarningArgsDict: TypeAlias = Mapping[str, Any]
|
285
|
+
|
198
286
|
@pulumi.input_type
|
199
287
|
class MultiLocationAlertConditionWarningArgs:
|
200
288
|
def __init__(__self__, *,
|
@@ -217,6 +305,19 @@ class MultiLocationAlertConditionWarningArgs:
|
|
217
305
|
pulumi.set(self, "threshold", value)
|
218
306
|
|
219
307
|
|
308
|
+
if not MYPY:
|
309
|
+
class ScriptMonitorLocationPrivateArgsDict(TypedDict):
|
310
|
+
guid: pulumi.Input[str]
|
311
|
+
"""
|
312
|
+
The unique identifier for the Synthetics private location in New Relic.
|
313
|
+
"""
|
314
|
+
vse_password: NotRequired[pulumi.Input[str]]
|
315
|
+
"""
|
316
|
+
The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
|
317
|
+
"""
|
318
|
+
elif False:
|
319
|
+
ScriptMonitorLocationPrivateArgsDict: TypeAlias = Mapping[str, Any]
|
320
|
+
|
220
321
|
@pulumi.input_type
|
221
322
|
class ScriptMonitorLocationPrivateArgs:
|
222
323
|
def __init__(__self__, *,
|
@@ -255,6 +356,19 @@ class ScriptMonitorLocationPrivateArgs:
|
|
255
356
|
pulumi.set(self, "vse_password", value)
|
256
357
|
|
257
358
|
|
359
|
+
if not MYPY:
|
360
|
+
class ScriptMonitorTagArgsDict(TypedDict):
|
361
|
+
key: pulumi.Input[str]
|
362
|
+
"""
|
363
|
+
Name of the tag key.
|
364
|
+
"""
|
365
|
+
values: pulumi.Input[Sequence[pulumi.Input[str]]]
|
366
|
+
"""
|
367
|
+
Values associated with the tag key.
|
368
|
+
"""
|
369
|
+
elif False:
|
370
|
+
ScriptMonitorTagArgsDict: TypeAlias = Mapping[str, Any]
|
371
|
+
|
258
372
|
@pulumi.input_type
|
259
373
|
class ScriptMonitorTagArgs:
|
260
374
|
def __init__(__self__, *,
|
@@ -292,6 +406,19 @@ class ScriptMonitorTagArgs:
|
|
292
406
|
pulumi.set(self, "values", value)
|
293
407
|
|
294
408
|
|
409
|
+
if not MYPY:
|
410
|
+
class StepMonitorLocationPrivateArgsDict(TypedDict):
|
411
|
+
guid: pulumi.Input[str]
|
412
|
+
"""
|
413
|
+
The unique identifier for the Synthetics private location in New Relic.
|
414
|
+
"""
|
415
|
+
vse_password: NotRequired[pulumi.Input[str]]
|
416
|
+
"""
|
417
|
+
The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location.
|
418
|
+
"""
|
419
|
+
elif False:
|
420
|
+
StepMonitorLocationPrivateArgsDict: TypeAlias = Mapping[str, Any]
|
421
|
+
|
295
422
|
@pulumi.input_type
|
296
423
|
class StepMonitorLocationPrivateArgs:
|
297
424
|
def __init__(__self__, *,
|
@@ -330,6 +457,23 @@ class StepMonitorLocationPrivateArgs:
|
|
330
457
|
pulumi.set(self, "vse_password", value)
|
331
458
|
|
332
459
|
|
460
|
+
if not MYPY:
|
461
|
+
class StepMonitorStepArgsDict(TypedDict):
|
462
|
+
ordinal: pulumi.Input[int]
|
463
|
+
"""
|
464
|
+
The position of the step within the script ranging from 0-100.
|
465
|
+
"""
|
466
|
+
type: pulumi.Input[str]
|
467
|
+
"""
|
468
|
+
Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
|
469
|
+
"""
|
470
|
+
values: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
471
|
+
"""
|
472
|
+
The metadata values related to the step.
|
473
|
+
"""
|
474
|
+
elif False:
|
475
|
+
StepMonitorStepArgsDict: TypeAlias = Mapping[str, Any]
|
476
|
+
|
333
477
|
@pulumi.input_type
|
334
478
|
class StepMonitorStepArgs:
|
335
479
|
def __init__(__self__, *,
|
@@ -338,7 +482,7 @@ class StepMonitorStepArgs:
|
|
338
482
|
values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
339
483
|
"""
|
340
484
|
:param pulumi.Input[int] ordinal: The position of the step within the script ranging from 0-100.
|
341
|
-
:param pulumi.Input[str] type: Name of the tag key. Valid values are ASSERT_ELEMENT
|
485
|
+
:param pulumi.Input[str] type: Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
|
342
486
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: The metadata values related to the step.
|
343
487
|
"""
|
344
488
|
pulumi.set(__self__, "ordinal", ordinal)
|
@@ -362,7 +506,7 @@ class StepMonitorStepArgs:
|
|
362
506
|
@pulumi.getter
|
363
507
|
def type(self) -> pulumi.Input[str]:
|
364
508
|
"""
|
365
|
-
Name of the tag key. Valid values are ASSERT_ELEMENT
|
509
|
+
Name of the tag key. Valid values are `ASSERT_ELEMENT`, `ASSERT_MODAL`, `ASSERT_TEXT`, `ASSERT_TITLE`, `CLICK_ELEMENT`, `DISMISS_MODAL`, `DOUBLE_CLICK_ELEMENT`, `HOVER_ELEMENT`, `NAVIGATE`, `SECURE_TEXT_ENTRY`, `SELECT_ELEMENT`, `TEXT_ENTRY`.
|
366
510
|
"""
|
367
511
|
return pulumi.get(self, "type")
|
368
512
|
|
@@ -383,6 +527,19 @@ class StepMonitorStepArgs:
|
|
383
527
|
pulumi.set(self, "values", value)
|
384
528
|
|
385
529
|
|
530
|
+
if not MYPY:
|
531
|
+
class StepMonitorTagArgsDict(TypedDict):
|
532
|
+
key: pulumi.Input[str]
|
533
|
+
"""
|
534
|
+
Name of the tag key.
|
535
|
+
"""
|
536
|
+
values: pulumi.Input[Sequence[pulumi.Input[str]]]
|
537
|
+
"""
|
538
|
+
Values associated with the tag key.
|
539
|
+
"""
|
540
|
+
elif False:
|
541
|
+
StepMonitorTagArgsDict: TypeAlias = Mapping[str, Any]
|
542
|
+
|
386
543
|
@pulumi.input_type
|
387
544
|
class StepMonitorTagArgs:
|
388
545
|
def __init__(__self__, *,
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from .. import _utilities
|
11
16
|
|
12
17
|
__all__ = ['AlertConditionArgs', 'AlertCondition']
|
@@ -15,18 +20,18 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
15
20
|
class AlertConditionArgs:
|
16
21
|
def __init__(__self__, *,
|
17
22
|
monitor_id: pulumi.Input[str],
|
18
|
-
policy_id: pulumi.Input[
|
23
|
+
policy_id: pulumi.Input[str],
|
19
24
|
enabled: Optional[pulumi.Input[bool]] = None,
|
20
25
|
name: Optional[pulumi.Input[str]] = None,
|
21
26
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
22
27
|
"""
|
23
28
|
The set of arguments for constructing a AlertCondition resource.
|
24
29
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
25
|
-
:param pulumi.Input[
|
30
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
26
31
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
27
32
|
|
28
|
-
```
|
29
|
-
|
33
|
+
```
|
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.
|
30
35
|
```
|
31
36
|
:param pulumi.Input[str] name: The title of this condition.
|
32
37
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
@@ -54,14 +59,14 @@ class AlertConditionArgs:
|
|
54
59
|
|
55
60
|
@property
|
56
61
|
@pulumi.getter(name="policyId")
|
57
|
-
def policy_id(self) -> pulumi.Input[
|
62
|
+
def policy_id(self) -> pulumi.Input[str]:
|
58
63
|
"""
|
59
64
|
The ID of the policy where this condition should be used.
|
60
65
|
"""
|
61
66
|
return pulumi.get(self, "policy_id")
|
62
67
|
|
63
68
|
@policy_id.setter
|
64
|
-
def policy_id(self, value: pulumi.Input[
|
69
|
+
def policy_id(self, value: pulumi.Input[str]):
|
65
70
|
pulumi.set(self, "policy_id", value)
|
66
71
|
|
67
72
|
@property
|
@@ -70,8 +75,8 @@ class AlertConditionArgs:
|
|
70
75
|
"""
|
71
76
|
Set whether to enable the alert condition. Defaults to `true`.
|
72
77
|
|
73
|
-
```
|
74
|
-
|
78
|
+
```
|
79
|
+
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
80
|
```
|
76
81
|
"""
|
77
82
|
return pulumi.get(self, "enabled")
|
@@ -112,19 +117,19 @@ class _AlertConditionState:
|
|
112
117
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
113
118
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
114
119
|
name: Optional[pulumi.Input[str]] = None,
|
115
|
-
policy_id: Optional[pulumi.Input[
|
120
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
116
121
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
117
122
|
"""
|
118
123
|
Input properties used for looking up and filtering AlertCondition resources.
|
119
124
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
120
125
|
|
121
|
-
```
|
122
|
-
|
126
|
+
```
|
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.
|
123
128
|
```
|
124
129
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
125
130
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
126
131
|
:param pulumi.Input[str] name: The title of this condition.
|
127
|
-
:param pulumi.Input[
|
132
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
128
133
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
129
134
|
"""
|
130
135
|
if enabled is not None:
|
@@ -146,8 +151,8 @@ class _AlertConditionState:
|
|
146
151
|
"""
|
147
152
|
Set whether to enable the alert condition. Defaults to `true`.
|
148
153
|
|
149
|
-
```
|
150
|
-
|
154
|
+
```
|
155
|
+
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
156
|
```
|
152
157
|
"""
|
153
158
|
return pulumi.get(self, "enabled")
|
@@ -194,14 +199,14 @@ class _AlertConditionState:
|
|
194
199
|
|
195
200
|
@property
|
196
201
|
@pulumi.getter(name="policyId")
|
197
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
202
|
+
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
198
203
|
"""
|
199
204
|
The ID of the policy where this condition should be used.
|
200
205
|
"""
|
201
206
|
return pulumi.get(self, "policy_id")
|
202
207
|
|
203
208
|
@policy_id.setter
|
204
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
209
|
+
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
205
210
|
pulumi.set(self, "policy_id", value)
|
206
211
|
|
207
212
|
@property
|
@@ -225,13 +230,13 @@ class AlertCondition(pulumi.CustomResource):
|
|
225
230
|
enabled: Optional[pulumi.Input[bool]] = None,
|
226
231
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
227
232
|
name: Optional[pulumi.Input[str]] = None,
|
228
|
-
policy_id: Optional[pulumi.Input[
|
233
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
229
234
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
230
235
|
__props__=None):
|
231
236
|
"""
|
232
237
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
233
238
|
|
234
|
-
> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query.
|
239
|
+
> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query. For more details and examples on moving away from synthetics alert conditions to the NRQL based alternative, please check out this example.
|
235
240
|
|
236
241
|
## Example Usage
|
237
242
|
|
@@ -240,10 +245,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
240
245
|
import pulumi_newrelic as newrelic
|
241
246
|
|
242
247
|
foo = newrelic.synthetics.AlertCondition("foo",
|
243
|
-
policy_id=
|
244
|
-
|
248
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
249
|
+
name="foo",
|
250
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
245
251
|
runbook_url="https://www.example.com")
|
246
252
|
```
|
253
|
+
|
247
254
|
## Tags
|
248
255
|
|
249
256
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
@@ -252,43 +259,45 @@ class AlertCondition(pulumi.CustomResource):
|
|
252
259
|
import pulumi
|
253
260
|
import pulumi_newrelic as newrelic
|
254
261
|
|
255
|
-
|
256
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
262
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
263
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
257
264
|
status="ENABLED",
|
265
|
+
name="foo monitor",
|
258
266
|
period="EVERY_MINUTE",
|
259
267
|
uri="https://www.one.newrelic.com",
|
260
268
|
type="SIMPLE",
|
261
269
|
locations_publics=["AP_EAST_1"],
|
262
|
-
custom_headers=[
|
263
|
-
name
|
264
|
-
value
|
265
|
-
|
270
|
+
custom_headers=[{
|
271
|
+
"name": "some_name",
|
272
|
+
"value": "some_value",
|
273
|
+
}],
|
266
274
|
treat_redirect_as_failure=True,
|
267
275
|
validation_string="success",
|
268
276
|
bypass_head_request=True,
|
269
277
|
verify_ssl=True,
|
270
|
-
tags=[
|
271
|
-
key
|
272
|
-
values
|
273
|
-
|
274
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
275
|
-
policy_id=
|
278
|
+
tags=[{
|
279
|
+
"key": "some_key",
|
280
|
+
"values": ["some_value"],
|
281
|
+
}])
|
282
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
283
|
+
policy_id=foo.id,
|
284
|
+
name="foo synthetics condition",
|
276
285
|
monitor_id=foo_monitor.id,
|
277
286
|
runbook_url="https://www.example.com")
|
278
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
287
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
279
288
|
guid=foo_alert_condition.entity_guid,
|
280
289
|
tags=[
|
281
|
-
|
282
|
-
key
|
283
|
-
values
|
290
|
+
{
|
291
|
+
"key": "my-key",
|
292
|
+
"values": [
|
284
293
|
"my-value",
|
285
294
|
"my-other-value",
|
286
295
|
],
|
287
|
-
|
288
|
-
|
289
|
-
key
|
290
|
-
values
|
291
|
-
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"key": "my-key-2",
|
299
|
+
"values": ["my-value-2"],
|
300
|
+
},
|
292
301
|
])
|
293
302
|
```
|
294
303
|
|
@@ -297,19 +306,19 @@ class AlertCondition(pulumi.CustomResource):
|
|
297
306
|
Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
298
307
|
|
299
308
|
```sh
|
300
|
-
|
309
|
+
$ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
|
301
310
|
```
|
302
311
|
|
303
312
|
:param str resource_name: The name of the resource.
|
304
313
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
305
314
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
306
315
|
|
307
|
-
```
|
308
|
-
|
316
|
+
```
|
317
|
+
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.
|
309
318
|
```
|
310
319
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
311
320
|
:param pulumi.Input[str] name: The title of this condition.
|
312
|
-
:param pulumi.Input[
|
321
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
313
322
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
314
323
|
"""
|
315
324
|
...
|
@@ -321,7 +330,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
321
330
|
"""
|
322
331
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
323
332
|
|
324
|
-
> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query.
|
333
|
+
> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query. For more details and examples on moving away from synthetics alert conditions to the NRQL based alternative, please check out this example.
|
325
334
|
|
326
335
|
## Example Usage
|
327
336
|
|
@@ -330,10 +339,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
330
339
|
import pulumi_newrelic as newrelic
|
331
340
|
|
332
341
|
foo = newrelic.synthetics.AlertCondition("foo",
|
333
|
-
policy_id=
|
334
|
-
|
342
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
343
|
+
name="foo",
|
344
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
335
345
|
runbook_url="https://www.example.com")
|
336
346
|
```
|
347
|
+
|
337
348
|
## Tags
|
338
349
|
|
339
350
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
@@ -342,43 +353,45 @@ class AlertCondition(pulumi.CustomResource):
|
|
342
353
|
import pulumi
|
343
354
|
import pulumi_newrelic as newrelic
|
344
355
|
|
345
|
-
|
346
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
356
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
357
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
347
358
|
status="ENABLED",
|
359
|
+
name="foo monitor",
|
348
360
|
period="EVERY_MINUTE",
|
349
361
|
uri="https://www.one.newrelic.com",
|
350
362
|
type="SIMPLE",
|
351
363
|
locations_publics=["AP_EAST_1"],
|
352
|
-
custom_headers=[
|
353
|
-
name
|
354
|
-
value
|
355
|
-
|
364
|
+
custom_headers=[{
|
365
|
+
"name": "some_name",
|
366
|
+
"value": "some_value",
|
367
|
+
}],
|
356
368
|
treat_redirect_as_failure=True,
|
357
369
|
validation_string="success",
|
358
370
|
bypass_head_request=True,
|
359
371
|
verify_ssl=True,
|
360
|
-
tags=[
|
361
|
-
key
|
362
|
-
values
|
363
|
-
|
364
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
365
|
-
policy_id=
|
372
|
+
tags=[{
|
373
|
+
"key": "some_key",
|
374
|
+
"values": ["some_value"],
|
375
|
+
}])
|
376
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
377
|
+
policy_id=foo.id,
|
378
|
+
name="foo synthetics condition",
|
366
379
|
monitor_id=foo_monitor.id,
|
367
380
|
runbook_url="https://www.example.com")
|
368
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
381
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
369
382
|
guid=foo_alert_condition.entity_guid,
|
370
383
|
tags=[
|
371
|
-
|
372
|
-
key
|
373
|
-
values
|
384
|
+
{
|
385
|
+
"key": "my-key",
|
386
|
+
"values": [
|
374
387
|
"my-value",
|
375
388
|
"my-other-value",
|
376
389
|
],
|
377
|
-
|
378
|
-
|
379
|
-
key
|
380
|
-
values
|
381
|
-
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"key": "my-key-2",
|
393
|
+
"values": ["my-value-2"],
|
394
|
+
},
|
382
395
|
])
|
383
396
|
```
|
384
397
|
|
@@ -387,7 +400,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
387
400
|
Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.
|
388
401
|
|
389
402
|
```sh
|
390
|
-
|
403
|
+
$ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890
|
391
404
|
```
|
392
405
|
|
393
406
|
:param str resource_name: The name of the resource.
|
@@ -408,7 +421,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
408
421
|
enabled: Optional[pulumi.Input[bool]] = None,
|
409
422
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
410
423
|
name: Optional[pulumi.Input[str]] = None,
|
411
|
-
policy_id: Optional[pulumi.Input[
|
424
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
412
425
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
413
426
|
__props__=None):
|
414
427
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -443,7 +456,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
443
456
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
444
457
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
445
458
|
name: Optional[pulumi.Input[str]] = None,
|
446
|
-
policy_id: Optional[pulumi.Input[
|
459
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
447
460
|
runbook_url: Optional[pulumi.Input[str]] = None) -> 'AlertCondition':
|
448
461
|
"""
|
449
462
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
@@ -454,13 +467,13 @@ class AlertCondition(pulumi.CustomResource):
|
|
454
467
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
455
468
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
456
469
|
|
457
|
-
```
|
458
|
-
|
470
|
+
```
|
471
|
+
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.
|
459
472
|
```
|
460
473
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
461
474
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
462
475
|
:param pulumi.Input[str] name: The title of this condition.
|
463
|
-
:param pulumi.Input[
|
476
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
464
477
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
465
478
|
"""
|
466
479
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -481,8 +494,8 @@ class AlertCondition(pulumi.CustomResource):
|
|
481
494
|
"""
|
482
495
|
Set whether to enable the alert condition. Defaults to `true`.
|
483
496
|
|
484
|
-
```
|
485
|
-
|
497
|
+
```
|
498
|
+
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.
|
486
499
|
```
|
487
500
|
"""
|
488
501
|
return pulumi.get(self, "enabled")
|
@@ -513,7 +526,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
513
526
|
|
514
527
|
@property
|
515
528
|
@pulumi.getter(name="policyId")
|
516
|
-
def policy_id(self) -> pulumi.Output[
|
529
|
+
def policy_id(self) -> pulumi.Output[str]:
|
517
530
|
"""
|
518
531
|
The ID of the policy where this condition should be used.
|
519
532
|
"""
|