pulumi-newrelic 5.21.0a1710157101__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 +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.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.21.0a1710157101.dist-info → pulumi_newrelic-5.39.0a1736834464.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.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -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
|
from . import outputs
|
12
17
|
from ._inputs import *
|
@@ -19,9 +24,11 @@ class ScriptMonitorArgs:
|
|
19
24
|
period: pulumi.Input[str],
|
20
25
|
status: pulumi.Input[str],
|
21
26
|
type: pulumi.Input[str],
|
22
|
-
account_id: Optional[pulumi.Input[
|
27
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
28
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
23
29
|
device_orientation: Optional[pulumi.Input[str]] = None,
|
24
30
|
device_type: Optional[pulumi.Input[str]] = None,
|
31
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
25
32
|
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
26
33
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]]] = None,
|
27
34
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -30,38 +37,43 @@ class ScriptMonitorArgs:
|
|
30
37
|
runtime_type_version: Optional[pulumi.Input[str]] = None,
|
31
38
|
script: Optional[pulumi.Input[str]] = None,
|
32
39
|
script_language: Optional[pulumi.Input[str]] = None,
|
33
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]] = None
|
40
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]] = None,
|
41
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None):
|
34
42
|
"""
|
35
43
|
The set of arguments for constructing a ScriptMonitor resource.
|
36
|
-
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
37
|
-
:param pulumi.Input[str] status: The
|
38
|
-
value will soon be removed from the Terraform Provider in an upcoming release. It is highly recommended for users to
|
39
|
-
refrain from using this value and shift to alternatives.
|
44
|
+
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
45
|
+
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
40
46
|
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
41
|
-
:param pulumi.Input[
|
42
|
-
:param pulumi.Input[str]
|
43
|
-
:param pulumi.Input[str]
|
47
|
+
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
48
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
49
|
+
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
50
|
+
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
51
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
44
52
|
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
45
53
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
46
54
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
47
55
|
:param pulumi.Input[str] name: The name for the monitor.
|
48
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
49
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
56
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
57
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
50
58
|
:param pulumi.Input[str] script: The script that the monitor runs.
|
51
59
|
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
52
60
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
53
61
|
|
54
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
62
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
55
63
|
"""
|
56
64
|
pulumi.set(__self__, "period", period)
|
57
65
|
pulumi.set(__self__, "status", status)
|
58
66
|
pulumi.set(__self__, "type", type)
|
59
67
|
if account_id is not None:
|
60
68
|
pulumi.set(__self__, "account_id", account_id)
|
69
|
+
if browsers is not None:
|
70
|
+
pulumi.set(__self__, "browsers", browsers)
|
61
71
|
if device_orientation is not None:
|
62
72
|
pulumi.set(__self__, "device_orientation", device_orientation)
|
63
73
|
if device_type is not None:
|
64
74
|
pulumi.set(__self__, "device_type", device_type)
|
75
|
+
if devices is not None:
|
76
|
+
pulumi.set(__self__, "devices", devices)
|
65
77
|
if enable_screenshot_on_failure_and_script is not None:
|
66
78
|
pulumi.set(__self__, "enable_screenshot_on_failure_and_script", enable_screenshot_on_failure_and_script)
|
67
79
|
if location_privates is not None:
|
@@ -80,12 +92,14 @@ class ScriptMonitorArgs:
|
|
80
92
|
pulumi.set(__self__, "script_language", script_language)
|
81
93
|
if tags is not None:
|
82
94
|
pulumi.set(__self__, "tags", tags)
|
95
|
+
if use_unsupported_legacy_runtime is not None:
|
96
|
+
pulumi.set(__self__, "use_unsupported_legacy_runtime", use_unsupported_legacy_runtime)
|
83
97
|
|
84
98
|
@property
|
85
99
|
@pulumi.getter
|
86
100
|
def period(self) -> pulumi.Input[str]:
|
87
101
|
"""
|
88
|
-
The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
102
|
+
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
89
103
|
"""
|
90
104
|
return pulumi.get(self, "period")
|
91
105
|
|
@@ -97,9 +111,7 @@ class ScriptMonitorArgs:
|
|
97
111
|
@pulumi.getter
|
98
112
|
def status(self) -> pulumi.Input[str]:
|
99
113
|
"""
|
100
|
-
The
|
101
|
-
value will soon be removed from the Terraform Provider in an upcoming release. It is highly recommended for users to
|
102
|
-
refrain from using this value and shift to alternatives.
|
114
|
+
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
103
115
|
"""
|
104
116
|
return pulumi.get(self, "status")
|
105
117
|
|
@@ -121,21 +133,33 @@ class ScriptMonitorArgs:
|
|
121
133
|
|
122
134
|
@property
|
123
135
|
@pulumi.getter(name="accountId")
|
124
|
-
def account_id(self) -> Optional[pulumi.Input[
|
136
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
125
137
|
"""
|
126
138
|
The account in which the Synthetics monitor will be created.
|
127
139
|
"""
|
128
140
|
return pulumi.get(self, "account_id")
|
129
141
|
|
130
142
|
@account_id.setter
|
131
|
-
def account_id(self, value: Optional[pulumi.Input[
|
143
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
132
144
|
pulumi.set(self, "account_id", value)
|
133
145
|
|
146
|
+
@property
|
147
|
+
@pulumi.getter
|
148
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
149
|
+
"""
|
150
|
+
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "browsers")
|
153
|
+
|
154
|
+
@browsers.setter
|
155
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
156
|
+
pulumi.set(self, "browsers", value)
|
157
|
+
|
134
158
|
@property
|
135
159
|
@pulumi.getter(name="deviceOrientation")
|
136
160
|
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
137
161
|
"""
|
138
|
-
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
162
|
+
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
139
163
|
"""
|
140
164
|
return pulumi.get(self, "device_orientation")
|
141
165
|
|
@@ -147,7 +171,7 @@ class ScriptMonitorArgs:
|
|
147
171
|
@pulumi.getter(name="deviceType")
|
148
172
|
def device_type(self) -> Optional[pulumi.Input[str]]:
|
149
173
|
"""
|
150
|
-
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
174
|
+
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
151
175
|
"""
|
152
176
|
return pulumi.get(self, "device_type")
|
153
177
|
|
@@ -155,6 +179,18 @@ class ScriptMonitorArgs:
|
|
155
179
|
def device_type(self, value: Optional[pulumi.Input[str]]):
|
156
180
|
pulumi.set(self, "device_type", value)
|
157
181
|
|
182
|
+
@property
|
183
|
+
@pulumi.getter
|
184
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
185
|
+
"""
|
186
|
+
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
187
|
+
"""
|
188
|
+
return pulumi.get(self, "devices")
|
189
|
+
|
190
|
+
@devices.setter
|
191
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
192
|
+
pulumi.set(self, "devices", value)
|
193
|
+
|
158
194
|
@property
|
159
195
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
160
196
|
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
@@ -207,7 +243,7 @@ class ScriptMonitorArgs:
|
|
207
243
|
@pulumi.getter(name="runtimeType")
|
208
244
|
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
209
245
|
"""
|
210
|
-
The runtime that the monitor will use to run jobs.
|
246
|
+
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
211
247
|
"""
|
212
248
|
return pulumi.get(self, "runtime_type")
|
213
249
|
|
@@ -219,7 +255,7 @@ class ScriptMonitorArgs:
|
|
219
255
|
@pulumi.getter(name="runtimeTypeVersion")
|
220
256
|
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
221
257
|
"""
|
222
|
-
The specific version of the runtime type selected.
|
258
|
+
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
223
259
|
"""
|
224
260
|
return pulumi.get(self, "runtime_type_version")
|
225
261
|
|
@@ -257,7 +293,7 @@ class ScriptMonitorArgs:
|
|
257
293
|
"""
|
258
294
|
The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
259
295
|
|
260
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
296
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
261
297
|
"""
|
262
298
|
return pulumi.get(self, "tags")
|
263
299
|
|
@@ -265,13 +301,24 @@ class ScriptMonitorArgs:
|
|
265
301
|
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]]):
|
266
302
|
pulumi.set(self, "tags", value)
|
267
303
|
|
304
|
+
@property
|
305
|
+
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
306
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
307
|
+
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
308
|
+
|
309
|
+
@use_unsupported_legacy_runtime.setter
|
310
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
311
|
+
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
312
|
+
|
268
313
|
|
269
314
|
@pulumi.input_type
|
270
315
|
class _ScriptMonitorState:
|
271
316
|
def __init__(__self__, *,
|
272
|
-
account_id: Optional[pulumi.Input[
|
317
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
318
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
273
319
|
device_orientation: Optional[pulumi.Input[str]] = None,
|
274
320
|
device_type: Optional[pulumi.Input[str]] = None,
|
321
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
275
322
|
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
276
323
|
guid: Optional[pulumi.Input[str]] = None,
|
277
324
|
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]]] = None,
|
@@ -285,37 +332,42 @@ class _ScriptMonitorState:
|
|
285
332
|
script_language: Optional[pulumi.Input[str]] = None,
|
286
333
|
status: Optional[pulumi.Input[str]] = None,
|
287
334
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]]] = None,
|
288
|
-
type: Optional[pulumi.Input[str]] = None
|
335
|
+
type: Optional[pulumi.Input[str]] = None,
|
336
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None):
|
289
337
|
"""
|
290
338
|
Input properties used for looking up and filtering ScriptMonitor resources.
|
291
|
-
:param pulumi.Input[
|
292
|
-
:param pulumi.Input[str]
|
293
|
-
:param pulumi.Input[str]
|
339
|
+
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
340
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
341
|
+
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
342
|
+
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
343
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
294
344
|
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
295
|
-
:param pulumi.Input[str] guid: The unique identifier
|
345
|
+
:param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
|
296
346
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorLocationPrivateArgs']]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
297
347
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
298
348
|
:param pulumi.Input[str] name: The name for the monitor.
|
299
|
-
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
349
|
+
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
300
350
|
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
301
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
302
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
351
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
352
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
303
353
|
:param pulumi.Input[str] script: The script that the monitor runs.
|
304
354
|
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
305
|
-
:param pulumi.Input[str] status: The
|
306
|
-
value will soon be removed from the Terraform Provider in an upcoming release. It is highly recommended for users to
|
307
|
-
refrain from using this value and shift to alternatives.
|
355
|
+
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
308
356
|
:param pulumi.Input[Sequence[pulumi.Input['ScriptMonitorTagArgs']]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
309
357
|
|
310
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
358
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
311
359
|
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
312
360
|
"""
|
313
361
|
if account_id is not None:
|
314
362
|
pulumi.set(__self__, "account_id", account_id)
|
363
|
+
if browsers is not None:
|
364
|
+
pulumi.set(__self__, "browsers", browsers)
|
315
365
|
if device_orientation is not None:
|
316
366
|
pulumi.set(__self__, "device_orientation", device_orientation)
|
317
367
|
if device_type is not None:
|
318
368
|
pulumi.set(__self__, "device_type", device_type)
|
369
|
+
if devices is not None:
|
370
|
+
pulumi.set(__self__, "devices", devices)
|
319
371
|
if enable_screenshot_on_failure_and_script is not None:
|
320
372
|
pulumi.set(__self__, "enable_screenshot_on_failure_and_script", enable_screenshot_on_failure_and_script)
|
321
373
|
if guid is not None:
|
@@ -344,24 +396,38 @@ class _ScriptMonitorState:
|
|
344
396
|
pulumi.set(__self__, "tags", tags)
|
345
397
|
if type is not None:
|
346
398
|
pulumi.set(__self__, "type", type)
|
399
|
+
if use_unsupported_legacy_runtime is not None:
|
400
|
+
pulumi.set(__self__, "use_unsupported_legacy_runtime", use_unsupported_legacy_runtime)
|
347
401
|
|
348
402
|
@property
|
349
403
|
@pulumi.getter(name="accountId")
|
350
|
-
def account_id(self) -> Optional[pulumi.Input[
|
404
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
351
405
|
"""
|
352
406
|
The account in which the Synthetics monitor will be created.
|
353
407
|
"""
|
354
408
|
return pulumi.get(self, "account_id")
|
355
409
|
|
356
410
|
@account_id.setter
|
357
|
-
def account_id(self, value: Optional[pulumi.Input[
|
411
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
358
412
|
pulumi.set(self, "account_id", value)
|
359
413
|
|
414
|
+
@property
|
415
|
+
@pulumi.getter
|
416
|
+
def browsers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
417
|
+
"""
|
418
|
+
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
419
|
+
"""
|
420
|
+
return pulumi.get(self, "browsers")
|
421
|
+
|
422
|
+
@browsers.setter
|
423
|
+
def browsers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
424
|
+
pulumi.set(self, "browsers", value)
|
425
|
+
|
360
426
|
@property
|
361
427
|
@pulumi.getter(name="deviceOrientation")
|
362
428
|
def device_orientation(self) -> Optional[pulumi.Input[str]]:
|
363
429
|
"""
|
364
|
-
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
430
|
+
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
365
431
|
"""
|
366
432
|
return pulumi.get(self, "device_orientation")
|
367
433
|
|
@@ -373,7 +439,7 @@ class _ScriptMonitorState:
|
|
373
439
|
@pulumi.getter(name="deviceType")
|
374
440
|
def device_type(self) -> Optional[pulumi.Input[str]]:
|
375
441
|
"""
|
376
|
-
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
442
|
+
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
377
443
|
"""
|
378
444
|
return pulumi.get(self, "device_type")
|
379
445
|
|
@@ -381,6 +447,18 @@ class _ScriptMonitorState:
|
|
381
447
|
def device_type(self, value: Optional[pulumi.Input[str]]):
|
382
448
|
pulumi.set(self, "device_type", value)
|
383
449
|
|
450
|
+
@property
|
451
|
+
@pulumi.getter
|
452
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
453
|
+
"""
|
454
|
+
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
455
|
+
"""
|
456
|
+
return pulumi.get(self, "devices")
|
457
|
+
|
458
|
+
@devices.setter
|
459
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
460
|
+
pulumi.set(self, "devices", value)
|
461
|
+
|
384
462
|
@property
|
385
463
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
386
464
|
def enable_screenshot_on_failure_and_script(self) -> Optional[pulumi.Input[bool]]:
|
@@ -397,7 +475,7 @@ class _ScriptMonitorState:
|
|
397
475
|
@pulumi.getter
|
398
476
|
def guid(self) -> Optional[pulumi.Input[str]]:
|
399
477
|
"""
|
400
|
-
The unique identifier
|
478
|
+
The unique entity identifier of the monitor in New Relic.
|
401
479
|
"""
|
402
480
|
return pulumi.get(self, "guid")
|
403
481
|
|
@@ -445,7 +523,7 @@ class _ScriptMonitorState:
|
|
445
523
|
@pulumi.getter
|
446
524
|
def period(self) -> Optional[pulumi.Input[str]]:
|
447
525
|
"""
|
448
|
-
The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
526
|
+
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
449
527
|
"""
|
450
528
|
return pulumi.get(self, "period")
|
451
529
|
|
@@ -469,7 +547,7 @@ class _ScriptMonitorState:
|
|
469
547
|
@pulumi.getter(name="runtimeType")
|
470
548
|
def runtime_type(self) -> Optional[pulumi.Input[str]]:
|
471
549
|
"""
|
472
|
-
The runtime that the monitor will use to run jobs.
|
550
|
+
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
473
551
|
"""
|
474
552
|
return pulumi.get(self, "runtime_type")
|
475
553
|
|
@@ -481,7 +559,7 @@ class _ScriptMonitorState:
|
|
481
559
|
@pulumi.getter(name="runtimeTypeVersion")
|
482
560
|
def runtime_type_version(self) -> Optional[pulumi.Input[str]]:
|
483
561
|
"""
|
484
|
-
The specific version of the runtime type selected.
|
562
|
+
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
485
563
|
"""
|
486
564
|
return pulumi.get(self, "runtime_type_version")
|
487
565
|
|
@@ -517,9 +595,7 @@ class _ScriptMonitorState:
|
|
517
595
|
@pulumi.getter
|
518
596
|
def status(self) -> Optional[pulumi.Input[str]]:
|
519
597
|
"""
|
520
|
-
The
|
521
|
-
value will soon be removed from the Terraform Provider in an upcoming release. It is highly recommended for users to
|
522
|
-
refrain from using this value and shift to alternatives.
|
598
|
+
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
523
599
|
"""
|
524
600
|
return pulumi.get(self, "status")
|
525
601
|
|
@@ -533,7 +609,7 @@ class _ScriptMonitorState:
|
|
533
609
|
"""
|
534
610
|
The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
535
611
|
|
536
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
612
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
537
613
|
"""
|
538
614
|
return pulumi.get(self, "tags")
|
539
615
|
|
@@ -553,17 +629,28 @@ class _ScriptMonitorState:
|
|
553
629
|
def type(self, value: Optional[pulumi.Input[str]]):
|
554
630
|
pulumi.set(self, "type", value)
|
555
631
|
|
632
|
+
@property
|
633
|
+
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
634
|
+
def use_unsupported_legacy_runtime(self) -> Optional[pulumi.Input[bool]]:
|
635
|
+
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
636
|
+
|
637
|
+
@use_unsupported_legacy_runtime.setter
|
638
|
+
def use_unsupported_legacy_runtime(self, value: Optional[pulumi.Input[bool]]):
|
639
|
+
pulumi.set(self, "use_unsupported_legacy_runtime", value)
|
640
|
+
|
556
641
|
|
557
642
|
class ScriptMonitor(pulumi.CustomResource):
|
558
643
|
@overload
|
559
644
|
def __init__(__self__,
|
560
645
|
resource_name: str,
|
561
646
|
opts: Optional[pulumi.ResourceOptions] = None,
|
562
|
-
account_id: Optional[pulumi.Input[
|
647
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
648
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
563
649
|
device_orientation: Optional[pulumi.Input[str]] = None,
|
564
650
|
device_type: Optional[pulumi.Input[str]] = None,
|
651
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
565
652
|
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
566
|
-
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[
|
653
|
+
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
567
654
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
568
655
|
name: Optional[pulumi.Input[str]] = None,
|
569
656
|
period: Optional[pulumi.Input[str]] = None,
|
@@ -572,65 +659,68 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
572
659
|
script: Optional[pulumi.Input[str]] = None,
|
573
660
|
script_language: Optional[pulumi.Input[str]] = None,
|
574
661
|
status: Optional[pulumi.Input[str]] = None,
|
575
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
662
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
576
663
|
type: Optional[pulumi.Input[str]] = None,
|
664
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
577
665
|
__props__=None):
|
578
666
|
"""
|
579
|
-
Use this resource to create update, and delete a Script API or Script Browser Synthetics Monitor in New Relic.
|
580
|
-
|
581
667
|
## Example Usage
|
582
668
|
|
583
669
|
##### Type: `SCRIPT_API`
|
584
670
|
|
585
|
-
<!--Start PulumiCodeChooser -->
|
586
671
|
```python
|
587
672
|
import pulumi
|
588
673
|
import pulumi_newrelic as newrelic
|
589
674
|
|
590
675
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
676
|
+
status="ENABLED",
|
677
|
+
name="script_monitor",
|
678
|
+
type="SCRIPT_API",
|
591
679
|
locations_publics=[
|
592
680
|
"AP_SOUTH_1",
|
593
681
|
"AP_EAST_1",
|
594
682
|
],
|
595
683
|
period="EVERY_6_HOURS",
|
596
|
-
runtime_type="NODE_API",
|
597
|
-
runtime_type_version="16.10",
|
598
684
|
script="console.log('it works!')",
|
599
685
|
script_language="JAVASCRIPT",
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
686
|
+
runtime_type="NODE_API",
|
687
|
+
runtime_type_version="16.10",
|
688
|
+
tags=[{
|
689
|
+
"key": "some_key",
|
690
|
+
"values": ["some_value"],
|
691
|
+
}])
|
606
692
|
```
|
607
|
-
<!--End PulumiCodeChooser -->
|
608
693
|
##### Type: `SCRIPT_BROWSER`
|
609
694
|
|
610
|
-
<!--Start PulumiCodeChooser -->
|
611
695
|
```python
|
612
696
|
import pulumi
|
613
697
|
import pulumi_newrelic as newrelic
|
614
698
|
|
615
699
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
616
|
-
|
700
|
+
status="ENABLED",
|
701
|
+
name="script_monitor",
|
702
|
+
type="SCRIPT_BROWSER",
|
617
703
|
locations_publics=[
|
618
704
|
"AP_SOUTH_1",
|
619
705
|
"AP_EAST_1",
|
620
706
|
],
|
621
707
|
period="EVERY_HOUR",
|
622
|
-
runtime_type="CHROME_BROWSER",
|
623
|
-
runtime_type_version="100",
|
624
708
|
script="$browser.get('https://one.newrelic.com')",
|
709
|
+
runtime_type_version="100",
|
710
|
+
runtime_type="CHROME_BROWSER",
|
625
711
|
script_language="JAVASCRIPT",
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
712
|
+
devices=[
|
713
|
+
"DESKTOP",
|
714
|
+
"MOBILE_PORTRAIT",
|
715
|
+
"TABLET_LANDSCAPE",
|
716
|
+
],
|
717
|
+
browsers=["CHROME"],
|
718
|
+
enable_screenshot_on_failure_and_script=False,
|
719
|
+
tags=[{
|
720
|
+
"key": "some_key",
|
721
|
+
"values": ["some_value"],
|
722
|
+
}])
|
632
723
|
```
|
633
|
-
<!--End PulumiCodeChooser -->
|
634
724
|
See additional examples.
|
635
725
|
|
636
726
|
## Additional Examples
|
@@ -643,61 +733,67 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
643
733
|
|
644
734
|
##### Type: `SCRIPT_API`
|
645
735
|
|
646
|
-
<!--Start PulumiCodeChooser -->
|
647
736
|
```python
|
648
737
|
import pulumi
|
649
738
|
import pulumi_newrelic as newrelic
|
650
739
|
|
651
740
|
location = newrelic.synthetics.PrivateLocation("location",
|
652
741
|
description="Example private location",
|
742
|
+
name="private_location",
|
653
743
|
verified_script_execution=True)
|
654
744
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
655
745
|
status="ENABLED",
|
746
|
+
name="script_monitor",
|
656
747
|
type="SCRIPT_API",
|
657
|
-
location_privates=[
|
658
|
-
guid
|
659
|
-
vse_password
|
660
|
-
|
748
|
+
location_privates=[{
|
749
|
+
"guid": location.id,
|
750
|
+
"vse_password": "secret",
|
751
|
+
}],
|
661
752
|
period="EVERY_6_HOURS",
|
662
753
|
script="console.log('terraform integration test updated')",
|
663
754
|
script_language="JAVASCRIPT",
|
664
755
|
runtime_type="NODE_API",
|
665
756
|
runtime_type_version="16.10",
|
666
|
-
tags=[
|
667
|
-
key
|
668
|
-
values
|
669
|
-
|
757
|
+
tags=[{
|
758
|
+
"key": "some_key",
|
759
|
+
"values": ["some_value"],
|
760
|
+
}])
|
670
761
|
```
|
671
|
-
<!--End PulumiCodeChooser -->
|
672
762
|
##### Type: `SCRIPT_BROWSER`
|
673
763
|
|
674
|
-
<!--Start PulumiCodeChooser -->
|
675
764
|
```python
|
676
765
|
import pulumi
|
677
766
|
import pulumi_newrelic as newrelic
|
678
767
|
|
679
768
|
location = newrelic.synthetics.PrivateLocation("location",
|
680
769
|
description="Test Description",
|
770
|
+
name="private_location",
|
681
771
|
verified_script_execution=True)
|
682
772
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
683
773
|
status="ENABLED",
|
774
|
+
name="script_monitor",
|
684
775
|
type="SCRIPT_BROWSER",
|
685
776
|
period="EVERY_HOUR",
|
686
777
|
script="$browser.get('https://one.newrelic.com')",
|
687
|
-
enable_screenshot_on_failure_and_script=False,
|
688
|
-
location_privates=[newrelic.synthetics.ScriptMonitorLocationPrivateArgs(
|
689
|
-
guid=location.id,
|
690
|
-
vse_password="secret",
|
691
|
-
)],
|
692
778
|
runtime_type_version="100",
|
693
779
|
runtime_type="CHROME_BROWSER",
|
694
780
|
script_language="JAVASCRIPT",
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
781
|
+
devices=[
|
782
|
+
"DESKTOP",
|
783
|
+
"MOBILE_PORTRAIT",
|
784
|
+
"TABLET_LANDSCAPE",
|
785
|
+
],
|
786
|
+
browsers=["CHROME"],
|
787
|
+
enable_screenshot_on_failure_and_script=False,
|
788
|
+
location_privates=[{
|
789
|
+
"guid": location.id,
|
790
|
+
"vse_password": "secret",
|
791
|
+
}],
|
792
|
+
tags=[{
|
793
|
+
"key": "some_key",
|
794
|
+
"values": ["some_value"],
|
795
|
+
}])
|
699
796
|
```
|
700
|
-
<!--End PulumiCodeChooser -->
|
701
797
|
|
702
798
|
## Import
|
703
799
|
|
@@ -711,24 +807,24 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
711
807
|
|
712
808
|
:param str resource_name: The name of the resource.
|
713
809
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
714
|
-
:param pulumi.Input[
|
715
|
-
:param pulumi.Input[str]
|
716
|
-
:param pulumi.Input[str]
|
810
|
+
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
811
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
812
|
+
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
813
|
+
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
814
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
717
815
|
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
718
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
816
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
719
817
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
720
818
|
:param pulumi.Input[str] name: The name for the monitor.
|
721
|
-
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
722
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
723
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
819
|
+
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
820
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
821
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
724
822
|
:param pulumi.Input[str] script: The script that the monitor runs.
|
725
823
|
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
726
|
-
:param pulumi.Input[str] status: The
|
727
|
-
|
728
|
-
refrain from using this value and shift to alternatives.
|
729
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScriptMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
824
|
+
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
825
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
730
826
|
|
731
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
827
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
732
828
|
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
733
829
|
"""
|
734
830
|
...
|
@@ -738,61 +834,63 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
738
834
|
args: ScriptMonitorArgs,
|
739
835
|
opts: Optional[pulumi.ResourceOptions] = None):
|
740
836
|
"""
|
741
|
-
Use this resource to create update, and delete a Script API or Script Browser Synthetics Monitor in New Relic.
|
742
|
-
|
743
837
|
## Example Usage
|
744
838
|
|
745
839
|
##### Type: `SCRIPT_API`
|
746
840
|
|
747
|
-
<!--Start PulumiCodeChooser -->
|
748
841
|
```python
|
749
842
|
import pulumi
|
750
843
|
import pulumi_newrelic as newrelic
|
751
844
|
|
752
845
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
846
|
+
status="ENABLED",
|
847
|
+
name="script_monitor",
|
848
|
+
type="SCRIPT_API",
|
753
849
|
locations_publics=[
|
754
850
|
"AP_SOUTH_1",
|
755
851
|
"AP_EAST_1",
|
756
852
|
],
|
757
853
|
period="EVERY_6_HOURS",
|
758
|
-
runtime_type="NODE_API",
|
759
|
-
runtime_type_version="16.10",
|
760
854
|
script="console.log('it works!')",
|
761
855
|
script_language="JAVASCRIPT",
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
856
|
+
runtime_type="NODE_API",
|
857
|
+
runtime_type_version="16.10",
|
858
|
+
tags=[{
|
859
|
+
"key": "some_key",
|
860
|
+
"values": ["some_value"],
|
861
|
+
}])
|
768
862
|
```
|
769
|
-
<!--End PulumiCodeChooser -->
|
770
863
|
##### Type: `SCRIPT_BROWSER`
|
771
864
|
|
772
|
-
<!--Start PulumiCodeChooser -->
|
773
865
|
```python
|
774
866
|
import pulumi
|
775
867
|
import pulumi_newrelic as newrelic
|
776
868
|
|
777
869
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
778
|
-
|
870
|
+
status="ENABLED",
|
871
|
+
name="script_monitor",
|
872
|
+
type="SCRIPT_BROWSER",
|
779
873
|
locations_publics=[
|
780
874
|
"AP_SOUTH_1",
|
781
875
|
"AP_EAST_1",
|
782
876
|
],
|
783
877
|
period="EVERY_HOUR",
|
784
|
-
runtime_type="CHROME_BROWSER",
|
785
|
-
runtime_type_version="100",
|
786
878
|
script="$browser.get('https://one.newrelic.com')",
|
879
|
+
runtime_type_version="100",
|
880
|
+
runtime_type="CHROME_BROWSER",
|
787
881
|
script_language="JAVASCRIPT",
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
882
|
+
devices=[
|
883
|
+
"DESKTOP",
|
884
|
+
"MOBILE_PORTRAIT",
|
885
|
+
"TABLET_LANDSCAPE",
|
886
|
+
],
|
887
|
+
browsers=["CHROME"],
|
888
|
+
enable_screenshot_on_failure_and_script=False,
|
889
|
+
tags=[{
|
890
|
+
"key": "some_key",
|
891
|
+
"values": ["some_value"],
|
892
|
+
}])
|
794
893
|
```
|
795
|
-
<!--End PulumiCodeChooser -->
|
796
894
|
See additional examples.
|
797
895
|
|
798
896
|
## Additional Examples
|
@@ -805,61 +903,67 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
805
903
|
|
806
904
|
##### Type: `SCRIPT_API`
|
807
905
|
|
808
|
-
<!--Start PulumiCodeChooser -->
|
809
906
|
```python
|
810
907
|
import pulumi
|
811
908
|
import pulumi_newrelic as newrelic
|
812
909
|
|
813
910
|
location = newrelic.synthetics.PrivateLocation("location",
|
814
911
|
description="Example private location",
|
912
|
+
name="private_location",
|
815
913
|
verified_script_execution=True)
|
816
914
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
817
915
|
status="ENABLED",
|
916
|
+
name="script_monitor",
|
818
917
|
type="SCRIPT_API",
|
819
|
-
location_privates=[
|
820
|
-
guid
|
821
|
-
vse_password
|
822
|
-
|
918
|
+
location_privates=[{
|
919
|
+
"guid": location.id,
|
920
|
+
"vse_password": "secret",
|
921
|
+
}],
|
823
922
|
period="EVERY_6_HOURS",
|
824
923
|
script="console.log('terraform integration test updated')",
|
825
924
|
script_language="JAVASCRIPT",
|
826
925
|
runtime_type="NODE_API",
|
827
926
|
runtime_type_version="16.10",
|
828
|
-
tags=[
|
829
|
-
key
|
830
|
-
values
|
831
|
-
|
927
|
+
tags=[{
|
928
|
+
"key": "some_key",
|
929
|
+
"values": ["some_value"],
|
930
|
+
}])
|
832
931
|
```
|
833
|
-
<!--End PulumiCodeChooser -->
|
834
932
|
##### Type: `SCRIPT_BROWSER`
|
835
933
|
|
836
|
-
<!--Start PulumiCodeChooser -->
|
837
934
|
```python
|
838
935
|
import pulumi
|
839
936
|
import pulumi_newrelic as newrelic
|
840
937
|
|
841
938
|
location = newrelic.synthetics.PrivateLocation("location",
|
842
939
|
description="Test Description",
|
940
|
+
name="private_location",
|
843
941
|
verified_script_execution=True)
|
844
942
|
monitor = newrelic.synthetics.ScriptMonitor("monitor",
|
845
943
|
status="ENABLED",
|
944
|
+
name="script_monitor",
|
846
945
|
type="SCRIPT_BROWSER",
|
847
946
|
period="EVERY_HOUR",
|
848
947
|
script="$browser.get('https://one.newrelic.com')",
|
849
|
-
enable_screenshot_on_failure_and_script=False,
|
850
|
-
location_privates=[newrelic.synthetics.ScriptMonitorLocationPrivateArgs(
|
851
|
-
guid=location.id,
|
852
|
-
vse_password="secret",
|
853
|
-
)],
|
854
948
|
runtime_type_version="100",
|
855
949
|
runtime_type="CHROME_BROWSER",
|
856
950
|
script_language="JAVASCRIPT",
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
951
|
+
devices=[
|
952
|
+
"DESKTOP",
|
953
|
+
"MOBILE_PORTRAIT",
|
954
|
+
"TABLET_LANDSCAPE",
|
955
|
+
],
|
956
|
+
browsers=["CHROME"],
|
957
|
+
enable_screenshot_on_failure_and_script=False,
|
958
|
+
location_privates=[{
|
959
|
+
"guid": location.id,
|
960
|
+
"vse_password": "secret",
|
961
|
+
}],
|
962
|
+
tags=[{
|
963
|
+
"key": "some_key",
|
964
|
+
"values": ["some_value"],
|
965
|
+
}])
|
861
966
|
```
|
862
|
-
<!--End PulumiCodeChooser -->
|
863
967
|
|
864
968
|
## Import
|
865
969
|
|
@@ -886,11 +990,13 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
886
990
|
def _internal_init(__self__,
|
887
991
|
resource_name: str,
|
888
992
|
opts: Optional[pulumi.ResourceOptions] = None,
|
889
|
-
account_id: Optional[pulumi.Input[
|
993
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
994
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
890
995
|
device_orientation: Optional[pulumi.Input[str]] = None,
|
891
996
|
device_type: Optional[pulumi.Input[str]] = None,
|
997
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
892
998
|
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
893
|
-
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[
|
999
|
+
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
894
1000
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
895
1001
|
name: Optional[pulumi.Input[str]] = None,
|
896
1002
|
period: Optional[pulumi.Input[str]] = None,
|
@@ -899,8 +1005,9 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
899
1005
|
script: Optional[pulumi.Input[str]] = None,
|
900
1006
|
script_language: Optional[pulumi.Input[str]] = None,
|
901
1007
|
status: Optional[pulumi.Input[str]] = None,
|
902
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
1008
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
903
1009
|
type: Optional[pulumi.Input[str]] = None,
|
1010
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None,
|
904
1011
|
__props__=None):
|
905
1012
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
906
1013
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -911,8 +1018,10 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
911
1018
|
__props__ = ScriptMonitorArgs.__new__(ScriptMonitorArgs)
|
912
1019
|
|
913
1020
|
__props__.__dict__["account_id"] = account_id
|
1021
|
+
__props__.__dict__["browsers"] = browsers
|
914
1022
|
__props__.__dict__["device_orientation"] = device_orientation
|
915
1023
|
__props__.__dict__["device_type"] = device_type
|
1024
|
+
__props__.__dict__["devices"] = devices
|
916
1025
|
__props__.__dict__["enable_screenshot_on_failure_and_script"] = enable_screenshot_on_failure_and_script
|
917
1026
|
__props__.__dict__["location_privates"] = location_privates
|
918
1027
|
__props__.__dict__["locations_publics"] = locations_publics
|
@@ -931,6 +1040,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
931
1040
|
if type is None and not opts.urn:
|
932
1041
|
raise TypeError("Missing required property 'type'")
|
933
1042
|
__props__.__dict__["type"] = type
|
1043
|
+
__props__.__dict__["use_unsupported_legacy_runtime"] = use_unsupported_legacy_runtime
|
934
1044
|
__props__.__dict__["guid"] = None
|
935
1045
|
__props__.__dict__["period_in_minutes"] = None
|
936
1046
|
super(ScriptMonitor, __self__).__init__(
|
@@ -943,12 +1053,14 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
943
1053
|
def get(resource_name: str,
|
944
1054
|
id: pulumi.Input[str],
|
945
1055
|
opts: Optional[pulumi.ResourceOptions] = None,
|
946
|
-
account_id: Optional[pulumi.Input[
|
1056
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
1057
|
+
browsers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
947
1058
|
device_orientation: Optional[pulumi.Input[str]] = None,
|
948
1059
|
device_type: Optional[pulumi.Input[str]] = None,
|
1060
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
949
1061
|
enable_screenshot_on_failure_and_script: Optional[pulumi.Input[bool]] = None,
|
950
1062
|
guid: Optional[pulumi.Input[str]] = None,
|
951
|
-
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[
|
1063
|
+
location_privates: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]]] = None,
|
952
1064
|
locations_publics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
953
1065
|
name: Optional[pulumi.Input[str]] = None,
|
954
1066
|
period: Optional[pulumi.Input[str]] = None,
|
@@ -958,8 +1070,9 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
958
1070
|
script: Optional[pulumi.Input[str]] = None,
|
959
1071
|
script_language: Optional[pulumi.Input[str]] = None,
|
960
1072
|
status: Optional[pulumi.Input[str]] = None,
|
961
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
962
|
-
type: Optional[pulumi.Input[str]] = None
|
1073
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]]] = None,
|
1074
|
+
type: Optional[pulumi.Input[str]] = None,
|
1075
|
+
use_unsupported_legacy_runtime: Optional[pulumi.Input[bool]] = None) -> 'ScriptMonitor':
|
963
1076
|
"""
|
964
1077
|
Get an existing ScriptMonitor resource's state with the given name, id, and optional extra
|
965
1078
|
properties used to qualify the lookup.
|
@@ -967,26 +1080,26 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
967
1080
|
:param str resource_name: The unique name of the resulting resource.
|
968
1081
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
969
1082
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
970
|
-
:param pulumi.Input[
|
971
|
-
:param pulumi.Input[str]
|
972
|
-
:param pulumi.Input[str]
|
1083
|
+
:param pulumi.Input[str] account_id: The account in which the Synthetics monitor will be created.
|
1084
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] browsers: The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1085
|
+
:param pulumi.Input[str] device_orientation: Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1086
|
+
:param pulumi.Input[str] device_type: Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1087
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
973
1088
|
:param pulumi.Input[bool] enable_screenshot_on_failure_and_script: Capture a screenshot during job execution.
|
974
|
-
:param pulumi.Input[str] guid: The unique identifier
|
975
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
1089
|
+
:param pulumi.Input[str] guid: The unique entity identifier of the monitor in New Relic.
|
1090
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorLocationPrivateArgs', 'ScriptMonitorLocationPrivateArgsDict']]]] location_privates: The location the monitor will run from. See Nested location_private blocks below for details. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
976
1091
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations_publics: The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locations_public` **or** `location_private` **is required**.
|
977
1092
|
:param pulumi.Input[str] name: The name for the monitor.
|
978
|
-
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
1093
|
+
:param pulumi.Input[str] period: The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
979
1094
|
:param pulumi.Input[int] period_in_minutes: The interval in minutes at which Synthetic monitor should run.
|
980
|
-
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs.
|
981
|
-
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected.
|
1095
|
+
:param pulumi.Input[str] runtime_type: The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
1096
|
+
:param pulumi.Input[str] runtime_type_version: The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
982
1097
|
:param pulumi.Input[str] script: The script that the monitor runs.
|
983
1098
|
:param pulumi.Input[str] script_language: The programing language that should execute the script.
|
984
|
-
:param pulumi.Input[str] status: The
|
985
|
-
|
986
|
-
refrain from using this value and shift to alternatives.
|
987
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScriptMonitorTagArgs']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
1099
|
+
:param pulumi.Input[str] status: The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1100
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ScriptMonitorTagArgs', 'ScriptMonitorTagArgsDict']]]] tags: The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
988
1101
|
|
989
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
1102
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
990
1103
|
:param pulumi.Input[str] type: The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
|
991
1104
|
"""
|
992
1105
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -994,8 +1107,10 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
994
1107
|
__props__ = _ScriptMonitorState.__new__(_ScriptMonitorState)
|
995
1108
|
|
996
1109
|
__props__.__dict__["account_id"] = account_id
|
1110
|
+
__props__.__dict__["browsers"] = browsers
|
997
1111
|
__props__.__dict__["device_orientation"] = device_orientation
|
998
1112
|
__props__.__dict__["device_type"] = device_type
|
1113
|
+
__props__.__dict__["devices"] = devices
|
999
1114
|
__props__.__dict__["enable_screenshot_on_failure_and_script"] = enable_screenshot_on_failure_and_script
|
1000
1115
|
__props__.__dict__["guid"] = guid
|
1001
1116
|
__props__.__dict__["location_privates"] = location_privates
|
@@ -1010,21 +1125,30 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1010
1125
|
__props__.__dict__["status"] = status
|
1011
1126
|
__props__.__dict__["tags"] = tags
|
1012
1127
|
__props__.__dict__["type"] = type
|
1128
|
+
__props__.__dict__["use_unsupported_legacy_runtime"] = use_unsupported_legacy_runtime
|
1013
1129
|
return ScriptMonitor(resource_name, opts=opts, __props__=__props__)
|
1014
1130
|
|
1015
1131
|
@property
|
1016
1132
|
@pulumi.getter(name="accountId")
|
1017
|
-
def account_id(self) -> pulumi.Output[
|
1133
|
+
def account_id(self) -> pulumi.Output[str]:
|
1018
1134
|
"""
|
1019
1135
|
The account in which the Synthetics monitor will be created.
|
1020
1136
|
"""
|
1021
1137
|
return pulumi.get(self, "account_id")
|
1022
1138
|
|
1139
|
+
@property
|
1140
|
+
@pulumi.getter
|
1141
|
+
def browsers(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1142
|
+
"""
|
1143
|
+
The multiple browsers list on which synthetic monitors will run. Valid values are `CHROME` and `FIREFOX`.
|
1144
|
+
"""
|
1145
|
+
return pulumi.get(self, "browsers")
|
1146
|
+
|
1023
1147
|
@property
|
1024
1148
|
@pulumi.getter(name="deviceOrientation")
|
1025
1149
|
def device_orientation(self) -> pulumi.Output[Optional[str]]:
|
1026
1150
|
"""
|
1027
|
-
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
|
1151
|
+
Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1028
1152
|
"""
|
1029
1153
|
return pulumi.get(self, "device_orientation")
|
1030
1154
|
|
@@ -1032,10 +1156,18 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1032
1156
|
@pulumi.getter(name="deviceType")
|
1033
1157
|
def device_type(self) -> pulumi.Output[Optional[str]]:
|
1034
1158
|
"""
|
1035
|
-
Device emulation type field. Valid values are `MOBILE` and `TABLET`.
|
1159
|
+
Device emulation type field. Valid values are `MOBILE` and `TABLET`. We recommend you to use `devices` field instead of `device_type`,`device_orientation` fields, as it allows you to select multiple combinations of device types and orientations.
|
1036
1160
|
"""
|
1037
1161
|
return pulumi.get(self, "device_type")
|
1038
1162
|
|
1163
|
+
@property
|
1164
|
+
@pulumi.getter
|
1165
|
+
def devices(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1166
|
+
"""
|
1167
|
+
The multiple devices list on which synthetic monitors will run. Valid values are `DESKTOP`, `MOBILE_LANDSCAPE`, `MOBILE_PORTRAIT`, `TABLET_LANDSCAPE` and `TABLET_PORTRAIT`.
|
1168
|
+
"""
|
1169
|
+
return pulumi.get(self, "devices")
|
1170
|
+
|
1039
1171
|
@property
|
1040
1172
|
@pulumi.getter(name="enableScreenshotOnFailureAndScript")
|
1041
1173
|
def enable_screenshot_on_failure_and_script(self) -> pulumi.Output[Optional[bool]]:
|
@@ -1048,7 +1180,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1048
1180
|
@pulumi.getter
|
1049
1181
|
def guid(self) -> pulumi.Output[str]:
|
1050
1182
|
"""
|
1051
|
-
The unique identifier
|
1183
|
+
The unique entity identifier of the monitor in New Relic.
|
1052
1184
|
"""
|
1053
1185
|
return pulumi.get(self, "guid")
|
1054
1186
|
|
@@ -1080,7 +1212,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1080
1212
|
@pulumi.getter
|
1081
1213
|
def period(self) -> pulumi.Output[str]:
|
1082
1214
|
"""
|
1083
|
-
The interval at which this monitor should run. Valid values are EVERY_MINUTE
|
1215
|
+
The interval at which this monitor should run. Valid values are `EVERY_MINUTE`, `EVERY_5_MINUTES`, `EVERY_10_MINUTES`, `EVERY_15_MINUTES`, `EVERY_30_MINUTES`, `EVERY_HOUR`, `EVERY_6_HOURS`, `EVERY_12_HOURS`, or `EVERY_DAY`.
|
1084
1216
|
"""
|
1085
1217
|
return pulumi.get(self, "period")
|
1086
1218
|
|
@@ -1096,7 +1228,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1096
1228
|
@pulumi.getter(name="runtimeType")
|
1097
1229
|
def runtime_type(self) -> pulumi.Output[Optional[str]]:
|
1098
1230
|
"""
|
1099
|
-
The runtime that the monitor will use to run jobs.
|
1231
|
+
The runtime that the monitor will use to run jobs. For the `SCRIPT_API` monitor type, a valid value is `NODE_API`. For the `SCRIPT_BROWSER` monitor type, a valid value is `CHROME_BROWSER`.
|
1100
1232
|
"""
|
1101
1233
|
return pulumi.get(self, "runtime_type")
|
1102
1234
|
|
@@ -1104,7 +1236,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1104
1236
|
@pulumi.getter(name="runtimeTypeVersion")
|
1105
1237
|
def runtime_type_version(self) -> pulumi.Output[Optional[str]]:
|
1106
1238
|
"""
|
1107
|
-
The specific version of the runtime type selected.
|
1239
|
+
The specific version of the runtime type selected. For the `SCRIPT_API` monitor type, a valid value is `16.10`, which corresponds to the version of Node.js. For the `SCRIPT_BROWSER` monitor type, a valid value is `100`, which corresponds to the version of the Chrome browser.
|
1108
1240
|
"""
|
1109
1241
|
return pulumi.get(self, "runtime_type_version")
|
1110
1242
|
|
@@ -1128,9 +1260,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1128
1260
|
@pulumi.getter
|
1129
1261
|
def status(self) -> pulumi.Output[str]:
|
1130
1262
|
"""
|
1131
|
-
The
|
1132
|
-
value will soon be removed from the Terraform Provider in an upcoming release. It is highly recommended for users to
|
1133
|
-
refrain from using this value and shift to alternatives.
|
1263
|
+
The run state of the monitor. (`ENABLED` or `DISABLED`).
|
1134
1264
|
"""
|
1135
1265
|
return pulumi.get(self, "status")
|
1136
1266
|
|
@@ -1140,7 +1270,7 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1140
1270
|
"""
|
1141
1271
|
The tags that will be associated with the monitor. See Nested tag blocks below for details.
|
1142
1272
|
|
1143
|
-
The `SCRIPTED_BROWSER` monitor type supports the following additional
|
1273
|
+
The `SCRIPTED_BROWSER` monitor type supports the following additional arguments:
|
1144
1274
|
"""
|
1145
1275
|
return pulumi.get(self, "tags")
|
1146
1276
|
|
@@ -1152,3 +1282,8 @@ class ScriptMonitor(pulumi.CustomResource):
|
|
1152
1282
|
"""
|
1153
1283
|
return pulumi.get(self, "type")
|
1154
1284
|
|
1285
|
+
@property
|
1286
|
+
@pulumi.getter(name="useUnsupportedLegacyRuntime")
|
1287
|
+
def use_unsupported_legacy_runtime(self) -> pulumi.Output[Optional[bool]]:
|
1288
|
+
return pulumi.get(self, "use_unsupported_legacy_runtime")
|
1289
|
+
|