pulumi-newrelic 5.22.0__py3-none-any.whl → 5.58.0a1763707205__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 +28 -1
- pulumi_newrelic/_inputs.py +10385 -2976
- pulumi_newrelic/_utilities.py +50 -10
- pulumi_newrelic/account_management.py +48 -42
- pulumi_newrelic/alert_channel.py +165 -175
- pulumi_newrelic/alert_condition.py +307 -319
- pulumi_newrelic/alert_muting_rule.py +193 -140
- pulumi_newrelic/alert_policy.py +121 -117
- pulumi_newrelic/alert_policy_channel.py +89 -79
- pulumi_newrelic/api_access_key.py +195 -193
- pulumi_newrelic/browser_application.py +120 -114
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2714
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +206 -196
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +143 -228
- pulumi_newrelic/cloud/aws_integrations.py +510 -1490
- pulumi_newrelic/cloud/aws_link_account.py +80 -76
- pulumi_newrelic/cloud/azure_integrations.py +673 -587
- pulumi_newrelic/cloud/azure_link_account.py +121 -117
- pulumi_newrelic/cloud/gcp_integrations.py +428 -408
- pulumi_newrelic/cloud/gcp_link_account.py +65 -61
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2321
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +8 -3
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +119 -117
- pulumi_newrelic/entity_tags.py +111 -53
- pulumi_newrelic/events_to_metrics_rule.py +106 -102
- pulumi_newrelic/get_account.py +41 -33
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +82 -33
- pulumi_newrelic/get_application.py +51 -43
- pulumi_newrelic/get_authentication_domain.py +27 -23
- pulumi_newrelic/get_cloud_account.py +43 -35
- pulumi_newrelic/get_entity.py +126 -183
- pulumi_newrelic/get_group.py +76 -31
- pulumi_newrelic/get_key_transaction.py +117 -42
- pulumi_newrelic/get_notification_destination.py +75 -38
- pulumi_newrelic/get_obfuscation_expression.py +47 -39
- pulumi_newrelic/get_service_level_alert_helper.py +189 -171
- pulumi_newrelic/get_test_grok_pattern.py +47 -36
- pulumi_newrelic/get_user.py +39 -31
- pulumi_newrelic/group.py +59 -199
- pulumi_newrelic/infra_alert_condition.py +399 -405
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +71 -28
- pulumi_newrelic/insights/event.py +54 -52
- pulumi_newrelic/insights/outputs.py +28 -23
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +159 -157
- pulumi_newrelic/monitor_downtime.py +311 -331
- pulumi_newrelic/notification_channel.py +534 -464
- pulumi_newrelic/notification_destination.py +238 -141
- pulumi_newrelic/nrql_alert_condition.py +820 -614
- pulumi_newrelic/nrql_drop_rule.py +113 -151
- pulumi_newrelic/obfuscation_expression.py +80 -76
- pulumi_newrelic/obfuscation_rule.py +115 -109
- pulumi_newrelic/one_dashboard.py +110 -104
- pulumi_newrelic/one_dashboard_json.py +69 -63
- pulumi_newrelic/one_dashboard_raw.py +212 -206
- pulumi_newrelic/outputs.py +4936 -2234
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +519 -89
- pulumi_newrelic/plugins/application_settings.py +463 -187
- pulumi_newrelic/plugins/outputs.py +336 -74
- pulumi_newrelic/plugins/workload.py +313 -189
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +263 -263
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +265 -108
- pulumi_newrelic/synthetics/alert_condition.py +170 -180
- pulumi_newrelic/synthetics/broken_links_monitor.py +297 -249
- pulumi_newrelic/synthetics/cert_check_monitor.py +306 -258
- pulumi_newrelic/synthetics/get_private_location.py +51 -47
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -31
- pulumi_newrelic/synthetics/monitor.py +658 -460
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +211 -205
- pulumi_newrelic/synthetics/outputs.py +92 -87
- pulumi_newrelic/synthetics/private_location.py +118 -112
- pulumi_newrelic/synthetics/script_monitor.py +613 -373
- pulumi_newrelic/synthetics/secure_credential.py +97 -95
- pulumi_newrelic/synthetics/step_monitor.py +445 -275
- pulumi_newrelic/user.py +84 -80
- pulumi_newrelic/workflow.py +336 -322
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.22.0.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.22.0.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
|
|
5
|
+
import builtins as _builtins
|
|
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']
|
|
@@ -14,24 +19,22 @@ __all__ = ['AlertConditionArgs', 'AlertCondition']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class AlertConditionArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
monitor_id: pulumi.Input[str],
|
|
18
|
-
policy_id: pulumi.Input[
|
|
19
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
20
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
21
|
-
runbook_url: Optional[pulumi.Input[str]] = None):
|
|
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):
|
|
22
27
|
"""
|
|
23
28
|
The set of arguments for constructing a AlertCondition resource.
|
|
24
|
-
:param pulumi.Input[str] monitor_id: The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
25
|
-
:param pulumi.Input[
|
|
26
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
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`.
|
|
27
32
|
|
|
28
|
-
<!--Start PulumiCodeChooser -->
|
|
29
|
-
```python
|
|
30
|
-
import pulumi
|
|
31
33
|
```
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
:param pulumi.Input[str]
|
|
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
|
+
```
|
|
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.
|
|
35
38
|
"""
|
|
36
39
|
pulumi.set(__self__, "monitor_id", monitor_id)
|
|
37
40
|
pulumi.set(__self__, "policy_id", policy_id)
|
|
@@ -42,96 +45,92 @@ class AlertConditionArgs:
|
|
|
42
45
|
if runbook_url is not None:
|
|
43
46
|
pulumi.set(__self__, "runbook_url", runbook_url)
|
|
44
47
|
|
|
45
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
46
49
|
@pulumi.getter(name="monitorId")
|
|
47
|
-
def monitor_id(self) -> pulumi.Input[str]:
|
|
50
|
+
def monitor_id(self) -> pulumi.Input[_builtins.str]:
|
|
48
51
|
"""
|
|
49
52
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
50
53
|
"""
|
|
51
54
|
return pulumi.get(self, "monitor_id")
|
|
52
55
|
|
|
53
56
|
@monitor_id.setter
|
|
54
|
-
def monitor_id(self, value: pulumi.Input[str]):
|
|
57
|
+
def monitor_id(self, value: pulumi.Input[_builtins.str]):
|
|
55
58
|
pulumi.set(self, "monitor_id", value)
|
|
56
59
|
|
|
57
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
58
61
|
@pulumi.getter(name="policyId")
|
|
59
|
-
def policy_id(self) -> pulumi.Input[
|
|
62
|
+
def policy_id(self) -> pulumi.Input[_builtins.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[_builtins.str]):
|
|
67
70
|
pulumi.set(self, "policy_id", value)
|
|
68
71
|
|
|
69
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
70
73
|
@pulumi.getter
|
|
71
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
74
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
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
|
|
|
83
84
|
@enabled.setter
|
|
84
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
85
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
85
86
|
pulumi.set(self, "enabled", value)
|
|
86
87
|
|
|
87
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
88
89
|
@pulumi.getter
|
|
89
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
90
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
90
91
|
"""
|
|
91
92
|
The title of this condition.
|
|
92
93
|
"""
|
|
93
94
|
return pulumi.get(self, "name")
|
|
94
95
|
|
|
95
96
|
@name.setter
|
|
96
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
97
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
97
98
|
pulumi.set(self, "name", value)
|
|
98
99
|
|
|
99
|
-
@property
|
|
100
|
+
@_builtins.property
|
|
100
101
|
@pulumi.getter(name="runbookUrl")
|
|
101
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
102
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
102
103
|
"""
|
|
103
104
|
Runbook URL to display in notifications.
|
|
104
105
|
"""
|
|
105
106
|
return pulumi.get(self, "runbook_url")
|
|
106
107
|
|
|
107
108
|
@runbook_url.setter
|
|
108
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
109
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
109
110
|
pulumi.set(self, "runbook_url", value)
|
|
110
111
|
|
|
111
112
|
|
|
112
113
|
@pulumi.input_type
|
|
113
114
|
class _AlertConditionState:
|
|
114
115
|
def __init__(__self__, *,
|
|
115
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
116
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
|
117
|
-
monitor_id: Optional[pulumi.Input[str]] = None,
|
|
118
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
119
|
-
policy_id: Optional[pulumi.Input[
|
|
120
|
-
runbook_url: Optional[pulumi.Input[str]] = None):
|
|
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):
|
|
121
122
|
"""
|
|
122
123
|
Input properties used for looking up and filtering AlertCondition resources.
|
|
123
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
124
|
+
:param pulumi.Input[_builtins.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
|
-
|
|
130
|
-
|
|
131
|
-
:param pulumi.Input[str]
|
|
132
|
-
:param pulumi.Input[str]
|
|
133
|
-
:param pulumi.Input[
|
|
134
|
-
:param pulumi.Input[str]
|
|
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
|
+
```
|
|
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,164 +145,162 @@ 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[bool]]:
|
|
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
|
|
|
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
|
|
|
163
160
|
@enabled.setter
|
|
164
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
161
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
165
162
|
pulumi.set(self, "enabled", value)
|
|
166
163
|
|
|
167
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
168
165
|
@pulumi.getter(name="entityGuid")
|
|
169
|
-
def entity_guid(self) -> Optional[pulumi.Input[str]]:
|
|
166
|
+
def entity_guid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
170
167
|
"""
|
|
171
168
|
The unique entity identifier of the condition in New Relic.
|
|
172
169
|
"""
|
|
173
170
|
return pulumi.get(self, "entity_guid")
|
|
174
171
|
|
|
175
172
|
@entity_guid.setter
|
|
176
|
-
def entity_guid(self, value: Optional[pulumi.Input[str]]):
|
|
173
|
+
def entity_guid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
177
174
|
pulumi.set(self, "entity_guid", value)
|
|
178
175
|
|
|
179
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
180
177
|
@pulumi.getter(name="monitorId")
|
|
181
|
-
def monitor_id(self) -> Optional[pulumi.Input[str]]:
|
|
178
|
+
def monitor_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
182
179
|
"""
|
|
183
180
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
184
181
|
"""
|
|
185
182
|
return pulumi.get(self, "monitor_id")
|
|
186
183
|
|
|
187
184
|
@monitor_id.setter
|
|
188
|
-
def monitor_id(self, value: Optional[pulumi.Input[str]]):
|
|
185
|
+
def monitor_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
189
186
|
pulumi.set(self, "monitor_id", value)
|
|
190
187
|
|
|
191
|
-
@property
|
|
188
|
+
@_builtins.property
|
|
192
189
|
@pulumi.getter
|
|
193
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
190
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
194
191
|
"""
|
|
195
192
|
The title of this condition.
|
|
196
193
|
"""
|
|
197
194
|
return pulumi.get(self, "name")
|
|
198
195
|
|
|
199
196
|
@name.setter
|
|
200
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
197
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
201
198
|
pulumi.set(self, "name", value)
|
|
202
199
|
|
|
203
|
-
@property
|
|
200
|
+
@_builtins.property
|
|
204
201
|
@pulumi.getter(name="policyId")
|
|
205
|
-
def policy_id(self) -> Optional[pulumi.Input[
|
|
202
|
+
def policy_id(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
|
|
213
210
|
pulumi.set(self, "policy_id", value)
|
|
214
211
|
|
|
215
|
-
@property
|
|
212
|
+
@_builtins.property
|
|
216
213
|
@pulumi.getter(name="runbookUrl")
|
|
217
|
-
def runbook_url(self) -> Optional[pulumi.Input[str]]:
|
|
214
|
+
def runbook_url(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
218
215
|
"""
|
|
219
216
|
Runbook URL to display in notifications.
|
|
220
217
|
"""
|
|
221
218
|
return pulumi.get(self, "runbook_url")
|
|
222
219
|
|
|
223
220
|
@runbook_url.setter
|
|
224
|
-
def runbook_url(self, value: Optional[pulumi.Input[str]]):
|
|
221
|
+
def runbook_url(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
225
222
|
pulumi.set(self, "runbook_url", value)
|
|
226
223
|
|
|
227
224
|
|
|
225
|
+
@pulumi.type_token("newrelic:synthetics/alertCondition:AlertCondition")
|
|
228
226
|
class AlertCondition(pulumi.CustomResource):
|
|
229
227
|
@overload
|
|
230
228
|
def __init__(__self__,
|
|
231
229
|
resource_name: str,
|
|
232
230
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
233
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
234
|
-
monitor_id: Optional[pulumi.Input[str]] = None,
|
|
235
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
236
|
-
policy_id: Optional[pulumi.Input[
|
|
237
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
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,
|
|
238
236
|
__props__=None):
|
|
239
237
|
"""
|
|
240
238
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
|
241
239
|
|
|
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.
|
|
240
|
+
> **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
241
|
|
|
244
242
|
## Example Usage
|
|
245
243
|
|
|
246
|
-
<!--Start PulumiCodeChooser -->
|
|
247
244
|
```python
|
|
248
245
|
import pulumi
|
|
249
246
|
import pulumi_newrelic as newrelic
|
|
250
247
|
|
|
251
248
|
foo = newrelic.synthetics.AlertCondition("foo",
|
|
252
|
-
policy_id=
|
|
253
|
-
|
|
249
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
|
250
|
+
name="foo",
|
|
251
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
|
254
252
|
runbook_url="https://www.example.com")
|
|
255
253
|
```
|
|
256
|
-
<!--End PulumiCodeChooser -->
|
|
257
254
|
|
|
258
255
|
## Tags
|
|
259
256
|
|
|
260
257
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
|
261
258
|
|
|
262
|
-
<!--Start PulumiCodeChooser -->
|
|
263
259
|
```python
|
|
264
260
|
import pulumi
|
|
265
261
|
import pulumi_newrelic as newrelic
|
|
266
262
|
|
|
267
|
-
|
|
268
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
|
263
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
|
264
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
|
269
265
|
status="ENABLED",
|
|
266
|
+
name="foo monitor",
|
|
270
267
|
period="EVERY_MINUTE",
|
|
271
268
|
uri="https://www.one.newrelic.com",
|
|
272
269
|
type="SIMPLE",
|
|
273
270
|
locations_publics=["AP_EAST_1"],
|
|
274
|
-
custom_headers=[
|
|
275
|
-
name
|
|
276
|
-
value
|
|
277
|
-
|
|
271
|
+
custom_headers=[{
|
|
272
|
+
"name": "some_name",
|
|
273
|
+
"value": "some_value",
|
|
274
|
+
}],
|
|
278
275
|
treat_redirect_as_failure=True,
|
|
279
276
|
validation_string="success",
|
|
280
277
|
bypass_head_request=True,
|
|
281
278
|
verify_ssl=True,
|
|
282
|
-
tags=[
|
|
283
|
-
key
|
|
284
|
-
values
|
|
285
|
-
|
|
286
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
|
287
|
-
policy_id=
|
|
279
|
+
tags=[{
|
|
280
|
+
"key": "some_key",
|
|
281
|
+
"values": ["some_value"],
|
|
282
|
+
}])
|
|
283
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
|
284
|
+
policy_id=foo.id,
|
|
285
|
+
name="foo synthetics condition",
|
|
288
286
|
monitor_id=foo_monitor.id,
|
|
289
287
|
runbook_url="https://www.example.com")
|
|
290
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
|
288
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
|
291
289
|
guid=foo_alert_condition.entity_guid,
|
|
292
290
|
tags=[
|
|
293
|
-
|
|
294
|
-
key
|
|
295
|
-
values
|
|
291
|
+
{
|
|
292
|
+
"key": "my-key",
|
|
293
|
+
"values": [
|
|
296
294
|
"my-value",
|
|
297
295
|
"my-other-value",
|
|
298
296
|
],
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
key
|
|
302
|
-
values
|
|
303
|
-
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"key": "my-key-2",
|
|
300
|
+
"values": ["my-value-2"],
|
|
301
|
+
},
|
|
304
302
|
])
|
|
305
303
|
```
|
|
306
|
-
<!--End PulumiCodeChooser -->
|
|
307
304
|
|
|
308
305
|
## Import
|
|
309
306
|
|
|
@@ -315,17 +312,15 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
315
312
|
|
|
316
313
|
:param str resource_name: The name of the resource.
|
|
317
314
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
318
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
315
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
319
316
|
|
|
320
|
-
<!--Start PulumiCodeChooser -->
|
|
321
|
-
```python
|
|
322
|
-
import pulumi
|
|
323
317
|
```
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
:param pulumi.Input[str]
|
|
327
|
-
:param pulumi.Input[
|
|
328
|
-
:param pulumi.Input[str]
|
|
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.
|
|
319
|
+
```
|
|
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.
|
|
329
324
|
"""
|
|
330
325
|
...
|
|
331
326
|
@overload
|
|
@@ -336,71 +331,70 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
336
331
|
"""
|
|
337
332
|
Use this resource to create and manage synthetics alert conditions in New Relic.
|
|
338
333
|
|
|
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.
|
|
334
|
+
> **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
335
|
|
|
341
336
|
## Example Usage
|
|
342
337
|
|
|
343
|
-
<!--Start PulumiCodeChooser -->
|
|
344
338
|
```python
|
|
345
339
|
import pulumi
|
|
346
340
|
import pulumi_newrelic as newrelic
|
|
347
341
|
|
|
348
342
|
foo = newrelic.synthetics.AlertCondition("foo",
|
|
349
|
-
policy_id=
|
|
350
|
-
|
|
343
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
|
344
|
+
name="foo",
|
|
345
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
|
351
346
|
runbook_url="https://www.example.com")
|
|
352
347
|
```
|
|
353
|
-
<!--End PulumiCodeChooser -->
|
|
354
348
|
|
|
355
349
|
## Tags
|
|
356
350
|
|
|
357
351
|
Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags
|
|
358
352
|
|
|
359
|
-
<!--Start PulumiCodeChooser -->
|
|
360
353
|
```python
|
|
361
354
|
import pulumi
|
|
362
355
|
import pulumi_newrelic as newrelic
|
|
363
356
|
|
|
364
|
-
|
|
365
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
|
357
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
|
358
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
|
366
359
|
status="ENABLED",
|
|
360
|
+
name="foo monitor",
|
|
367
361
|
period="EVERY_MINUTE",
|
|
368
362
|
uri="https://www.one.newrelic.com",
|
|
369
363
|
type="SIMPLE",
|
|
370
364
|
locations_publics=["AP_EAST_1"],
|
|
371
|
-
custom_headers=[
|
|
372
|
-
name
|
|
373
|
-
value
|
|
374
|
-
|
|
365
|
+
custom_headers=[{
|
|
366
|
+
"name": "some_name",
|
|
367
|
+
"value": "some_value",
|
|
368
|
+
}],
|
|
375
369
|
treat_redirect_as_failure=True,
|
|
376
370
|
validation_string="success",
|
|
377
371
|
bypass_head_request=True,
|
|
378
372
|
verify_ssl=True,
|
|
379
|
-
tags=[
|
|
380
|
-
key
|
|
381
|
-
values
|
|
382
|
-
|
|
383
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
|
384
|
-
policy_id=
|
|
373
|
+
tags=[{
|
|
374
|
+
"key": "some_key",
|
|
375
|
+
"values": ["some_value"],
|
|
376
|
+
}])
|
|
377
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
|
378
|
+
policy_id=foo.id,
|
|
379
|
+
name="foo synthetics condition",
|
|
385
380
|
monitor_id=foo_monitor.id,
|
|
386
381
|
runbook_url="https://www.example.com")
|
|
387
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
|
382
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
|
388
383
|
guid=foo_alert_condition.entity_guid,
|
|
389
384
|
tags=[
|
|
390
|
-
|
|
391
|
-
key
|
|
392
|
-
values
|
|
385
|
+
{
|
|
386
|
+
"key": "my-key",
|
|
387
|
+
"values": [
|
|
393
388
|
"my-value",
|
|
394
389
|
"my-other-value",
|
|
395
390
|
],
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
key
|
|
399
|
-
values
|
|
400
|
-
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"key": "my-key-2",
|
|
394
|
+
"values": ["my-value-2"],
|
|
395
|
+
},
|
|
401
396
|
])
|
|
402
397
|
```
|
|
403
|
-
<!--End PulumiCodeChooser -->
|
|
404
398
|
|
|
405
399
|
## Import
|
|
406
400
|
|
|
@@ -425,11 +419,11 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
425
419
|
def _internal_init(__self__,
|
|
426
420
|
resource_name: str,
|
|
427
421
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
428
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
429
|
-
monitor_id: Optional[pulumi.Input[str]] = None,
|
|
430
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
431
|
-
policy_id: Optional[pulumi.Input[
|
|
432
|
-
runbook_url: Optional[pulumi.Input[str]] = None,
|
|
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,
|
|
433
427
|
__props__=None):
|
|
434
428
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
435
429
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -459,12 +453,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
459
453
|
def get(resource_name: str,
|
|
460
454
|
id: pulumi.Input[str],
|
|
461
455
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
462
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
463
|
-
entity_guid: Optional[pulumi.Input[str]] = None,
|
|
464
|
-
monitor_id: Optional[pulumi.Input[str]] = None,
|
|
465
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
466
|
-
policy_id: Optional[pulumi.Input[
|
|
467
|
-
runbook_url: Optional[pulumi.Input[str]] = None) -> 'AlertCondition':
|
|
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':
|
|
468
462
|
"""
|
|
469
463
|
Get an existing AlertCondition resource's state with the given name, id, and optional extra
|
|
470
464
|
properties used to qualify the lookup.
|
|
@@ -472,18 +466,16 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
472
466
|
:param str resource_name: The unique name of the resulting resource.
|
|
473
467
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
474
468
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
475
|
-
:param pulumi.Input[bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
469
|
+
:param pulumi.Input[_builtins.bool] enabled: Set whether to enable the alert condition. Defaults to `true`.
|
|
476
470
|
|
|
477
|
-
<!--Start PulumiCodeChooser -->
|
|
478
|
-
```python
|
|
479
|
-
import pulumi
|
|
480
471
|
```
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
:param pulumi.Input[str]
|
|
484
|
-
:param pulumi.Input[str]
|
|
485
|
-
:param pulumi.Input[
|
|
486
|
-
:param pulumi.Input[str]
|
|
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.
|
|
473
|
+
```
|
|
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.
|
|
487
479
|
"""
|
|
488
480
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
489
481
|
|
|
@@ -497,55 +489,53 @@ class AlertCondition(pulumi.CustomResource):
|
|
|
497
489
|
__props__.__dict__["runbook_url"] = runbook_url
|
|
498
490
|
return AlertCondition(resource_name, opts=opts, __props__=__props__)
|
|
499
491
|
|
|
500
|
-
@property
|
|
492
|
+
@_builtins.property
|
|
501
493
|
@pulumi.getter
|
|
502
|
-
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
494
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
503
495
|
"""
|
|
504
496
|
Set whether to enable the alert condition. Defaults to `true`.
|
|
505
497
|
|
|
506
|
-
<!--Start PulumiCodeChooser -->
|
|
507
|
-
```python
|
|
508
|
-
import pulumi
|
|
509
498
|
```
|
|
510
|
-
|
|
499
|
+
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.
|
|
500
|
+
```
|
|
511
501
|
"""
|
|
512
502
|
return pulumi.get(self, "enabled")
|
|
513
503
|
|
|
514
|
-
@property
|
|
504
|
+
@_builtins.property
|
|
515
505
|
@pulumi.getter(name="entityGuid")
|
|
516
|
-
def entity_guid(self) -> pulumi.Output[str]:
|
|
506
|
+
def entity_guid(self) -> pulumi.Output[_builtins.str]:
|
|
517
507
|
"""
|
|
518
508
|
The unique entity identifier of the condition in New Relic.
|
|
519
509
|
"""
|
|
520
510
|
return pulumi.get(self, "entity_guid")
|
|
521
511
|
|
|
522
|
-
@property
|
|
512
|
+
@_builtins.property
|
|
523
513
|
@pulumi.getter(name="monitorId")
|
|
524
|
-
def monitor_id(self) -> pulumi.Output[str]:
|
|
514
|
+
def monitor_id(self) -> pulumi.Output[_builtins.str]:
|
|
525
515
|
"""
|
|
526
516
|
The GUID of the Synthetics monitor to be referenced in the alert condition.
|
|
527
517
|
"""
|
|
528
518
|
return pulumi.get(self, "monitor_id")
|
|
529
519
|
|
|
530
|
-
@property
|
|
520
|
+
@_builtins.property
|
|
531
521
|
@pulumi.getter
|
|
532
|
-
def name(self) -> pulumi.Output[str]:
|
|
522
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
533
523
|
"""
|
|
534
524
|
The title of this condition.
|
|
535
525
|
"""
|
|
536
526
|
return pulumi.get(self, "name")
|
|
537
527
|
|
|
538
|
-
@property
|
|
528
|
+
@_builtins.property
|
|
539
529
|
@pulumi.getter(name="policyId")
|
|
540
|
-
def policy_id(self) -> pulumi.Output[
|
|
530
|
+
def policy_id(self) -> pulumi.Output[_builtins.str]:
|
|
541
531
|
"""
|
|
542
532
|
The ID of the policy where this condition should be used.
|
|
543
533
|
"""
|
|
544
534
|
return pulumi.get(self, "policy_id")
|
|
545
535
|
|
|
546
|
-
@property
|
|
536
|
+
@_builtins.property
|
|
547
537
|
@pulumi.getter(name="runbookUrl")
|
|
548
|
-
def runbook_url(self) -> pulumi.Output[Optional[str]]:
|
|
538
|
+
def runbook_url(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
549
539
|
"""
|
|
550
540
|
Runbook URL to display in notifications.
|
|
551
541
|
"""
|