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 *
|
@@ -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,
|
@@ -374,29 +375,28 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
374
375
|
|
375
376
|
## Example Usage
|
376
377
|
|
377
|
-
<!--Start PulumiCodeChooser -->
|
378
378
|
```python
|
379
379
|
import pulumi
|
380
380
|
import pulumi_newrelic as newrelic
|
381
381
|
|
382
382
|
foo = newrelic.MonitorDowntime("foo",
|
383
|
-
|
384
|
-
on_date="2023-12-20",
|
385
|
-
),
|
386
|
-
end_time="2023-12-10T02:45:30",
|
387
|
-
maintenance_days=[
|
388
|
-
"FRIDAY",
|
389
|
-
"SATURDAY",
|
390
|
-
],
|
391
|
-
mode="WEEKLY",
|
383
|
+
name="Sample Monitor Downtime",
|
392
384
|
monitor_guids=[
|
393
385
|
"<GUID-1>",
|
394
386
|
"<GUID-2>",
|
395
387
|
],
|
388
|
+
mode="WEEKLY",
|
396
389
|
start_time="2023-11-30T10:30:00",
|
397
|
-
|
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
|
+
])
|
398
399
|
```
|
399
|
-
<!--End PulumiCodeChooser -->
|
400
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
401
|
|
402
402
|
## Examples
|
@@ -405,22 +405,21 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
405
405
|
|
406
406
|
The below example illustrates creating a **one-time** monitor downtime.
|
407
407
|
|
408
|
-
<!--Start PulumiCodeChooser -->
|
409
408
|
```python
|
410
409
|
import pulumi
|
411
410
|
import pulumi_newrelic as newrelic
|
412
411
|
|
413
|
-
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
414
|
-
|
415
|
-
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",
|
416
414
|
monitor_guids=[
|
417
415
|
"<GUID-1>",
|
418
416
|
"<GUID-2>",
|
419
417
|
],
|
418
|
+
mode="ONE_TIME",
|
420
419
|
start_time="2023-12-04T10:15:00",
|
420
|
+
end_time="2024-01-04T16:24:30",
|
421
421
|
time_zone="America/Los_Angeles")
|
422
422
|
```
|
423
|
-
<!--End PulumiCodeChooser -->
|
424
423
|
|
425
424
|
### Daily Monitor Downtime
|
426
425
|
|
@@ -428,25 +427,24 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
428
427
|
|
429
428
|
Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
|
430
429
|
|
431
|
-
<!--Start PulumiCodeChooser -->
|
432
430
|
```python
|
433
431
|
import pulumi
|
434
432
|
import pulumi_newrelic as newrelic
|
435
433
|
|
436
|
-
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
437
|
-
|
438
|
-
on_date="2023-12-25",
|
439
|
-
),
|
440
|
-
end_time="2024-01-04T07:15:00",
|
441
|
-
mode="DAILY",
|
434
|
+
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
|
435
|
+
name="Sample Daily Monitor Downtime",
|
442
436
|
monitor_guids=[
|
443
437
|
"<GUID-1>",
|
444
438
|
"<GUID-2>",
|
445
439
|
],
|
440
|
+
mode="DAILY",
|
446
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
|
+
},
|
447
446
|
time_zone="Asia/Kolkata")
|
448
447
|
```
|
449
|
-
<!--End PulumiCodeChooser -->
|
450
448
|
|
451
449
|
### Weekly Monitor Downtime
|
452
450
|
|
@@ -454,26 +452,25 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
454
452
|
|
455
453
|
Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
|
456
454
|
|
457
|
-
<!--Start PulumiCodeChooser -->
|
458
455
|
```python
|
459
456
|
import pulumi
|
460
457
|
import pulumi_newrelic as newrelic
|
461
458
|
|
462
|
-
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
463
|
-
|
464
|
-
maintenance_days=[
|
465
|
-
"SATURDAY",
|
466
|
-
"SUNDAY",
|
467
|
-
],
|
468
|
-
mode="WEEKLY",
|
459
|
+
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
|
460
|
+
name="Sample Weekly Monitor Downtime",
|
469
461
|
monitor_guids=[
|
470
462
|
"<GUID-1>",
|
471
463
|
"<GUID-2>",
|
472
464
|
],
|
465
|
+
mode="WEEKLY",
|
473
466
|
start_time="2023-12-04T14:15:00",
|
474
|
-
|
467
|
+
end_time="2024-01-04T23:55:00",
|
468
|
+
time_zone="US/Hawaii",
|
469
|
+
maintenance_days=[
|
470
|
+
"SATURDAY",
|
471
|
+
"SUNDAY",
|
472
|
+
])
|
475
473
|
```
|
476
|
-
<!--End PulumiCodeChooser -->
|
477
474
|
|
478
475
|
### Monthly Monitor Downtime
|
479
476
|
|
@@ -481,59 +478,57 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
481
478
|
|
482
479
|
Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
|
483
480
|
|
484
|
-
<!--Start PulumiCodeChooser -->
|
485
481
|
```python
|
486
482
|
import pulumi
|
487
483
|
import pulumi_newrelic as newrelic
|
488
484
|
|
489
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
490
|
-
|
491
|
-
on_repeat=6,
|
492
|
-
),
|
493
|
-
end_time="2024-01-04T19:15:00",
|
494
|
-
frequency=newrelic.MonitorDowntimeFrequencyArgs(
|
495
|
-
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
|
496
|
-
ordinal_day_of_month="SECOND",
|
497
|
-
week_day="SATURDAY",
|
498
|
-
),
|
499
|
-
),
|
500
|
-
mode="MONTHLY",
|
485
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
486
|
+
name="Sample Monthly Monitor Downtime",
|
501
487
|
monitor_guids=[
|
502
488
|
"<GUID-1>",
|
503
489
|
"<GUID-2>",
|
504
490
|
],
|
491
|
+
mode="MONTHLY",
|
505
492
|
start_time="2023-12-04T07:15:00",
|
506
|
-
|
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
|
+
})
|
507
504
|
```
|
508
|
-
<!--End PulumiCodeChooser -->
|
509
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.
|
510
|
-
<!--Start PulumiCodeChooser -->
|
511
506
|
```python
|
512
507
|
import pulumi
|
513
508
|
import pulumi_newrelic as newrelic
|
514
509
|
|
515
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
516
|
-
|
517
|
-
|
518
|
-
|
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",
|
519
518
|
end_time="2024-01-04T19:15:00",
|
520
|
-
|
521
|
-
|
519
|
+
end_repeat={
|
520
|
+
"on_repeat": 6,
|
521
|
+
},
|
522
|
+
time_zone="Europe/Dublin",
|
523
|
+
frequency={
|
524
|
+
"days_of_months": [
|
522
525
|
3,
|
523
526
|
6,
|
524
527
|
14,
|
525
528
|
23,
|
526
529
|
],
|
527
|
-
)
|
528
|
-
mode="MONTHLY",
|
529
|
-
monitor_guids=[
|
530
|
-
"<GUID-1>",
|
531
|
-
"<GUID-2>",
|
532
|
-
],
|
533
|
-
start_time="2023-12-04T07:15:00",
|
534
|
-
time_zone="Europe/Dublin")
|
530
|
+
})
|
535
531
|
```
|
536
|
-
<!--End PulumiCodeChooser -->
|
537
532
|
|
538
533
|
## Import
|
539
534
|
|
@@ -547,17 +542,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
547
542
|
|
548
543
|
:param str resource_name: The name of the resource.
|
549
544
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
550
|
-
:param pulumi.Input[
|
551
|
-
|
552
|
-
:param pulumi.Input[
|
553
|
-
:param pulumi.Input[
|
554
|
-
:param pulumi.Input[
|
555
|
-
|
556
|
-
|
557
|
-
:param pulumi.Input[str]
|
558
|
-
:param pulumi.Input[
|
559
|
-
:param pulumi.Input[str]
|
560
|
-
: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.
|
561
555
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
562
556
|
"""
|
563
557
|
...
|
@@ -571,29 +565,28 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
571
565
|
|
572
566
|
## Example Usage
|
573
567
|
|
574
|
-
<!--Start PulumiCodeChooser -->
|
575
568
|
```python
|
576
569
|
import pulumi
|
577
570
|
import pulumi_newrelic as newrelic
|
578
571
|
|
579
572
|
foo = newrelic.MonitorDowntime("foo",
|
580
|
-
|
581
|
-
on_date="2023-12-20",
|
582
|
-
),
|
583
|
-
end_time="2023-12-10T02:45:30",
|
584
|
-
maintenance_days=[
|
585
|
-
"FRIDAY",
|
586
|
-
"SATURDAY",
|
587
|
-
],
|
588
|
-
mode="WEEKLY",
|
573
|
+
name="Sample Monitor Downtime",
|
589
574
|
monitor_guids=[
|
590
575
|
"<GUID-1>",
|
591
576
|
"<GUID-2>",
|
592
577
|
],
|
578
|
+
mode="WEEKLY",
|
593
579
|
start_time="2023-11-30T10:30:00",
|
594
|
-
|
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
|
+
])
|
595
589
|
```
|
596
|
-
<!--End PulumiCodeChooser -->
|
597
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.
|
598
591
|
|
599
592
|
## Examples
|
@@ -602,22 +595,21 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
602
595
|
|
603
596
|
The below example illustrates creating a **one-time** monitor downtime.
|
604
597
|
|
605
|
-
<!--Start PulumiCodeChooser -->
|
606
598
|
```python
|
607
599
|
import pulumi
|
608
600
|
import pulumi_newrelic as newrelic
|
609
601
|
|
610
|
-
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
611
|
-
|
612
|
-
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",
|
613
604
|
monitor_guids=[
|
614
605
|
"<GUID-1>",
|
615
606
|
"<GUID-2>",
|
616
607
|
],
|
608
|
+
mode="ONE_TIME",
|
617
609
|
start_time="2023-12-04T10:15:00",
|
610
|
+
end_time="2024-01-04T16:24:30",
|
618
611
|
time_zone="America/Los_Angeles")
|
619
612
|
```
|
620
|
-
<!--End PulumiCodeChooser -->
|
621
613
|
|
622
614
|
### Daily Monitor Downtime
|
623
615
|
|
@@ -625,25 +617,24 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
625
617
|
|
626
618
|
Note that `end_repeat` has been specified in the configuration; however, this is optional, in accordance with the rules of `end_repeat` specified in the argument reference section above. This example uses the `on_date` nested argument of `end_repeat`, however, the other nested argument, `on_repeat` may also be used _instead_, as you may see in some of the other examples below; though both `on_date` and `on_repeat` cannot be specified together, as they are mutually exclusive.
|
627
619
|
|
628
|
-
<!--Start PulumiCodeChooser -->
|
629
620
|
```python
|
630
621
|
import pulumi
|
631
622
|
import pulumi_newrelic as newrelic
|
632
623
|
|
633
|
-
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
634
|
-
|
635
|
-
on_date="2023-12-25",
|
636
|
-
),
|
637
|
-
end_time="2024-01-04T07:15:00",
|
638
|
-
mode="DAILY",
|
624
|
+
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
|
625
|
+
name="Sample Daily Monitor Downtime",
|
639
626
|
monitor_guids=[
|
640
627
|
"<GUID-1>",
|
641
628
|
"<GUID-2>",
|
642
629
|
],
|
630
|
+
mode="DAILY",
|
643
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
|
+
},
|
644
636
|
time_zone="Asia/Kolkata")
|
645
637
|
```
|
646
|
-
<!--End PulumiCodeChooser -->
|
647
638
|
|
648
639
|
### Weekly Monitor Downtime
|
649
640
|
|
@@ -651,26 +642,25 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
651
642
|
|
652
643
|
Note that `maintenance_days` has been specified in the configuration as it is required with weekly monitor downtimes; and `end_repeat` has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
|
653
644
|
|
654
|
-
<!--Start PulumiCodeChooser -->
|
655
645
|
```python
|
656
646
|
import pulumi
|
657
647
|
import pulumi_newrelic as newrelic
|
658
648
|
|
659
|
-
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
660
|
-
|
661
|
-
maintenance_days=[
|
662
|
-
"SATURDAY",
|
663
|
-
"SUNDAY",
|
664
|
-
],
|
665
|
-
mode="WEEKLY",
|
649
|
+
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
|
650
|
+
name="Sample Weekly Monitor Downtime",
|
666
651
|
monitor_guids=[
|
667
652
|
"<GUID-1>",
|
668
653
|
"<GUID-2>",
|
669
654
|
],
|
655
|
+
mode="WEEKLY",
|
670
656
|
start_time="2023-12-04T14:15:00",
|
671
|
-
|
657
|
+
end_time="2024-01-04T23:55:00",
|
658
|
+
time_zone="US/Hawaii",
|
659
|
+
maintenance_days=[
|
660
|
+
"SATURDAY",
|
661
|
+
"SUNDAY",
|
662
|
+
])
|
672
663
|
```
|
673
|
-
<!--End PulumiCodeChooser -->
|
674
664
|
|
675
665
|
### Monthly Monitor Downtime
|
676
666
|
|
@@ -678,59 +668,57 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
678
668
|
|
679
669
|
Note that `frequency` has been specified in the configuration as it is required with monthly monitor downtimes, and `end_repeat` has been specified too, though it is optional. `frequency` has been specified with `days_of_week` comprising both of its nested arguments, `ordinal_day_of_month` and `week_day`; all in accordance with the rules of these arguments specified in the argument reference section above.
|
680
670
|
|
681
|
-
<!--Start PulumiCodeChooser -->
|
682
671
|
```python
|
683
672
|
import pulumi
|
684
673
|
import pulumi_newrelic as newrelic
|
685
674
|
|
686
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
687
|
-
|
688
|
-
on_repeat=6,
|
689
|
-
),
|
690
|
-
end_time="2024-01-04T19:15:00",
|
691
|
-
frequency=newrelic.MonitorDowntimeFrequencyArgs(
|
692
|
-
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
|
693
|
-
ordinal_day_of_month="SECOND",
|
694
|
-
week_day="SATURDAY",
|
695
|
-
),
|
696
|
-
),
|
697
|
-
mode="MONTHLY",
|
675
|
+
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
|
676
|
+
name="Sample Monthly Monitor Downtime",
|
698
677
|
monitor_guids=[
|
699
678
|
"<GUID-1>",
|
700
679
|
"<GUID-2>",
|
701
680
|
],
|
681
|
+
mode="MONTHLY",
|
702
682
|
start_time="2023-12-04T07:15:00",
|
703
|
-
|
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
|
+
})
|
704
694
|
```
|
705
|
-
<!--End PulumiCodeChooser -->
|
706
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.
|
707
|
-
<!--Start PulumiCodeChooser -->
|
708
696
|
```python
|
709
697
|
import pulumi
|
710
698
|
import pulumi_newrelic as newrelic
|
711
699
|
|
712
|
-
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("
|
713
|
-
|
714
|
-
|
715
|
-
|
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",
|
716
708
|
end_time="2024-01-04T19:15:00",
|
717
|
-
|
718
|
-
|
709
|
+
end_repeat={
|
710
|
+
"on_repeat": 6,
|
711
|
+
},
|
712
|
+
time_zone="Europe/Dublin",
|
713
|
+
frequency={
|
714
|
+
"days_of_months": [
|
719
715
|
3,
|
720
716
|
6,
|
721
717
|
14,
|
722
718
|
23,
|
723
719
|
],
|
724
|
-
)
|
725
|
-
mode="MONTHLY",
|
726
|
-
monitor_guids=[
|
727
|
-
"<GUID-1>",
|
728
|
-
"<GUID-2>",
|
729
|
-
],
|
730
|
-
start_time="2023-12-04T07:15:00",
|
731
|
-
time_zone="Europe/Dublin")
|
720
|
+
})
|
732
721
|
```
|
733
|
-
<!--End PulumiCodeChooser -->
|
734
722
|
|
735
723
|
## Import
|
736
724
|
|
@@ -757,10 +745,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
757
745
|
def _internal_init(__self__,
|
758
746
|
resource_name: str,
|
759
747
|
opts: Optional[pulumi.ResourceOptions] = None,
|
760
|
-
account_id: Optional[pulumi.Input[
|
761
|
-
end_repeat: Optional[pulumi.Input[
|
748
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
749
|
+
end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
|
762
750
|
end_time: Optional[pulumi.Input[str]] = None,
|
763
|
-
frequency: Optional[pulumi.Input[
|
751
|
+
frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
|
764
752
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
765
753
|
mode: Optional[pulumi.Input[str]] = None,
|
766
754
|
monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -804,10 +792,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
804
792
|
def get(resource_name: str,
|
805
793
|
id: pulumi.Input[str],
|
806
794
|
opts: Optional[pulumi.ResourceOptions] = None,
|
807
|
-
account_id: Optional[pulumi.Input[
|
808
|
-
end_repeat: Optional[pulumi.Input[
|
795
|
+
account_id: Optional[pulumi.Input[str]] = None,
|
796
|
+
end_repeat: Optional[pulumi.Input[Union['MonitorDowntimeEndRepeatArgs', 'MonitorDowntimeEndRepeatArgsDict']]] = None,
|
809
797
|
end_time: Optional[pulumi.Input[str]] = None,
|
810
|
-
frequency: Optional[pulumi.Input[
|
798
|
+
frequency: Optional[pulumi.Input[Union['MonitorDowntimeFrequencyArgs', 'MonitorDowntimeFrequencyArgsDict']]] = None,
|
811
799
|
maintenance_days: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
812
800
|
mode: Optional[pulumi.Input[str]] = None,
|
813
801
|
monitor_guids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
@@ -821,17 +809,16 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
821
809
|
:param str resource_name: The unique name of the resulting resource.
|
822
810
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
823
811
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
824
|
-
:param pulumi.Input[
|
825
|
-
|
826
|
-
:param pulumi.Input[
|
827
|
-
:param pulumi.Input[
|
828
|
-
:param pulumi.Input[
|
829
|
-
|
830
|
-
|
831
|
-
:param pulumi.Input[str]
|
832
|
-
:param pulumi.Input[
|
833
|
-
:param pulumi.Input[str]
|
834
|
-
: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.
|
835
822
|
:param pulumi.Input[str] time_zone: The timezone that applies to the Monitor Downtime schedule.
|
836
823
|
"""
|
837
824
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -852,9 +839,10 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
852
839
|
|
853
840
|
@property
|
854
841
|
@pulumi.getter(name="accountId")
|
855
|
-
def account_id(self) -> pulumi.Output[
|
842
|
+
def account_id(self) -> pulumi.Output[str]:
|
856
843
|
"""
|
857
|
-
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.
|
858
846
|
"""
|
859
847
|
return pulumi.get(self, "account_id")
|
860
848
|
|
@@ -862,7 +850,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
862
850
|
@pulumi.getter(name="endRepeat")
|
863
851
|
def end_repeat(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeEndRepeat']]:
|
864
852
|
"""
|
865
|
-
|
853
|
+
A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
|
866
854
|
"""
|
867
855
|
return pulumi.get(self, "end_repeat")
|
868
856
|
|
@@ -870,7 +858,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
870
858
|
@pulumi.getter(name="endTime")
|
871
859
|
def end_time(self) -> pulumi.Output[str]:
|
872
860
|
"""
|
873
|
-
|
861
|
+
A datetime stamp signifying the end of the Monitor Downtime.
|
874
862
|
"""
|
875
863
|
return pulumi.get(self, "end_time")
|
876
864
|
|
@@ -878,7 +866,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
878
866
|
@pulumi.getter
|
879
867
|
def frequency(self) -> pulumi.Output[Optional['outputs.MonitorDowntimeFrequency']]:
|
880
868
|
"""
|
881
|
-
|
869
|
+
Configuration options for which days of the month a monitor downtime will occur
|
882
870
|
"""
|
883
871
|
return pulumi.get(self, "frequency")
|
884
872
|
|
@@ -886,9 +874,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
886
874
|
@pulumi.getter(name="maintenanceDays")
|
887
875
|
def maintenance_days(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
888
876
|
"""
|
889
|
-
A list of days
|
890
|
-
|
891
|
-
> **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.
|
892
878
|
"""
|
893
879
|
return pulumi.get(self, "maintenance_days")
|
894
880
|
|
@@ -896,7 +882,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
896
882
|
@pulumi.getter
|
897
883
|
def mode(self) -> pulumi.Output[str]:
|
898
884
|
"""
|
899
|
-
|
885
|
+
An identifier of the type of Monitor Downtime to be created.
|
900
886
|
"""
|
901
887
|
return pulumi.get(self, "mode")
|
902
888
|
|
@@ -904,7 +890,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
904
890
|
@pulumi.getter(name="monitorGuids")
|
905
891
|
def monitor_guids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
906
892
|
"""
|
907
|
-
A list of GUIDs of
|
893
|
+
A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
|
908
894
|
"""
|
909
895
|
return pulumi.get(self, "monitor_guids")
|
910
896
|
|
@@ -912,7 +898,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
912
898
|
@pulumi.getter
|
913
899
|
def name(self) -> pulumi.Output[str]:
|
914
900
|
"""
|
915
|
-
|
901
|
+
A name to identify the Monitor Downtime to be created.
|
916
902
|
"""
|
917
903
|
return pulumi.get(self, "name")
|
918
904
|
|
@@ -920,7 +906,7 @@ class MonitorDowntime(pulumi.CustomResource):
|
|
920
906
|
@pulumi.getter(name="startTime")
|
921
907
|
def start_time(self) -> pulumi.Output[str]:
|
922
908
|
"""
|
923
|
-
|
909
|
+
A datetime stamp signifying the start of the Monitor Downtime.
|
924
910
|
"""
|
925
911
|
return pulumi.get(self, "start_time")
|
926
912
|
|