pulumi-newrelic 5.21.0a1710157101__py3-none-any.whl → 5.39.0a1736849617__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 +11 -6
- pulumi_newrelic/alert_channel.py +116 -127
- pulumi_newrelic/alert_condition.py +116 -129
- pulumi_newrelic/alert_muting_rule.py +128 -76
- pulumi_newrelic/alert_policy.py +78 -75
- pulumi_newrelic/alert_policy_channel.py +77 -68
- pulumi_newrelic/api_access_key.py +45 -28
- pulumi_newrelic/browser_application.py +77 -78
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +133 -128
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +23 -20
- pulumi_newrelic/cloud/aws_integrations.py +298 -1326
- pulumi_newrelic/cloud/aws_link_account.py +23 -20
- pulumi_newrelic/cloud/azure_integrations.py +521 -483
- pulumi_newrelic/cloud/azure_link_account.py +34 -31
- pulumi_newrelic/cloud/gcp_integrations.py +341 -322
- pulumi_newrelic/cloud/gcp_link_account.py +23 -20
- 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 +19 -18
- pulumi_newrelic/entity_tags.py +32 -31
- pulumi_newrelic/events_to_metrics_rule.py +23 -20
- pulumi_newrelic/get_account.py +24 -16
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -31
- pulumi_newrelic/get_authentication_domain.py +17 -13
- pulumi_newrelic/get_cloud_account.py +26 -18
- pulumi_newrelic/get_entity.py +90 -147
- pulumi_newrelic/get_group.py +58 -13
- pulumi_newrelic/get_key_transaction.py +109 -34
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -28
- pulumi_newrelic/get_service_level_alert_helper.py +135 -117
- pulumi_newrelic/get_test_grok_pattern.py +29 -18
- pulumi_newrelic/get_user.py +17 -9
- pulumi_newrelic/group.py +5 -146
- pulumi_newrelic/infra_alert_condition.py +160 -167
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +48 -47
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +25 -24
- pulumi_newrelic/monitor_downtime.py +211 -225
- pulumi_newrelic/notification_channel.py +381 -366
- pulumi_newrelic/notification_destination.py +192 -54
- pulumi_newrelic/nrql_alert_condition.py +345 -262
- pulumi_newrelic/nrql_drop_rule.py +31 -30
- pulumi_newrelic/obfuscation_expression.py +23 -20
- pulumi_newrelic/obfuscation_rule.py +38 -33
- pulumi_newrelic/one_dashboard.py +29 -24
- pulumi_newrelic/one_dashboard_json.py +19 -14
- pulumi_newrelic/one_dashboard_raw.py +110 -105
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +25 -36
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +215 -92
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +185 -186
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +87 -98
- pulumi_newrelic/synthetics/broken_links_monitor.py +216 -99
- pulumi_newrelic/synthetics/cert_check_monitor.py +219 -100
- pulumi_newrelic/synthetics/get_private_location.py +34 -30
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -16
- pulumi_newrelic/synthetics/monitor.py +348 -193
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +105 -100
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +25 -20
- pulumi_newrelic/synthetics/script_monitor.py +317 -182
- pulumi_newrelic/synthetics/secure_credential.py +23 -22
- pulumi_newrelic/synthetics/step_monitor.py +405 -100
- pulumi_newrelic/user.py +13 -10
- pulumi_newrelic/workflow.py +209 -196
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736849617.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.21.0a1710157101.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736849617.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,21 +20,19 @@ __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
|
-
<!--Start PulumiCodeChooser -->
|
29
|
-
```python
|
30
|
-
import pulumi
|
31
33
|
```
|
32
|
-
|
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.
|
35
|
+
```
|
33
36
|
:param pulumi.Input[str] name: The title of this condition.
|
34
37
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
35
38
|
"""
|
@@ -56,14 +59,14 @@ class AlertConditionArgs:
|
|
56
59
|
|
57
60
|
@property
|
58
61
|
@pulumi.getter(name="policyId")
|
59
|
-
def policy_id(self) -> pulumi.Input[
|
62
|
+
def policy_id(self) -> pulumi.Input[str]:
|
60
63
|
"""
|
61
64
|
The ID of the policy where this condition should be used.
|
62
65
|
"""
|
63
66
|
return pulumi.get(self, "policy_id")
|
64
67
|
|
65
68
|
@policy_id.setter
|
66
|
-
def policy_id(self, value: pulumi.Input[
|
69
|
+
def policy_id(self, value: pulumi.Input[str]):
|
67
70
|
pulumi.set(self, "policy_id", value)
|
68
71
|
|
69
72
|
@property
|
@@ -72,11 +75,9 @@ class AlertConditionArgs:
|
|
72
75
|
"""
|
73
76
|
Set whether to enable the alert condition. Defaults to `true`.
|
74
77
|
|
75
|
-
<!--Start PulumiCodeChooser -->
|
76
|
-
```python
|
77
|
-
import pulumi
|
78
78
|
```
|
79
|
-
|
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.
|
80
|
+
```
|
80
81
|
"""
|
81
82
|
return pulumi.get(self, "enabled")
|
82
83
|
|
@@ -116,21 +117,19 @@ class _AlertConditionState:
|
|
116
117
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
117
118
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
118
119
|
name: Optional[pulumi.Input[str]] = None,
|
119
|
-
policy_id: Optional[pulumi.Input[
|
120
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
120
121
|
runbook_url: Optional[pulumi.Input[str]] = None):
|
121
122
|
"""
|
122
123
|
Input properties used for looking up and filtering AlertCondition resources.
|
123
124
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
124
125
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
126
|
-
```python
|
127
|
-
import pulumi
|
128
126
|
```
|
129
|
-
|
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.
|
128
|
+
```
|
130
129
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
131
130
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
132
131
|
:param pulumi.Input[str] name: The title of this condition.
|
133
|
-
:param pulumi.Input[
|
132
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
134
133
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
135
134
|
"""
|
136
135
|
if enabled is not None:
|
@@ -152,11 +151,9 @@ class _AlertConditionState:
|
|
152
151
|
"""
|
153
152
|
Set whether to enable the alert condition. Defaults to `true`.
|
154
153
|
|
155
|
-
<!--Start PulumiCodeChooser -->
|
156
|
-
```python
|
157
|
-
import pulumi
|
158
154
|
```
|
159
|
-
|
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.
|
156
|
+
```
|
160
157
|
"""
|
161
158
|
return pulumi.get(self, "enabled")
|
162
159
|
|
@@ -202,14 +199,14 @@ class _AlertConditionState:
|
|
202
199
|
|
203
200
|
@property
|
204
201
|
@pulumi.getter(name="policyId")
|
205
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
202
|
+
def policy_id(self) -> Optional[pulumi.Input[str]]:
|
206
203
|
"""
|
207
204
|
The ID of the policy where this condition should be used.
|
208
205
|
"""
|
209
206
|
return pulumi.get(self, "policy_id")
|
210
207
|
|
211
208
|
@policy_id.setter
|
212
|
-
def policy_id(self, value: Optional[pulumi.Input[
|
209
|
+
def policy_id(self, value: Optional[pulumi.Input[str]]):
|
213
210
|
pulumi.set(self, "policy_id", value)
|
214
211
|
|
215
212
|
@property
|
@@ -233,77 +230,76 @@ class AlertCondition(pulumi.CustomResource):
|
|
233
230
|
enabled: Optional[pulumi.Input[bool]] = None,
|
234
231
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
235
232
|
name: Optional[pulumi.Input[str]] = None,
|
236
|
-
policy_id: Optional[pulumi.Input[
|
233
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
237
234
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
238
235
|
__props__=None):
|
239
236
|
"""
|
240
237
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
241
238
|
|
242
|
-
> **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.
|
243
240
|
|
244
241
|
## Example Usage
|
245
242
|
|
246
|
-
<!--Start PulumiCodeChooser -->
|
247
243
|
```python
|
248
244
|
import pulumi
|
249
245
|
import pulumi_newrelic as newrelic
|
250
246
|
|
251
247
|
foo = newrelic.synthetics.AlertCondition("foo",
|
252
|
-
policy_id=
|
253
|
-
|
248
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
249
|
+
name="foo",
|
250
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
254
251
|
runbook_url="https://www.example.com")
|
255
252
|
```
|
256
|
-
<!--End PulumiCodeChooser -->
|
257
253
|
|
258
254
|
## Tags
|
259
255
|
|
260
256
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
261
257
|
|
262
|
-
<!--Start PulumiCodeChooser -->
|
263
258
|
```python
|
264
259
|
import pulumi
|
265
260
|
import pulumi_newrelic as newrelic
|
266
261
|
|
267
|
-
|
268
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
262
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
263
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
269
264
|
status="ENABLED",
|
265
|
+
name="foo monitor",
|
270
266
|
period="EVERY_MINUTE",
|
271
267
|
uri="https://www.one.newrelic.com",
|
272
268
|
type="SIMPLE",
|
273
269
|
locations_publics=["AP_EAST_1"],
|
274
|
-
custom_headers=[
|
275
|
-
name
|
276
|
-
value
|
277
|
-
|
270
|
+
custom_headers=[{
|
271
|
+
"name": "some_name",
|
272
|
+
"value": "some_value",
|
273
|
+
}],
|
278
274
|
treat_redirect_as_failure=True,
|
279
275
|
validation_string="success",
|
280
276
|
bypass_head_request=True,
|
281
277
|
verify_ssl=True,
|
282
|
-
tags=[
|
283
|
-
key
|
284
|
-
values
|
285
|
-
|
286
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
287
|
-
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",
|
288
285
|
monitor_id=foo_monitor.id,
|
289
286
|
runbook_url="https://www.example.com")
|
290
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
287
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
291
288
|
guid=foo_alert_condition.entity_guid,
|
292
289
|
tags=[
|
293
|
-
|
294
|
-
key
|
295
|
-
values
|
290
|
+
{
|
291
|
+
"key": "my-key",
|
292
|
+
"values": [
|
296
293
|
"my-value",
|
297
294
|
"my-other-value",
|
298
295
|
],
|
299
|
-
|
300
|
-
|
301
|
-
key
|
302
|
-
values
|
303
|
-
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"key": "my-key-2",
|
299
|
+
"values": ["my-value-2"],
|
300
|
+
},
|
304
301
|
])
|
305
302
|
```
|
306
|
-
<!--End PulumiCodeChooser -->
|
307
303
|
|
308
304
|
## Import
|
309
305
|
|
@@ -317,14 +313,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
317
313
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
318
314
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
319
315
|
|
320
|
-
<!--Start PulumiCodeChooser -->
|
321
|
-
```python
|
322
|
-
import pulumi
|
323
316
|
```
|
324
|
-
|
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.
|
318
|
+
```
|
325
319
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
326
320
|
:param pulumi.Input[str] name: The title of this condition.
|
327
|
-
:param pulumi.Input[
|
321
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
328
322
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
329
323
|
"""
|
330
324
|
...
|
@@ -336,71 +330,70 @@ class AlertCondition(pulumi.CustomResource):
|
|
336
330
|
"""
|
337
331
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
338
332
|
|
339
|
-
> **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.
|
340
334
|
|
341
335
|
## Example Usage
|
342
336
|
|
343
|
-
<!--Start PulumiCodeChooser -->
|
344
337
|
```python
|
345
338
|
import pulumi
|
346
339
|
import pulumi_newrelic as newrelic
|
347
340
|
|
348
341
|
foo = newrelic.synthetics.AlertCondition("foo",
|
349
|
-
policy_id=
|
350
|
-
|
342
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
343
|
+
name="foo",
|
344
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
351
345
|
runbook_url="https://www.example.com")
|
352
346
|
```
|
353
|
-
<!--End PulumiCodeChooser -->
|
354
347
|
|
355
348
|
## Tags
|
356
349
|
|
357
350
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
358
351
|
|
359
|
-
<!--Start PulumiCodeChooser -->
|
360
352
|
```python
|
361
353
|
import pulumi
|
362
354
|
import pulumi_newrelic as newrelic
|
363
355
|
|
364
|
-
|
365
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
356
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
357
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
366
358
|
status="ENABLED",
|
359
|
+
name="foo monitor",
|
367
360
|
period="EVERY_MINUTE",
|
368
361
|
uri="https://www.one.newrelic.com",
|
369
362
|
type="SIMPLE",
|
370
363
|
locations_publics=["AP_EAST_1"],
|
371
|
-
custom_headers=[
|
372
|
-
name
|
373
|
-
value
|
374
|
-
|
364
|
+
custom_headers=[{
|
365
|
+
"name": "some_name",
|
366
|
+
"value": "some_value",
|
367
|
+
}],
|
375
368
|
treat_redirect_as_failure=True,
|
376
369
|
validation_string="success",
|
377
370
|
bypass_head_request=True,
|
378
371
|
verify_ssl=True,
|
379
|
-
tags=[
|
380
|
-
key
|
381
|
-
values
|
382
|
-
|
383
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
384
|
-
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",
|
385
379
|
monitor_id=foo_monitor.id,
|
386
380
|
runbook_url="https://www.example.com")
|
387
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
381
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
388
382
|
guid=foo_alert_condition.entity_guid,
|
389
383
|
tags=[
|
390
|
-
|
391
|
-
key
|
392
|
-
values
|
384
|
+
{
|
385
|
+
"key": "my-key",
|
386
|
+
"values": [
|
393
387
|
"my-value",
|
394
388
|
"my-other-value",
|
395
389
|
],
|
396
|
-
|
397
|
-
|
398
|
-
key
|
399
|
-
values
|
400
|
-
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"key": "my-key-2",
|
393
|
+
"values": ["my-value-2"],
|
394
|
+
},
|
401
395
|
])
|
402
396
|
```
|
403
|
-
<!--End PulumiCodeChooser -->
|
404
397
|
|
405
398
|
## Import
|
406
399
|
|
@@ -428,7 +421,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
428
421
|
enabled: Optional[pulumi.Input[bool]] = None,
|
429
422
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
430
423
|
name: Optional[pulumi.Input[str]] = None,
|
431
|
-
policy_id: Optional[pulumi.Input[
|
424
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
432
425
|
runbook_url: Optional[pulumi.Input[str]] = None,
|
433
426
|
__props__=None):
|
434
427
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -463,7 +456,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
463
456
|
entity_guid: Optional[pulumi.Input[str]] = None,
|
464
457
|
monitor_id: Optional[pulumi.Input[str]] = None,
|
465
458
|
name: Optional[pulumi.Input[str]] = None,
|
466
|
-
policy_id: Optional[pulumi.Input[
|
459
|
+
policy_id: Optional[pulumi.Input[str]] = None,
|
467
460
|
runbook_url: Optional[pulumi.Input[str]] = None) -> 'AlertCondition':
|
468
461
|
"""
|
469
462
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
@@ -474,15 +467,13 @@ class AlertCondition(pulumi.CustomResource):
|
|
474
467
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
475
468
|
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
476
469
|
|
477
|
-
<!--Start PulumiCodeChooser -->
|
478
|
-
```python
|
479
|
-
import pulumi
|
480
470
|
```
|
481
|
-
|
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.
|
472
|
+
```
|
482
473
|
:param pulumi.Input[str] entity_guid: The unique entity identifier of the condition in New Relic.
|
483
474
|
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
484
475
|
:param pulumi.Input[str] name: The title of this condition.
|
485
|
-
:param pulumi.Input[
|
476
|
+
:param pulumi.Input[str] policy_id: The ID of the policy where this condition should be used.
|
486
477
|
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
|
487
478
|
"""
|
488
479
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -503,11 +494,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
503
494
|
"""
|
504
495
|
Set whether to enable the alert condition. Defaults to `true`.
|
505
496
|
|
506
|
-
<!--Start PulumiCodeChooser -->
|
507
|
-
```python
|
508
|
-
import pulumi
|
509
497
|
```
|
510
|
-
|
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.
|
499
|
+
```
|
511
500
|
"""
|
512
501
|
return pulumi.get(self, "enabled")
|
513
502
|
|
@@ -537,7 +526,7 @@ class AlertCondition(pulumi.CustomResource):
|
|
537
526
|
|
538
527
|
@property
|
539
528
|
@pulumi.getter(name="policyId")
|
540
|
-
def policy_id(self) -> pulumi.Output[
|
529
|
+
def policy_id(self) -> pulumi.Output[str]:
|
541
530
|
"""
|
542
531
|
The ID of the policy where this condition should be used.
|
543
532
|
"""
|