pulumi-newrelic 5.20.0a1709643785__py3-none-any.whl → 5.39.0a1736834464__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_newrelic/__init__.py +9 -0
- pulumi_newrelic/_inputs.py +7153 -461
- pulumi_newrelic/_utilities.py +41 -5
- pulumi_newrelic/account_management.py +13 -4
- pulumi_newrelic/alert_channel.py +122 -101
- pulumi_newrelic/alert_condition.py +120 -109
- pulumi_newrelic/alert_muting_rule.py +130 -74
- pulumi_newrelic/alert_policy.py +88 -67
- pulumi_newrelic/alert_policy_channel.py +81 -68
- pulumi_newrelic/api_access_key.py +49 -52
- pulumi_newrelic/browser_application.py +79 -76
- pulumi_newrelic/cloud/_inputs.py +2527 -1082
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +135 -130
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +25 -18
- pulumi_newrelic/cloud/aws_integrations.py +300 -1324
- pulumi_newrelic/cloud/aws_link_account.py +25 -18
- pulumi_newrelic/cloud/azure_integrations.py +523 -481
- pulumi_newrelic/cloud/azure_link_account.py +36 -29
- pulumi_newrelic/cloud/gcp_integrations.py +343 -320
- pulumi_newrelic/cloud/gcp_link_account.py +25 -18
- pulumi_newrelic/cloud/outputs.py +327 -1072
- pulumi_newrelic/config/__init__.pyi +6 -1
- pulumi_newrelic/config/vars.py +7 -2
- pulumi_newrelic/data_partition_rule.py +23 -16
- pulumi_newrelic/entity_tags.py +36 -31
- pulumi_newrelic/events_to_metrics_rule.py +27 -20
- pulumi_newrelic/get_account.py +24 -12
- pulumi_newrelic/get_alert_channel.py +26 -13
- pulumi_newrelic/get_alert_policy.py +35 -12
- pulumi_newrelic/get_application.py +39 -27
- pulumi_newrelic/get_authentication_domain.py +17 -9
- pulumi_newrelic/get_cloud_account.py +26 -14
- pulumi_newrelic/get_entity.py +90 -85
- pulumi_newrelic/get_group.py +58 -9
- pulumi_newrelic/get_key_transaction.py +109 -30
- pulumi_newrelic/get_notification_destination.py +64 -14
- pulumi_newrelic/get_obfuscation_expression.py +36 -24
- pulumi_newrelic/get_service_level_alert_helper.py +135 -105
- pulumi_newrelic/get_test_grok_pattern.py +29 -14
- pulumi_newrelic/get_user.py +17 -5
- pulumi_newrelic/group.py +5 -132
- pulumi_newrelic/infra_alert_condition.py +157 -140
- pulumi_newrelic/insights/_inputs.py +43 -0
- pulumi_newrelic/insights/event.py +50 -43
- pulumi_newrelic/insights/outputs.py +5 -0
- pulumi_newrelic/key_transaction.py +464 -0
- pulumi_newrelic/log_parsing_rule.py +29 -18
- pulumi_newrelic/monitor_downtime.py +215 -203
- pulumi_newrelic/notification_channel.py +387 -326
- pulumi_newrelic/notification_destination.py +248 -118
- pulumi_newrelic/nrql_alert_condition.py +353 -246
- pulumi_newrelic/nrql_drop_rule.py +57 -30
- pulumi_newrelic/obfuscation_expression.py +25 -18
- pulumi_newrelic/obfuscation_rule.py +40 -31
- pulumi_newrelic/one_dashboard.py +31 -26
- pulumi_newrelic/one_dashboard_json.py +21 -16
- pulumi_newrelic/one_dashboard_raw.py +112 -101
- pulumi_newrelic/outputs.py +2446 -245
- pulumi_newrelic/plugins/_inputs.py +145 -10
- pulumi_newrelic/plugins/application_settings.py +29 -20
- pulumi_newrelic/plugins/outputs.py +15 -10
- pulumi_newrelic/plugins/workload.py +285 -54
- pulumi_newrelic/provider.py +27 -33
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +193 -180
- pulumi_newrelic/synthetics/_inputs.py +159 -2
- pulumi_newrelic/synthetics/alert_condition.py +91 -78
- pulumi_newrelic/synthetics/broken_links_monitor.py +220 -93
- pulumi_newrelic/synthetics/cert_check_monitor.py +223 -94
- pulumi_newrelic/synthetics/get_private_location.py +34 -22
- pulumi_newrelic/synthetics/get_secure_credential.py +24 -12
- pulumi_newrelic/synthetics/monitor.py +352 -179
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +109 -96
- pulumi_newrelic/synthetics/outputs.py +7 -2
- pulumi_newrelic/synthetics/private_location.py +27 -18
- pulumi_newrelic/synthetics/script_monitor.py +321 -168
- pulumi_newrelic/synthetics/secure_credential.py +25 -20
- pulumi_newrelic/synthetics/step_monitor.py +409 -98
- pulumi_newrelic/user.py +13 -6
- pulumi_newrelic/workflow.py +215 -184
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/METADATA +7 -6
- pulumi_newrelic-5.39.0a1736834464.dist-info/RECORD +90 -0
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.20.0a1709643785.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.20.0a1709643785.dist-info → pulumi_newrelic-5.39.0a1736834464.dist-info}/top_level.txt +0 -0
@@ -4,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 *
|
@@ -20,7 +25,7 @@ class MonitorDowntimeArgs:
|
|
20
25
|
mode: pulumi.Input[str],
|
21
26
|
start_time: pulumi.Input[str],
|
22
27
|
time_zone: pulumi.Input[str],
|
23
|
-
account_id: Optional[pulumi.Input[
|
28
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
24
29
|
end_repeat: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']] = None,
|
25
30
|
frequency: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']] = None,
|
26
31
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -28,18 +33,17 @@ class MonitorDowntimeArgs:
|
|
28
33
|
name: Optional[pulumi.Input[str]] = None):
|
29
34
|
"""
|
30
35
|
The set of arguments for constructing a MonitorDowntime resource.
|
31
|
-
:param pulumi.Input[str] end_time:
|
32
|
-
:param pulumi.Input[str] mode:
|
33
|
-
:param pulumi.Input[str] start_time:
|
36
|
+
:param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
|
37
|
+
:param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
|
38
|
+
:param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
|
34
39
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
35
|
-
:param pulumi.Input[
|
36
|
-
|
37
|
-
:param pulumi.Input['
|
38
|
-
:param pulumi.Input[
|
39
|
-
|
40
|
-
|
41
|
-
:param pulumi.Input[
|
42
|
-
:param pulumi.Input[str] name: Name of the monitor downtime to be created.
|
40
|
+
:param pulumi.Input[str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
41
|
+
provider{} configuration if not specified.
|
42
|
+
:param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
43
|
+
:param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
|
44
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
|
45
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
46
|
+
:param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
|
43
47
|
"""
|
44
48
|
pulumi.set(__self__, "end_time", end_time)
|
45
49
|
pulumi.set(__self__, "mode", mode)
|
@@ -62,7 +66,7 @@ class MonitorDowntimeArgs:
|
|
62
66
|
@pulumi.getter(name="endTime")
|
63
67
|
def end_time(self) -> pulumi.Input[str]:
|
64
68
|
"""
|
65
|
-
|
69
|
+
A datetime stamp signifying the end of the Monitor Downtime.
|
66
70
|
"""
|
67
71
|
return pulumi.get(self, "end_time")
|
68
72
|
|
@@ -74,7 +78,7 @@ class MonitorDowntimeArgs:
|
|
74
78
|
@pulumi.getter
|
75
79
|
def mode(self) -> pulumi.Input[str]:
|
76
80
|
"""
|
77
|
-
|
81
|
+
An identifier of the type of Monitor Downtime to be created.
|
78
82
|
"""
|
79
83
|
return pulumi.get(self, "mode")
|
80
84
|
|
@@ -86,7 +90,7 @@ class MonitorDowntimeArgs:
|
|
86
90
|
@pulumi.getter(name="startTime")
|
87
91
|
def start_time(self) -> pulumi.Input[str]:
|
88
92
|
"""
|
89
|
-
|
93
|
+
A datetime stamp signifying the start of the Monitor Downtime.
|
90
94
|
"""
|
91
95
|
return pulumi.get(self, "start_time")
|
92
96
|
|
@@ -108,21 +112,22 @@ class MonitorDowntimeArgs:
|
|
108
112
|
|
109
113
|
@property
|
110
114
|
@pulumi.getter(name="accountId")
|
111
|
-
def account_id(self) -> Optional[pulumi.Input[
|
115
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
112
116
|
"""
|
113
|
-
The account in which the
|
117
|
+
The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
118
|
+
provider{} configuration if not specified.
|
114
119
|
"""
|
115
120
|
return pulumi.get(self, "account_id")
|
116
121
|
|
117
122
|
@account_id.setter
|
118
|
-
def account_id(self, value: Optional[pulumi.Input[
|
123
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
119
124
|
pulumi.set(self, "account_id", value)
|
120
125
|
|
121
126
|
@property
|
122
127
|
@pulumi.getter(name="endRepeat")
|
123
128
|
def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
|
124
129
|
"""
|
125
|
-
|
130
|
+
A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
126
131
|
"""
|
127
132
|
return pulumi.get(self, "end_repeat")
|
128
133
|
|
@@ -134,7 +139,7 @@ class MonitorDowntimeArgs:
|
|
134
139
|
@pulumi.getter
|
135
140
|
def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
|
136
141
|
"""
|
137
|
-
|
142
|
+
Configuration options for which days of the month a monitor downtime will occur
|
138
143
|
"""
|
139
144
|
return pulumi.get(self, "frequency")
|
140
145
|
|
@@ -146,9 +151,7 @@ class MonitorDowntimeArgs:
|
|
146
151
|
@pulumi.getter(name="maintenanceDays")
|
147
152
|
def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
148
153
|
"""
|
149
|
-
A list of days
|
150
|
-
|
151
|
-
> **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
|
154
|
+
A list of maintenance days to be included with the created weekly Monitor Downtime.
|
152
155
|
"""
|
153
156
|
return pulumi.get(self, "maintenance_days")
|
154
157
|
|
@@ -160,7 +163,7 @@ class MonitorDowntimeArgs:
|
|
160
163
|
@pulumi.getter(name="monitorGuids")
|
161
164
|
def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
162
165
|
"""
|
163
|
-
A list of GUIDs of
|
166
|
+
A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
164
167
|
"""
|
165
168
|
return pulumi.get(self, "monitor_guids")
|
166
169
|
|
@@ -172,7 +175,7 @@ class MonitorDowntimeArgs:
|
|
172
175
|
@pulumi.getter
|
173
176
|
def name(self) -> Optional[pulumi.Input[str]]:
|
174
177
|
"""
|
175
|
-
|
178
|
+
A name to identify the Monitor Downtime to be created.
|
176
179
|
"""
|
177
180
|
return pulumi.get(self, "name")
|
178
181
|
|
@@ -184,7 +187,7 @@ class MonitorDowntimeArgs:
|
|
184
187
|
@pulumi.input_type
|
185
188
|
class _MonitorDowntimeState:
|
186
189
|
def __init__(__self__, *,
|
187
|
-
account_id: Optional[pulumi.Input[
|
190
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
188
191
|
end_repeat: Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']] = None,
|
189
192
|
end_time: Optional[pulumi.Input[str]] = None,
|
190
193
|
frequency: Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']] = None,
|
@@ -196,17 +199,16 @@ class _MonitorDowntimeState:
|
|
196
199
|
time_zone: Optional[pulumi.Input[str]] = None):
|
197
200
|
"""
|
198
201
|
Input properties used for looking up and filtering MonitorDowntime resources.
|
199
|
-
:param pulumi.Input[
|
200
|
-
|
201
|
-
:param pulumi.Input[
|
202
|
-
:param pulumi.Input[
|
203
|
-
:param pulumi.Input[
|
204
|
-
|
205
|
-
|
206
|
-
:param pulumi.Input[str]
|
207
|
-
:param pulumi.Input[
|
208
|
-
:param pulumi.Input[str]
|
209
|
-
:param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
|
202
|
+
:param pulumi.Input[str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
203
|
+
provider{} configuration if not specified.
|
204
|
+
:param pulumi.Input['MonitorDowntimeEndRepeatArgs'] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
205
|
+
:param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
|
206
|
+
:param pulumi.Input['MonitorDowntimeFrequencyArgs'] frequency: Configuration options for which days of the month a monitor downtime will occur
|
207
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
|
208
|
+
:param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
|
209
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
210
|
+
:param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
|
211
|
+
:param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
|
210
212
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
211
213
|
"""
|
212
214
|
if account_id is not None:
|
@@ -232,21 +234,22 @@ class _MonitorDowntimeState:
|
|
232
234
|
|
233
235
|
@property
|
234
236
|
@pulumi.getter(name="accountId")
|
235
|
-
def account_id(self) -> Optional[pulumi.Input[
|
237
|
+
def account_id(self) -> Optional[pulumi.Input[str]]:
|
236
238
|
"""
|
237
|
-
The account in which the
|
239
|
+
The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
240
|
+
provider{} configuration if not specified.
|
238
241
|
"""
|
239
242
|
return pulumi.get(self, "account_id")
|
240
243
|
|
241
244
|
@account_id.setter
|
242
|
-
def account_id(self, value: Optional[pulumi.Input[
|
245
|
+
def account_id(self, value: Optional[pulumi.Input[str]]):
|
243
246
|
pulumi.set(self, "account_id", value)
|
244
247
|
|
245
248
|
@property
|
246
249
|
@pulumi.getter(name="endRepeat")
|
247
250
|
def end_repeat(self) -> Optional[pulumi.Input['MonitorDowntimeEndRepeatArgs']]:
|
248
251
|
"""
|
249
|
-
|
252
|
+
A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
250
253
|
"""
|
251
254
|
return pulumi.get(self, "end_repeat")
|
252
255
|
|
@@ -258,7 +261,7 @@ class _MonitorDowntimeState:
|
|
258
261
|
@pulumi.getter(name="endTime")
|
259
262
|
def end_time(self) -> Optional[pulumi.Input[str]]:
|
260
263
|
"""
|
261
|
-
|
264
|
+
A datetime stamp signifying the end of the Monitor Downtime.
|
262
265
|
"""
|
263
266
|
return pulumi.get(self, "end_time")
|
264
267
|
|
@@ -270,7 +273,7 @@ class _MonitorDowntimeState:
|
|
270
273
|
@pulumi.getter
|
271
274
|
def frequency(self) -> Optional[pulumi.Input['MonitorDowntimeFrequencyArgs']]:
|
272
275
|
"""
|
273
|
-
|
276
|
+
Configuration options for which days of the month a monitor downtime will occur
|
274
277
|
"""
|
275
278
|
return pulumi.get(self, "frequency")
|
276
279
|
|
@@ -282,9 +285,7 @@ class _MonitorDowntimeState:
|
|
282
285
|
@pulumi.getter(name="maintenanceDays")
|
283
286
|
def maintenance_days(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
284
287
|
"""
|
285
|
-
A list of days
|
286
|
-
|
287
|
-
> **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
|
288
|
+
A list of maintenance days to be included with the created weekly Monitor Downtime.
|
288
289
|
"""
|
289
290
|
return pulumi.get(self, "maintenance_days")
|
290
291
|
|
@@ -296,7 +297,7 @@ class _MonitorDowntimeState:
|
|
296
297
|
@pulumi.getter
|
297
298
|
def mode(self) -> Optional[pulumi.Input[str]]:
|
298
299
|
"""
|
299
|
-
|
300
|
+
An identifier of the type of Monitor Downtime to be created.
|
300
301
|
"""
|
301
302
|
return pulumi.get(self, "mode")
|
302
303
|
|
@@ -308,7 +309,7 @@ class _MonitorDowntimeState:
|
|
308
309
|
@pulumi.getter(name="monitorGuids")
|
309
310
|
def monitor_guids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
310
311
|
"""
|
311
|
-
A list of GUIDs of
|
312
|
+
A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
312
313
|
"""
|
313
314
|
return pulumi.get(self, "monitor_guids")
|
314
315
|
|
@@ -320,7 +321,7 @@ class _MonitorDowntimeState:
|
|
320
321
|
@pulumi.getter
|
321
322
|
def name(self) -> Optional[pulumi.Input[str]]:
|
322
323
|
"""
|
323
|
-
|
324
|
+
A name to identify the Monitor Downtime to be created.
|
324
325
|
"""
|
325
326
|
return pulumi.get(self, "name")
|
326
327
|
|
@@ -332,7 +333,7 @@ class _MonitorDowntimeState:
|
|
332
333
|
@pulumi.getter(name="startTime")
|
333
334
|
def start_time(self) -> Optional[pulumi.Input[str]]:
|
334
335
|
"""
|
335
|
-
|
336
|
+
A datetime stamp signifying the start of the Monitor Downtime.
|
336
337
|
"""
|
337
338
|
return pulumi.get(self, "start_time")
|
338
339
|
|
@@ -358,10 +359,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
358
359
|
def __init__(__self__,
|
359
360
|
resource_name: str,
|
360
361
|
opts: Optional[pulumi.ResourceOptions] = None,
|
361
|
-
account_id: Optional[pulumi.Input[
|
362
|
-
end_repeat: Optional[pulumi.Input[
|
362
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
363
|
+
end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
|
363
364
|
end_time: Optional[pulumi.Input[str]] = None,
|
364
|
-
frequency: Optional[pulumi.Input[
|
365
|
+
frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
|
365
366
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
366
367
|
mode: Optional[pulumi.Input[str]] = None,
|
367
368
|
monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -379,23 +380,25 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
379
380
|
import pulumi_newrelic as newrelic
|
380
381
|
|
381
382
|
foo = newrelic.MonitorDowntime("foo",
|
382
|
-
|
383
|
-
on_date="2023-12-20",
|
384
|
-
),
|
385
|
-
end_time="2023-12-10T02:45:30",
|
386
|
-
maintenance_days=[
|
387
|
-
"FRIDAY",
|
388
|
-
"SATURDAY",
|
389
|
-
],
|
390
|
-
mode="WEEKLY",
|
383
|
+
name="Sample Monitor Downtime",
|
391
384
|
monitor_guids=[
|
392
385
|
"<GUID-1>",
|
393
386
|
"<GUID-2>",
|
394
387
|
],
|
388
|
+
mode="WEEKLY",
|
395
389
|
start_time="2023-11-30T10:30:00",
|
396
|
-
|
390
|
+
end_time="2023-12-10T02:45:30",
|
391
|
+
time_zone="Asia/Kolkata",
|
392
|
+
end_repeat={
|
393
|
+
"on_date": "2023-12-20",
|
394
|
+
},
|
395
|
+
maintenance_days=[
|
396
|
+
"FRIDAY",
|
397
|
+
"SATURDAY",
|
398
|
+
])
|
397
399
|
```
|
398
400
|
Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
|
401
|
+
|
399
402
|
## Examples
|
400
403
|
|
401
404
|
### One-Time Monitor Downtime
|
@@ -406,14 +409,15 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
406
409
|
import pulumi
|
407
410
|
import pulumi_newrelic as newrelic
|
408
411
|
|
409
|
-
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
410
|
-
|
411
|
-
mode="ONE_TIME",
|
412
|
+
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
|
413
|
+
name="Sample One Time Monitor Downtime",
|
412
414
|
monitor_guids=[
|
413
415
|
"<GUID-1>",
|
414
416
|
"<GUID-2>",
|
415
417
|
],
|
418
|
+
mode="ONE_TIME",
|
416
419
|
start_time="2023-12-04T10:15:00",
|
420
|
+
end_time="2024-01-04T16:24:30",
|
417
421
|
time_zone="America/Los_Angeles")
|
418
422
|
```
|
419
423
|
|
@@ -427,17 +431,18 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
427
431
|
import pulumi
|
428
432
|
import pulumi_newrelic as newrelic
|
429
433
|
|
430
|
-
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
431
|
-
|
432
|
-
on_date="2023-12-25",
|
433
|
-
),
|
434
|
-
end_time="2024-01-04T07:15:00",
|
435
|
-
mode="DAILY",
|
434
|
+
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
|
435
|
+
name="Sample Daily Monitor Downtime",
|
436
436
|
monitor_guids=[
|
437
437
|
"<GUID-1>",
|
438
438
|
"<GUID-2>",
|
439
439
|
],
|
440
|
+
mode="DAILY",
|
440
441
|
start_time="2023-12-04T18:15:00",
|
442
|
+
end_time="2024-01-04T07:15:00",
|
443
|
+
end_repeat={
|
444
|
+
"on_date": "2023-12-25",
|
445
|
+
},
|
441
446
|
time_zone="Asia/Kolkata")
|
442
447
|
```
|
443
448
|
|
@@ -451,19 +456,20 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
451
456
|
import pulumi
|
452
457
|
import pulumi_newrelic as newrelic
|
453
458
|
|
454
|
-
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
455
|
-
|
456
|
-
maintenance_days=[
|
457
|
-
"SATURDAY",
|
458
|
-
"SUNDAY",
|
459
|
-
],
|
460
|
-
mode="WEEKLY",
|
459
|
+
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
|
460
|
+
name="Sample Weekly Monitor Downtime",
|
461
461
|
monitor_guids=[
|
462
462
|
"<GUID-1>",
|
463
463
|
"<GUID-2>",
|
464
464
|
],
|
465
|
+
mode="WEEKLY",
|
465
466
|
start_time="2023-12-04T14:15:00",
|
466
|
-
|
467
|
+
end_time="2024-01-04T23:55:00",
|
468
|
+
time_zone="US/Hawaii",
|
469
|
+
maintenance_days=[
|
470
|
+
"SATURDAY",
|
471
|
+
"SUNDAY",
|
472
|
+
])
|
467
473
|
```
|
468
474
|
|
469
475
|
### Monthly Monitor Downtime
|
@@ -476,57 +482,59 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
476
482
|
import pulumi
|
477
483
|
import pulumi_newrelic as newrelic
|
478
484
|
|
479
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
480
|
-
|
481
|
-
on_repeat=6,
|
482
|
-
),
|
483
|
-
end_time="2024-01-04T19:15:00",
|
484
|
-
frequency=newrelic.MonitorDowntimeFrequencyArgs(
|
485
|
-
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
|
486
|
-
ordinal_day_of_month="SECOND",
|
487
|
-
week_day="SATURDAY",
|
488
|
-
),
|
489
|
-
),
|
490
|
-
mode="MONTHLY",
|
485
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
486
|
+
name="Sample Monthly Monitor Downtime",
|
491
487
|
monitor_guids=[
|
492
488
|
"<GUID-1>",
|
493
489
|
"<GUID-2>",
|
494
490
|
],
|
491
|
+
mode="MONTHLY",
|
495
492
|
start_time="2023-12-04T07:15:00",
|
496
|
-
|
493
|
+
end_time="2024-01-04T19:15:00",
|
494
|
+
end_repeat={
|
495
|
+
"on_repeat": 6,
|
496
|
+
},
|
497
|
+
time_zone="Europe/Dublin",
|
498
|
+
frequency={
|
499
|
+
"days_of_week": {
|
500
|
+
"ordinal_day_of_month": "SECOND",
|
501
|
+
"week_day": "SATURDAY",
|
502
|
+
},
|
503
|
+
})
|
497
504
|
```
|
498
505
|
However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
|
499
506
|
```python
|
500
507
|
import pulumi
|
501
508
|
import pulumi_newrelic as newrelic
|
502
509
|
|
503
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
504
|
-
|
505
|
-
|
506
|
-
|
510
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
511
|
+
name="Sample Monthly Monitor Downtime",
|
512
|
+
monitor_guids=[
|
513
|
+
"<GUID-1>",
|
514
|
+
"<GUID-2>",
|
515
|
+
],
|
516
|
+
mode="MONTHLY",
|
517
|
+
start_time="2023-12-04T07:15:00",
|
507
518
|
end_time="2024-01-04T19:15:00",
|
508
|
-
|
509
|
-
|
519
|
+
end_repeat={
|
520
|
+
"on_repeat": 6,
|
521
|
+
},
|
522
|
+
time_zone="Europe/Dublin",
|
523
|
+
frequency={
|
524
|
+
"days_of_months": [
|
510
525
|
3,
|
511
526
|
6,
|
512
527
|
14,
|
513
528
|
23,
|
514
529
|
],
|
515
|
-
)
|
516
|
-
mode="MONTHLY",
|
517
|
-
monitor_guids=[
|
518
|
-
"<GUID-1>",
|
519
|
-
"<GUID-2>",
|
520
|
-
],
|
521
|
-
start_time="2023-12-04T07:15:00",
|
522
|
-
time_zone="Europe/Dublin")
|
530
|
+
})
|
523
531
|
```
|
524
532
|
|
525
533
|
## Import
|
526
534
|
|
527
535
|
A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
|
528
536
|
|
529
|
-
|
537
|
+
bash
|
530
538
|
|
531
539
|
```sh
|
532
540
|
$ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
|
@@ -534,17 +542,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
534
542
|
|
535
543
|
:param str resource_name: The name of the resource.
|
536
544
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
537
|
-
:param pulumi.Input[
|
538
|
-
|
539
|
-
:param pulumi.Input[
|
540
|
-
:param pulumi.Input[
|
541
|
-
:param pulumi.Input[
|
542
|
-
|
543
|
-
|
544
|
-
:param pulumi.Input[str]
|
545
|
-
:param pulumi.Input[
|
546
|
-
:param pulumi.Input[str]
|
547
|
-
:param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
|
545
|
+
:param pulumi.Input[str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
546
|
+
provider{} configuration if not specified.
|
547
|
+
:param pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
548
|
+
:param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
|
549
|
+
:param pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']] frequency: Configuration options for which days of the month a monitor downtime will occur
|
550
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
|
551
|
+
:param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
|
552
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
553
|
+
:param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
|
554
|
+
:param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
|
548
555
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
549
556
|
"""
|
550
557
|
...
|
@@ -563,23 +570,25 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
563
570
|
import pulumi_newrelic as newrelic
|
564
571
|
|
565
572
|
foo = newrelic.MonitorDowntime("foo",
|
566
|
-
|
567
|
-
on_date="2023-12-20",
|
568
|
-
),
|
569
|
-
end_time="2023-12-10T02:45:30",
|
570
|
-
maintenance_days=[
|
571
|
-
"FRIDAY",
|
572
|
-
"SATURDAY",
|
573
|
-
],
|
574
|
-
mode="WEEKLY",
|
573
|
+
name="Sample Monitor Downtime",
|
575
574
|
monitor_guids=[
|
576
575
|
"<GUID-1>",
|
577
576
|
"<GUID-2>",
|
578
577
|
],
|
578
|
+
mode="WEEKLY",
|
579
579
|
start_time="2023-11-30T10:30:00",
|
580
|
-
|
580
|
+
end_time="2023-12-10T02:45:30",
|
581
|
+
time_zone="Asia/Kolkata",
|
582
|
+
end_repeat={
|
583
|
+
"on_date": "2023-12-20",
|
584
|
+
},
|
585
|
+
maintenance_days=[
|
586
|
+
"FRIDAY",
|
587
|
+
"SATURDAY",
|
588
|
+
])
|
581
589
|
```
|
582
590
|
Monitor Downtimes are of four types; **one-time**, **daily**, **weekly** and **monthly**. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
|
591
|
+
|
583
592
|
## Examples
|
584
593
|
|
585
594
|
### One-Time Monitor Downtime
|
@@ -590,14 +599,15 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
590
599
|
import pulumi
|
591
600
|
import pulumi_newrelic as newrelic
|
592
601
|
|
593
|
-
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
594
|
-
|
595
|
-
mode="ONE_TIME",
|
602
|
+
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
|
603
|
+
name="Sample One Time Monitor Downtime",
|
596
604
|
monitor_guids=[
|
597
605
|
"<GUID-1>",
|
598
606
|
"<GUID-2>",
|
599
607
|
],
|
608
|
+
mode="ONE_TIME",
|
600
609
|
start_time="2023-12-04T10:15:00",
|
610
|
+
end_time="2024-01-04T16:24:30",
|
601
611
|
time_zone="America/Los_Angeles")
|
602
612
|
```
|
603
613
|
|
@@ -611,17 +621,18 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
611
621
|
import pulumi
|
612
622
|
import pulumi_newrelic as newrelic
|
613
623
|
|
614
|
-
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
615
|
-
|
616
|
-
on_date="2023-12-25",
|
617
|
-
),
|
618
|
-
end_time="2024-01-04T07:15:00",
|
619
|
-
mode="DAILY",
|
624
|
+
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
|
625
|
+
name="Sample Daily Monitor Downtime",
|
620
626
|
monitor_guids=[
|
621
627
|
"<GUID-1>",
|
622
628
|
"<GUID-2>",
|
623
629
|
],
|
630
|
+
mode="DAILY",
|
624
631
|
start_time="2023-12-04T18:15:00",
|
632
|
+
end_time="2024-01-04T07:15:00",
|
633
|
+
end_repeat={
|
634
|
+
"on_date": "2023-12-25",
|
635
|
+
},
|
625
636
|
time_zone="Asia/Kolkata")
|
626
637
|
```
|
627
638
|
|
@@ -635,19 +646,20 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
635
646
|
import pulumi
|
636
647
|
import pulumi_newrelic as newrelic
|
637
648
|
|
638
|
-
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
639
|
-
|
640
|
-
maintenance_days=[
|
641
|
-
"SATURDAY",
|
642
|
-
"SUNDAY",
|
643
|
-
],
|
644
|
-
mode="WEEKLY",
|
649
|
+
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
|
650
|
+
name="Sample Weekly Monitor Downtime",
|
645
651
|
monitor_guids=[
|
646
652
|
"<GUID-1>",
|
647
653
|
"<GUID-2>",
|
648
654
|
],
|
655
|
+
mode="WEEKLY",
|
649
656
|
start_time="2023-12-04T14:15:00",
|
650
|
-
|
657
|
+
end_time="2024-01-04T23:55:00",
|
658
|
+
time_zone="US/Hawaii",
|
659
|
+
maintenance_days=[
|
660
|
+
"SATURDAY",
|
661
|
+
"SUNDAY",
|
662
|
+
])
|
651
663
|
```
|
652
664
|
|
653
665
|
### Monthly Monitor Downtime
|
@@ -660,57 +672,59 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
660
672
|
import pulumi
|
661
673
|
import pulumi_newrelic as newrelic
|
662
674
|
|
663
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
664
|
-
|
665
|
-
on_repeat=6,
|
666
|
-
),
|
667
|
-
end_time="2024-01-04T19:15:00",
|
668
|
-
frequency=newrelic.MonitorDowntimeFrequencyArgs(
|
669
|
-
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
|
670
|
-
ordinal_day_of_month="SECOND",
|
671
|
-
week_day="SATURDAY",
|
672
|
-
),
|
673
|
-
),
|
674
|
-
mode="MONTHLY",
|
675
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
676
|
+
name="Sample Monthly Monitor Downtime",
|
675
677
|
monitor_guids=[
|
676
678
|
"<GUID-1>",
|
677
679
|
"<GUID-2>",
|
678
680
|
],
|
681
|
+
mode="MONTHLY",
|
679
682
|
start_time="2023-12-04T07:15:00",
|
680
|
-
|
683
|
+
end_time="2024-01-04T19:15:00",
|
684
|
+
end_repeat={
|
685
|
+
"on_repeat": 6,
|
686
|
+
},
|
687
|
+
time_zone="Europe/Dublin",
|
688
|
+
frequency={
|
689
|
+
"days_of_week": {
|
690
|
+
"ordinal_day_of_month": "SECOND",
|
691
|
+
"week_day": "SATURDAY",
|
692
|
+
},
|
693
|
+
})
|
681
694
|
```
|
682
695
|
However, the `frequency` block in monthly monitor downtimes may also be specified with its other nested argument, `days_of_month`, as shown in the example below - though both `days_of_month` and `days_of_week` cannot be specified together, as they are mutually exclusive.
|
683
696
|
```python
|
684
697
|
import pulumi
|
685
698
|
import pulumi_newrelic as newrelic
|
686
699
|
|
687
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
688
|
-
|
689
|
-
|
690
|
-
|
700
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
701
|
+
name="Sample Monthly Monitor Downtime",
|
702
|
+
monitor_guids=[
|
703
|
+
"<GUID-1>",
|
704
|
+
"<GUID-2>",
|
705
|
+
],
|
706
|
+
mode="MONTHLY",
|
707
|
+
start_time="2023-12-04T07:15:00",
|
691
708
|
end_time="2024-01-04T19:15:00",
|
692
|
-
|
693
|
-
|
709
|
+
end_repeat={
|
710
|
+
"on_repeat": 6,
|
711
|
+
},
|
712
|
+
time_zone="Europe/Dublin",
|
713
|
+
frequency={
|
714
|
+
"days_of_months": [
|
694
715
|
3,
|
695
716
|
6,
|
696
717
|
14,
|
697
718
|
23,
|
698
719
|
],
|
699
|
-
)
|
700
|
-
mode="MONTHLY",
|
701
|
-
monitor_guids=[
|
702
|
-
"<GUID-1>",
|
703
|
-
"<GUID-2>",
|
704
|
-
],
|
705
|
-
start_time="2023-12-04T07:15:00",
|
706
|
-
time_zone="Europe/Dublin")
|
720
|
+
})
|
707
721
|
```
|
708
722
|
|
709
723
|
## Import
|
710
724
|
|
711
725
|
A monitor downtime can be imported into Terraform configuration using its `guid`, i.e.
|
712
726
|
|
713
|
-
|
727
|
+
bash
|
714
728
|
|
715
729
|
```sh
|
716
730
|
$ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
|
@@ -731,10 +745,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
731
745
|
def _internal_init(__self__,
|
732
746
|
resource_name: str,
|
733
747
|
opts: Optional[pulumi.ResourceOptions] = None,
|
734
|
-
account_id: Optional[pulumi.Input[
|
735
|
-
end_repeat: Optional[pulumi.Input[
|
748
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
749
|
+
end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
|
736
750
|
end_time: Optional[pulumi.Input[str]] = None,
|
737
|
-
frequency: Optional[pulumi.Input[
|
751
|
+
frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
|
738
752
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
739
753
|
mode: Optional[pulumi.Input[str]] = None,
|
740
754
|
monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -778,10 +792,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
778
792
|
def get(resource_name: str,
|
779
793
|
id: pulumi.Input[str],
|
780
794
|
opts: Optional[pulumi.ResourceOptions] = None,
|
781
|
-
account_id: Optional[pulumi.Input[
|
782
|
-
end_repeat: Optional[pulumi.Input[
|
795
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
796
|
+
end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
|
783
797
|
end_time: Optional[pulumi.Input[str]] = None,
|
784
|
-
frequency: Optional[pulumi.Input[
|
798
|
+
frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
|
785
799
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
786
800
|
mode: Optional[pulumi.Input[str]] = None,
|
787
801
|
monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -795,17 +809,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
795
809
|
:param str resource_name: The unique name of the resulting resource.
|
796
810
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
797
811
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
798
|
-
:param pulumi.Input[
|
799
|
-
|
800
|
-
:param pulumi.Input[
|
801
|
-
:param pulumi.Input[
|
802
|
-
:param pulumi.Input[
|
803
|
-
|
804
|
-
|
805
|
-
:param pulumi.Input[str]
|
806
|
-
:param pulumi.Input[
|
807
|
-
:param pulumi.Input[str]
|
808
|
-
:param pulumi.Input[str] start_time: The time at which the monitor downtime would begin to operate, a timestamp specified in the ISO 8601 format without the offset/timezone - for instance, `2023-12-20T10:48:53`.
|
812
|
+
:param pulumi.Input[str] account_id: The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
813
|
+
provider{} configuration if not specified.
|
814
|
+
:param pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']] end_repeat: A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
815
|
+
:param pulumi.Input[str] end_time: A datetime stamp signifying the end of the Monitor Downtime.
|
816
|
+
:param pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']] frequency: Configuration options for which days of the month a monitor downtime will occur
|
817
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] maintenance_days: A list of maintenance days to be included with the created weekly Monitor Downtime.
|
818
|
+
:param pulumi.Input[str] mode: An identifier of the type of Monitor Downtime to be created.
|
819
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitor_guids: A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
820
|
+
:param pulumi.Input[str] name: A name to identify the Monitor Downtime to be created.
|
821
|
+
:param pulumi.Input[str] start_time: A datetime stamp signifying the start of the Monitor Downtime.
|
809
822
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
810
823
|
"""
|
811
824
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -826,9 +839,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
826
839
|
|
827
840
|
@property
|
828
841
|
@pulumi.getter(name="accountId")
|
829
|
-
def account_id(self) -> pulumi.Output[
|
842
|
+
def account_id(self) -> pulumi.Output[str]:
|
830
843
|
"""
|
831
|
-
The account in which the
|
844
|
+
The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the `account_id` in the
|
845
|
+
provider{} configuration if not specified.
|
832
846
|
"""
|
833
847
|
return pulumi.get(self, "account_id")
|
834
848
|
|
@@ -836,7 +850,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
836
850
|
@pulumi.getter(name="endRepeat")
|
837
851
|
def end_repeat(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeEndRepeat']]:
|
838
852
|
"""
|
839
|
-
|
853
|
+
A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
840
854
|
"""
|
841
855
|
return pulumi.get(self, "end_repeat")
|
842
856
|
|
@@ -844,7 +858,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
844
858
|
@pulumi.getter(name="endTime")
|
845
859
|
def end_time(self) -> pulumi.Output[str]:
|
846
860
|
"""
|
847
|
-
|
861
|
+
A datetime stamp signifying the end of the Monitor Downtime.
|
848
862
|
"""
|
849
863
|
return pulumi.get(self, "end_time")
|
850
864
|
|
@@ -852,7 +866,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
852
866
|
@pulumi.getter
|
853
867
|
def frequency(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeFrequency']]:
|
854
868
|
"""
|
855
|
-
|
869
|
+
Configuration options for which days of the month a monitor downtime will occur
|
856
870
|
"""
|
857
871
|
return pulumi.get(self, "frequency")
|
858
872
|
|
@@ -860,9 +874,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
860
874
|
@pulumi.getter(name="maintenanceDays")
|
861
875
|
def maintenance_days(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
862
876
|
"""
|
863
|
-
A list of days
|
864
|
-
|
865
|
-
> **NOTE:** `maintenance_days` **can only be used with the mode** `WEEKLY`, and **is a required argument** with weekly monitor downtimes (i.e. if the `mode` is `WEEKLY`).
|
877
|
+
A list of maintenance days to be included with the created weekly Monitor Downtime.
|
866
878
|
"""
|
867
879
|
return pulumi.get(self, "maintenance_days")
|
868
880
|
|
@@ -870,7 +882,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
870
882
|
@pulumi.getter
|
871
883
|
def mode(self) -> pulumi.Output[str]:
|
872
884
|
"""
|
873
|
-
|
885
|
+
An identifier of the type of Monitor Downtime to be created.
|
874
886
|
"""
|
875
887
|
return pulumi.get(self, "mode")
|
876
888
|
|
@@ -878,7 +890,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
878
890
|
@pulumi.getter(name="monitorGuids")
|
879
891
|
def monitor_guids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
880
892
|
"""
|
881
|
-
A list of GUIDs of
|
893
|
+
A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
882
894
|
"""
|
883
895
|
return pulumi.get(self, "monitor_guids")
|
884
896
|
|
@@ -886,7 +898,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
886
898
|
@pulumi.getter
|
887
899
|
def name(self) -> pulumi.Output[str]:
|
888
900
|
"""
|
889
|
-
|
901
|
+
A name to identify the Monitor Downtime to be created.
|
890
902
|
"""
|
891
903
|
return pulumi.get(self, "name")
|
892
904
|
|
@@ -894,7 +906,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
894
906
|
@pulumi.getter(name="startTime")
|
895
907
|
def start_time(self) -> pulumi.Output[str]:
|
896
908
|
"""
|
897
|
-
|
909
|
+
A datetime stamp signifying the start of the Monitor Downtime.
|
898
910
|
"""
|
899
911
|
return pulumi.get(self, "start_time")
|
900
912
|
|