pulumi-checkly 2.4.0a1757083696__py3-none-any.whl → 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_checkly/__init__.py +2 -1
- pulumi_checkly/_inputs.py +2103 -1179
- pulumi_checkly/_utilities.py +9 -5
- pulumi_checkly/alert_channel.py +109 -108
- pulumi_checkly/check.py +517 -469
- pulumi_checkly/check_group.py +300 -299
- pulumi_checkly/client_certificate.py +88 -87
- pulumi_checkly/config/__init__.py +2 -1
- pulumi_checkly/config/__init__.pyi +2 -2
- pulumi_checkly/config/vars.py +5 -5
- pulumi_checkly/dashboard.py +403 -402
- pulumi_checkly/environment_variable.py +55 -54
- pulumi_checkly/get_static_ips.py +18 -18
- pulumi_checkly/heartbeat_check.py +144 -96
- pulumi_checkly/heartbeat_monitor.py +144 -96
- pulumi_checkly/maintenance_window.py +122 -121
- pulumi_checkly/outputs.py +1518 -771
- pulumi_checkly/private_location.py +63 -62
- pulumi_checkly/provider.py +56 -36
- pulumi_checkly/pulumi-plugin.json +1 -1
- pulumi_checkly/snippet.py +37 -36
- pulumi_checkly/status_page.py +125 -124
- pulumi_checkly/status_page_service.py +20 -19
- pulumi_checkly/tcp_check.py +341 -293
- pulumi_checkly/tcp_monitor.py +341 -293
- pulumi_checkly/trigger_check.py +54 -53
- pulumi_checkly/trigger_check_group.py +54 -53
- pulumi_checkly/url_monitor.py +324 -276
- {pulumi_checkly-2.4.0a1757083696.dist-info → pulumi_checkly-2.5.0.dist-info}/METADATA +2 -2
- pulumi_checkly-2.5.0.dist-info/RECORD +33 -0
- pulumi_checkly-2.4.0a1757083696.dist-info/RECORD +0 -33
- {pulumi_checkly-2.4.0a1757083696.dist-info → pulumi_checkly-2.5.0.dist-info}/WHEEL +0 -0
- {pulumi_checkly-2.4.0a1757083696.dist-info → pulumi_checkly-2.5.0.dist-info}/top_level.txt +0 -0
pulumi_checkly/url_monitor.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import
|
5
|
+
import builtins as _builtins
|
6
6
|
import warnings
|
7
7
|
import sys
|
8
8
|
import pulumi
|
@@ -21,46 +21,48 @@ __all__ = ['UrlMonitorArgs', 'UrlMonitor']
|
|
21
21
|
@pulumi.input_type
|
22
22
|
class UrlMonitorArgs:
|
23
23
|
def __init__(__self__, *,
|
24
|
-
activated: pulumi.Input[bool],
|
25
|
-
frequency: pulumi.Input[int],
|
24
|
+
activated: pulumi.Input[_builtins.bool],
|
25
|
+
frequency: pulumi.Input[_builtins.int],
|
26
26
|
request: pulumi.Input['UrlMonitorRequestArgs'],
|
27
27
|
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]] = None,
|
28
28
|
alert_settings: Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']] = None,
|
29
|
-
degraded_response_time: Optional[pulumi.Input[int]] = None,
|
30
|
-
frequency_offset: Optional[pulumi.Input[int]] = None,
|
31
|
-
group_id: Optional[pulumi.Input[int]] = None,
|
32
|
-
group_order: Optional[pulumi.Input[int]] = None,
|
33
|
-
locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
34
|
-
max_response_time: Optional[pulumi.Input[int]] = None,
|
35
|
-
muted: Optional[pulumi.Input[bool]] = None,
|
36
|
-
name: Optional[pulumi.Input[str]] = None,
|
37
|
-
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
29
|
+
degraded_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
30
|
+
frequency_offset: Optional[pulumi.Input[_builtins.int]] = None,
|
31
|
+
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
32
|
+
group_order: Optional[pulumi.Input[_builtins.int]] = None,
|
33
|
+
locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
34
|
+
max_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
35
|
+
muted: Optional[pulumi.Input[_builtins.bool]] = None,
|
36
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
37
|
+
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
38
38
|
retry_strategy: Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']] = None,
|
39
|
-
run_parallel: Optional[pulumi.Input[bool]] = None,
|
40
|
-
should_fail: Optional[pulumi.Input[bool]] = None,
|
41
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
42
|
-
|
39
|
+
run_parallel: Optional[pulumi.Input[_builtins.bool]] = None,
|
40
|
+
should_fail: Optional[pulumi.Input[_builtins.bool]] = None,
|
41
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
42
|
+
trigger_incident: Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']] = None,
|
43
|
+
use_global_alert_settings: Optional[pulumi.Input[_builtins.bool]] = None):
|
43
44
|
"""
|
44
45
|
The set of arguments for constructing a UrlMonitor resource.
|
45
|
-
:param pulumi.Input[bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
46
|
-
:param pulumi.Input[int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
46
|
+
:param pulumi.Input[_builtins.bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
47
|
+
:param pulumi.Input[_builtins.int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
47
48
|
:param pulumi.Input['UrlMonitorRequestArgs'] request: The parameters of the HTTP request.
|
48
49
|
:param pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]] alert_channel_subscriptions: An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your monitor, we won't be able to alert you.
|
49
50
|
:param pulumi.Input['UrlMonitorAlertSettingsArgs'] alert_settings: Determines the alert escalation policy for the monitor.
|
50
|
-
:param pulumi.Input[int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
51
|
-
:param pulumi.Input[int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
52
|
-
:param pulumi.Input[int] group_id: The ID of the check group that this monitor is part of.
|
53
|
-
:param pulumi.Input[int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
54
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations: An array of one or more data center locations where to run the this monitor.
|
55
|
-
:param pulumi.Input[int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
56
|
-
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
57
|
-
:param pulumi.Input[str] name: The name of the monitor.
|
58
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_locations: An array of one or more private locations slugs.
|
59
|
-
:param pulumi.Input['UrlMonitorRetryStrategyArgs'] retry_strategy: A strategy for retrying failed monitor runs.
|
60
|
-
:param pulumi.Input[bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
61
|
-
:param pulumi.Input[bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
62
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
63
|
-
:param pulumi.Input[
|
51
|
+
:param pulumi.Input[_builtins.int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
52
|
+
:param pulumi.Input[_builtins.int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
53
|
+
:param pulumi.Input[_builtins.int] group_id: The ID of the check group that this monitor is part of.
|
54
|
+
:param pulumi.Input[_builtins.int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
55
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] locations: An array of one or more data center locations where to run the this monitor.
|
56
|
+
:param pulumi.Input[_builtins.int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
57
|
+
:param pulumi.Input[_builtins.bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
58
|
+
:param pulumi.Input[_builtins.str] name: The name of the monitor.
|
59
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] private_locations: An array of one or more private locations slugs.
|
60
|
+
:param pulumi.Input['UrlMonitorRetryStrategyArgs'] retry_strategy: A strategy for retrying failed check/monitor runs.
|
61
|
+
:param pulumi.Input[_builtins.bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
62
|
+
:param pulumi.Input[_builtins.bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
63
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
64
|
+
:param pulumi.Input['UrlMonitorTriggerIncidentArgs'] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
65
|
+
:param pulumi.Input[_builtins.bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
64
66
|
"""
|
65
67
|
pulumi.set(__self__, "activated", activated)
|
66
68
|
pulumi.set(__self__, "frequency", frequency)
|
@@ -95,34 +97,36 @@ class UrlMonitorArgs:
|
|
95
97
|
pulumi.set(__self__, "should_fail", should_fail)
|
96
98
|
if tags is not None:
|
97
99
|
pulumi.set(__self__, "tags", tags)
|
100
|
+
if trigger_incident is not None:
|
101
|
+
pulumi.set(__self__, "trigger_incident", trigger_incident)
|
98
102
|
if use_global_alert_settings is not None:
|
99
103
|
pulumi.set(__self__, "use_global_alert_settings", use_global_alert_settings)
|
100
104
|
|
101
|
-
@property
|
105
|
+
@_builtins.property
|
102
106
|
@pulumi.getter
|
103
|
-
def activated(self) -> pulumi.Input[bool]:
|
107
|
+
def activated(self) -> pulumi.Input[_builtins.bool]:
|
104
108
|
"""
|
105
109
|
Determines whether the monitor will run periodically or not after being deployed.
|
106
110
|
"""
|
107
111
|
return pulumi.get(self, "activated")
|
108
112
|
|
109
113
|
@activated.setter
|
110
|
-
def activated(self, value: pulumi.Input[bool]):
|
114
|
+
def activated(self, value: pulumi.Input[_builtins.bool]):
|
111
115
|
pulumi.set(self, "activated", value)
|
112
116
|
|
113
|
-
@property
|
117
|
+
@_builtins.property
|
114
118
|
@pulumi.getter
|
115
|
-
def frequency(self) -> pulumi.Input[int]:
|
119
|
+
def frequency(self) -> pulumi.Input[_builtins.int]:
|
116
120
|
"""
|
117
121
|
How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
118
122
|
"""
|
119
123
|
return pulumi.get(self, "frequency")
|
120
124
|
|
121
125
|
@frequency.setter
|
122
|
-
def frequency(self, value: pulumi.Input[int]):
|
126
|
+
def frequency(self, value: pulumi.Input[_builtins.int]):
|
123
127
|
pulumi.set(self, "frequency", value)
|
124
128
|
|
125
|
-
@property
|
129
|
+
@_builtins.property
|
126
130
|
@pulumi.getter
|
127
131
|
def request(self) -> pulumi.Input['UrlMonitorRequestArgs']:
|
128
132
|
"""
|
@@ -134,7 +138,7 @@ class UrlMonitorArgs:
|
|
134
138
|
def request(self, value: pulumi.Input['UrlMonitorRequestArgs']):
|
135
139
|
pulumi.set(self, "request", value)
|
136
140
|
|
137
|
-
@property
|
141
|
+
@_builtins.property
|
138
142
|
@pulumi.getter(name="alertChannelSubscriptions")
|
139
143
|
def alert_channel_subscriptions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]]:
|
140
144
|
"""
|
@@ -146,7 +150,7 @@ class UrlMonitorArgs:
|
|
146
150
|
def alert_channel_subscriptions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]]):
|
147
151
|
pulumi.set(self, "alert_channel_subscriptions", value)
|
148
152
|
|
149
|
-
@property
|
153
|
+
@_builtins.property
|
150
154
|
@pulumi.getter(name="alertSettings")
|
151
155
|
def alert_settings(self) -> Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']]:
|
152
156
|
"""
|
@@ -158,119 +162,119 @@ class UrlMonitorArgs:
|
|
158
162
|
def alert_settings(self, value: Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']]):
|
159
163
|
pulumi.set(self, "alert_settings", value)
|
160
164
|
|
161
|
-
@property
|
165
|
+
@_builtins.property
|
162
166
|
@pulumi.getter(name="degradedResponseTime")
|
163
|
-
def degraded_response_time(self) -> Optional[pulumi.Input[int]]:
|
167
|
+
def degraded_response_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
164
168
|
"""
|
165
169
|
The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
166
170
|
"""
|
167
171
|
return pulumi.get(self, "degraded_response_time")
|
168
172
|
|
169
173
|
@degraded_response_time.setter
|
170
|
-
def degraded_response_time(self, value: Optional[pulumi.Input[int]]):
|
174
|
+
def degraded_response_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
171
175
|
pulumi.set(self, "degraded_response_time", value)
|
172
176
|
|
173
|
-
@property
|
177
|
+
@_builtins.property
|
174
178
|
@pulumi.getter(name="frequencyOffset")
|
175
|
-
def frequency_offset(self) -> Optional[pulumi.Input[int]]:
|
179
|
+
def frequency_offset(self) -> Optional[pulumi.Input[_builtins.int]]:
|
176
180
|
"""
|
177
181
|
To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
178
182
|
"""
|
179
183
|
return pulumi.get(self, "frequency_offset")
|
180
184
|
|
181
185
|
@frequency_offset.setter
|
182
|
-
def frequency_offset(self, value: Optional[pulumi.Input[int]]):
|
186
|
+
def frequency_offset(self, value: Optional[pulumi.Input[_builtins.int]]):
|
183
187
|
pulumi.set(self, "frequency_offset", value)
|
184
188
|
|
185
|
-
@property
|
189
|
+
@_builtins.property
|
186
190
|
@pulumi.getter(name="groupId")
|
187
|
-
def group_id(self) -> Optional[pulumi.Input[int]]:
|
191
|
+
def group_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
188
192
|
"""
|
189
193
|
The ID of the check group that this monitor is part of.
|
190
194
|
"""
|
191
195
|
return pulumi.get(self, "group_id")
|
192
196
|
|
193
197
|
@group_id.setter
|
194
|
-
def group_id(self, value: Optional[pulumi.Input[int]]):
|
198
|
+
def group_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
195
199
|
pulumi.set(self, "group_id", value)
|
196
200
|
|
197
|
-
@property
|
201
|
+
@_builtins.property
|
198
202
|
@pulumi.getter(name="groupOrder")
|
199
|
-
def group_order(self) -> Optional[pulumi.Input[int]]:
|
203
|
+
def group_order(self) -> Optional[pulumi.Input[_builtins.int]]:
|
200
204
|
"""
|
201
205
|
The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
202
206
|
"""
|
203
207
|
return pulumi.get(self, "group_order")
|
204
208
|
|
205
209
|
@group_order.setter
|
206
|
-
def group_order(self, value: Optional[pulumi.Input[int]]):
|
210
|
+
def group_order(self, value: Optional[pulumi.Input[_builtins.int]]):
|
207
211
|
pulumi.set(self, "group_order", value)
|
208
212
|
|
209
|
-
@property
|
213
|
+
@_builtins.property
|
210
214
|
@pulumi.getter
|
211
|
-
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
215
|
+
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
212
216
|
"""
|
213
217
|
An array of one or more data center locations where to run the this monitor.
|
214
218
|
"""
|
215
219
|
return pulumi.get(self, "locations")
|
216
220
|
|
217
221
|
@locations.setter
|
218
|
-
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
222
|
+
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
219
223
|
pulumi.set(self, "locations", value)
|
220
224
|
|
221
|
-
@property
|
225
|
+
@_builtins.property
|
222
226
|
@pulumi.getter(name="maxResponseTime")
|
223
|
-
def max_response_time(self) -> Optional[pulumi.Input[int]]:
|
227
|
+
def max_response_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
224
228
|
"""
|
225
229
|
The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
226
230
|
"""
|
227
231
|
return pulumi.get(self, "max_response_time")
|
228
232
|
|
229
233
|
@max_response_time.setter
|
230
|
-
def max_response_time(self, value: Optional[pulumi.Input[int]]):
|
234
|
+
def max_response_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
231
235
|
pulumi.set(self, "max_response_time", value)
|
232
236
|
|
233
|
-
@property
|
237
|
+
@_builtins.property
|
234
238
|
@pulumi.getter
|
235
|
-
def muted(self) -> Optional[pulumi.Input[bool]]:
|
239
|
+
def muted(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
236
240
|
"""
|
237
241
|
Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
238
242
|
"""
|
239
243
|
return pulumi.get(self, "muted")
|
240
244
|
|
241
245
|
@muted.setter
|
242
|
-
def muted(self, value: Optional[pulumi.Input[bool]]):
|
246
|
+
def muted(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
243
247
|
pulumi.set(self, "muted", value)
|
244
248
|
|
245
|
-
@property
|
249
|
+
@_builtins.property
|
246
250
|
@pulumi.getter
|
247
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
251
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
248
252
|
"""
|
249
253
|
The name of the monitor.
|
250
254
|
"""
|
251
255
|
return pulumi.get(self, "name")
|
252
256
|
|
253
257
|
@name.setter
|
254
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
258
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
255
259
|
pulumi.set(self, "name", value)
|
256
260
|
|
257
|
-
@property
|
261
|
+
@_builtins.property
|
258
262
|
@pulumi.getter(name="privateLocations")
|
259
|
-
def private_locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
263
|
+
def private_locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
260
264
|
"""
|
261
265
|
An array of one or more private locations slugs.
|
262
266
|
"""
|
263
267
|
return pulumi.get(self, "private_locations")
|
264
268
|
|
265
269
|
@private_locations.setter
|
266
|
-
def private_locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
270
|
+
def private_locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
267
271
|
pulumi.set(self, "private_locations", value)
|
268
272
|
|
269
|
-
@property
|
273
|
+
@_builtins.property
|
270
274
|
@pulumi.getter(name="retryStrategy")
|
271
275
|
def retry_strategy(self) -> Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']]:
|
272
276
|
"""
|
273
|
-
A strategy for retrying failed monitor runs.
|
277
|
+
A strategy for retrying failed check/monitor runs.
|
274
278
|
"""
|
275
279
|
return pulumi.get(self, "retry_strategy")
|
276
280
|
|
@@ -278,98 +282,112 @@ class UrlMonitorArgs:
|
|
278
282
|
def retry_strategy(self, value: Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']]):
|
279
283
|
pulumi.set(self, "retry_strategy", value)
|
280
284
|
|
281
|
-
@property
|
285
|
+
@_builtins.property
|
282
286
|
@pulumi.getter(name="runParallel")
|
283
|
-
def run_parallel(self) -> Optional[pulumi.Input[bool]]:
|
287
|
+
def run_parallel(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
284
288
|
"""
|
285
289
|
Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
286
290
|
"""
|
287
291
|
return pulumi.get(self, "run_parallel")
|
288
292
|
|
289
293
|
@run_parallel.setter
|
290
|
-
def run_parallel(self, value: Optional[pulumi.Input[bool]]):
|
294
|
+
def run_parallel(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
291
295
|
pulumi.set(self, "run_parallel", value)
|
292
296
|
|
293
|
-
@property
|
297
|
+
@_builtins.property
|
294
298
|
@pulumi.getter(name="shouldFail")
|
295
|
-
def should_fail(self) -> Optional[pulumi.Input[bool]]:
|
299
|
+
def should_fail(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
296
300
|
"""
|
297
301
|
Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
298
302
|
"""
|
299
303
|
return pulumi.get(self, "should_fail")
|
300
304
|
|
301
305
|
@should_fail.setter
|
302
|
-
def should_fail(self, value: Optional[pulumi.Input[bool]]):
|
306
|
+
def should_fail(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
303
307
|
pulumi.set(self, "should_fail", value)
|
304
308
|
|
305
|
-
@property
|
309
|
+
@_builtins.property
|
306
310
|
@pulumi.getter
|
307
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
311
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
308
312
|
"""
|
309
313
|
A list of tags for organizing and filtering checks and monitors.
|
310
314
|
"""
|
311
315
|
return pulumi.get(self, "tags")
|
312
316
|
|
313
317
|
@tags.setter
|
314
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
318
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
315
319
|
pulumi.set(self, "tags", value)
|
316
320
|
|
317
|
-
@property
|
321
|
+
@_builtins.property
|
322
|
+
@pulumi.getter(name="triggerIncident")
|
323
|
+
def trigger_incident(self) -> Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']]:
|
324
|
+
"""
|
325
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
326
|
+
"""
|
327
|
+
return pulumi.get(self, "trigger_incident")
|
328
|
+
|
329
|
+
@trigger_incident.setter
|
330
|
+
def trigger_incident(self, value: Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']]):
|
331
|
+
pulumi.set(self, "trigger_incident", value)
|
332
|
+
|
333
|
+
@_builtins.property
|
318
334
|
@pulumi.getter(name="useGlobalAlertSettings")
|
319
|
-
def use_global_alert_settings(self) -> Optional[pulumi.Input[bool]]:
|
335
|
+
def use_global_alert_settings(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
320
336
|
"""
|
321
337
|
When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
322
338
|
"""
|
323
339
|
return pulumi.get(self, "use_global_alert_settings")
|
324
340
|
|
325
341
|
@use_global_alert_settings.setter
|
326
|
-
def use_global_alert_settings(self, value: Optional[pulumi.Input[bool]]):
|
342
|
+
def use_global_alert_settings(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
327
343
|
pulumi.set(self, "use_global_alert_settings", value)
|
328
344
|
|
329
345
|
|
330
346
|
@pulumi.input_type
|
331
347
|
class _UrlMonitorState:
|
332
348
|
def __init__(__self__, *,
|
333
|
-
activated: Optional[pulumi.Input[bool]] = None,
|
349
|
+
activated: Optional[pulumi.Input[_builtins.bool]] = None,
|
334
350
|
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]] = None,
|
335
351
|
alert_settings: Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']] = None,
|
336
|
-
degraded_response_time: Optional[pulumi.Input[int]] = None,
|
337
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
338
|
-
frequency_offset: Optional[pulumi.Input[int]] = None,
|
339
|
-
group_id: Optional[pulumi.Input[int]] = None,
|
340
|
-
group_order: Optional[pulumi.Input[int]] = None,
|
341
|
-
locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
342
|
-
max_response_time: Optional[pulumi.Input[int]] = None,
|
343
|
-
muted: Optional[pulumi.Input[bool]] = None,
|
344
|
-
name: Optional[pulumi.Input[str]] = None,
|
345
|
-
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
352
|
+
degraded_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
353
|
+
frequency: Optional[pulumi.Input[_builtins.int]] = None,
|
354
|
+
frequency_offset: Optional[pulumi.Input[_builtins.int]] = None,
|
355
|
+
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
356
|
+
group_order: Optional[pulumi.Input[_builtins.int]] = None,
|
357
|
+
locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
358
|
+
max_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
359
|
+
muted: Optional[pulumi.Input[_builtins.bool]] = None,
|
360
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
361
|
+
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
346
362
|
request: Optional[pulumi.Input['UrlMonitorRequestArgs']] = None,
|
347
363
|
retry_strategy: Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']] = None,
|
348
|
-
run_parallel: Optional[pulumi.Input[bool]] = None,
|
349
|
-
should_fail: Optional[pulumi.Input[bool]] = None,
|
350
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
351
|
-
|
364
|
+
run_parallel: Optional[pulumi.Input[_builtins.bool]] = None,
|
365
|
+
should_fail: Optional[pulumi.Input[_builtins.bool]] = None,
|
366
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
367
|
+
trigger_incident: Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']] = None,
|
368
|
+
use_global_alert_settings: Optional[pulumi.Input[_builtins.bool]] = None):
|
352
369
|
"""
|
353
370
|
Input properties used for looking up and filtering UrlMonitor resources.
|
354
|
-
:param pulumi.Input[bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
371
|
+
:param pulumi.Input[_builtins.bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
355
372
|
:param pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]] alert_channel_subscriptions: An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your monitor, we won't be able to alert you.
|
356
373
|
:param pulumi.Input['UrlMonitorAlertSettingsArgs'] alert_settings: Determines the alert escalation policy for the monitor.
|
357
|
-
:param pulumi.Input[int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
358
|
-
:param pulumi.Input[int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
359
|
-
:param pulumi.Input[int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
360
|
-
:param pulumi.Input[int] group_id: The ID of the check group that this monitor is part of.
|
361
|
-
:param pulumi.Input[int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
362
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations: An array of one or more data center locations where to run the this monitor.
|
363
|
-
:param pulumi.Input[int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
364
|
-
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
365
|
-
:param pulumi.Input[str] name: The name of the monitor.
|
366
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_locations: An array of one or more private locations slugs.
|
374
|
+
:param pulumi.Input[_builtins.int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
375
|
+
:param pulumi.Input[_builtins.int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
376
|
+
:param pulumi.Input[_builtins.int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
377
|
+
:param pulumi.Input[_builtins.int] group_id: The ID of the check group that this monitor is part of.
|
378
|
+
:param pulumi.Input[_builtins.int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
379
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] locations: An array of one or more data center locations where to run the this monitor.
|
380
|
+
:param pulumi.Input[_builtins.int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
381
|
+
:param pulumi.Input[_builtins.bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
382
|
+
:param pulumi.Input[_builtins.str] name: The name of the monitor.
|
383
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] private_locations: An array of one or more private locations slugs.
|
367
384
|
:param pulumi.Input['UrlMonitorRequestArgs'] request: The parameters of the HTTP request.
|
368
|
-
:param pulumi.Input['UrlMonitorRetryStrategyArgs'] retry_strategy: A strategy for retrying failed monitor runs.
|
369
|
-
:param pulumi.Input[bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
370
|
-
:param pulumi.Input[bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
371
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
372
|
-
:param pulumi.Input[
|
385
|
+
:param pulumi.Input['UrlMonitorRetryStrategyArgs'] retry_strategy: A strategy for retrying failed check/monitor runs.
|
386
|
+
:param pulumi.Input[_builtins.bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
387
|
+
:param pulumi.Input[_builtins.bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
389
|
+
:param pulumi.Input['UrlMonitorTriggerIncidentArgs'] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
390
|
+
:param pulumi.Input[_builtins.bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
373
391
|
"""
|
374
392
|
if activated is not None:
|
375
393
|
pulumi.set(__self__, "activated", activated)
|
@@ -407,22 +425,24 @@ class _UrlMonitorState:
|
|
407
425
|
pulumi.set(__self__, "should_fail", should_fail)
|
408
426
|
if tags is not None:
|
409
427
|
pulumi.set(__self__, "tags", tags)
|
428
|
+
if trigger_incident is not None:
|
429
|
+
pulumi.set(__self__, "trigger_incident", trigger_incident)
|
410
430
|
if use_global_alert_settings is not None:
|
411
431
|
pulumi.set(__self__, "use_global_alert_settings", use_global_alert_settings)
|
412
432
|
|
413
|
-
@property
|
433
|
+
@_builtins.property
|
414
434
|
@pulumi.getter
|
415
|
-
def activated(self) -> Optional[pulumi.Input[bool]]:
|
435
|
+
def activated(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
416
436
|
"""
|
417
437
|
Determines whether the monitor will run periodically or not after being deployed.
|
418
438
|
"""
|
419
439
|
return pulumi.get(self, "activated")
|
420
440
|
|
421
441
|
@activated.setter
|
422
|
-
def activated(self, value: Optional[pulumi.Input[bool]]):
|
442
|
+
def activated(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
423
443
|
pulumi.set(self, "activated", value)
|
424
444
|
|
425
|
-
@property
|
445
|
+
@_builtins.property
|
426
446
|
@pulumi.getter(name="alertChannelSubscriptions")
|
427
447
|
def alert_channel_subscriptions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]]:
|
428
448
|
"""
|
@@ -434,7 +454,7 @@ class _UrlMonitorState:
|
|
434
454
|
def alert_channel_subscriptions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMonitorAlertChannelSubscriptionArgs']]]]):
|
435
455
|
pulumi.set(self, "alert_channel_subscriptions", value)
|
436
456
|
|
437
|
-
@property
|
457
|
+
@_builtins.property
|
438
458
|
@pulumi.getter(name="alertSettings")
|
439
459
|
def alert_settings(self) -> Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']]:
|
440
460
|
"""
|
@@ -446,127 +466,127 @@ class _UrlMonitorState:
|
|
446
466
|
def alert_settings(self, value: Optional[pulumi.Input['UrlMonitorAlertSettingsArgs']]):
|
447
467
|
pulumi.set(self, "alert_settings", value)
|
448
468
|
|
449
|
-
@property
|
469
|
+
@_builtins.property
|
450
470
|
@pulumi.getter(name="degradedResponseTime")
|
451
|
-
def degraded_response_time(self) -> Optional[pulumi.Input[int]]:
|
471
|
+
def degraded_response_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
452
472
|
"""
|
453
473
|
The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
454
474
|
"""
|
455
475
|
return pulumi.get(self, "degraded_response_time")
|
456
476
|
|
457
477
|
@degraded_response_time.setter
|
458
|
-
def degraded_response_time(self, value: Optional[pulumi.Input[int]]):
|
478
|
+
def degraded_response_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
459
479
|
pulumi.set(self, "degraded_response_time", value)
|
460
480
|
|
461
|
-
@property
|
481
|
+
@_builtins.property
|
462
482
|
@pulumi.getter
|
463
|
-
def frequency(self) -> Optional[pulumi.Input[int]]:
|
483
|
+
def frequency(self) -> Optional[pulumi.Input[_builtins.int]]:
|
464
484
|
"""
|
465
485
|
How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
466
486
|
"""
|
467
487
|
return pulumi.get(self, "frequency")
|
468
488
|
|
469
489
|
@frequency.setter
|
470
|
-
def frequency(self, value: Optional[pulumi.Input[int]]):
|
490
|
+
def frequency(self, value: Optional[pulumi.Input[_builtins.int]]):
|
471
491
|
pulumi.set(self, "frequency", value)
|
472
492
|
|
473
|
-
@property
|
493
|
+
@_builtins.property
|
474
494
|
@pulumi.getter(name="frequencyOffset")
|
475
|
-
def frequency_offset(self) -> Optional[pulumi.Input[int]]:
|
495
|
+
def frequency_offset(self) -> Optional[pulumi.Input[_builtins.int]]:
|
476
496
|
"""
|
477
497
|
To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
478
498
|
"""
|
479
499
|
return pulumi.get(self, "frequency_offset")
|
480
500
|
|
481
501
|
@frequency_offset.setter
|
482
|
-
def frequency_offset(self, value: Optional[pulumi.Input[int]]):
|
502
|
+
def frequency_offset(self, value: Optional[pulumi.Input[_builtins.int]]):
|
483
503
|
pulumi.set(self, "frequency_offset", value)
|
484
504
|
|
485
|
-
@property
|
505
|
+
@_builtins.property
|
486
506
|
@pulumi.getter(name="groupId")
|
487
|
-
def group_id(self) -> Optional[pulumi.Input[int]]:
|
507
|
+
def group_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
488
508
|
"""
|
489
509
|
The ID of the check group that this monitor is part of.
|
490
510
|
"""
|
491
511
|
return pulumi.get(self, "group_id")
|
492
512
|
|
493
513
|
@group_id.setter
|
494
|
-
def group_id(self, value: Optional[pulumi.Input[int]]):
|
514
|
+
def group_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
495
515
|
pulumi.set(self, "group_id", value)
|
496
516
|
|
497
|
-
@property
|
517
|
+
@_builtins.property
|
498
518
|
@pulumi.getter(name="groupOrder")
|
499
|
-
def group_order(self) -> Optional[pulumi.Input[int]]:
|
519
|
+
def group_order(self) -> Optional[pulumi.Input[_builtins.int]]:
|
500
520
|
"""
|
501
521
|
The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
502
522
|
"""
|
503
523
|
return pulumi.get(self, "group_order")
|
504
524
|
|
505
525
|
@group_order.setter
|
506
|
-
def group_order(self, value: Optional[pulumi.Input[int]]):
|
526
|
+
def group_order(self, value: Optional[pulumi.Input[_builtins.int]]):
|
507
527
|
pulumi.set(self, "group_order", value)
|
508
528
|
|
509
|
-
@property
|
529
|
+
@_builtins.property
|
510
530
|
@pulumi.getter
|
511
|
-
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
531
|
+
def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
512
532
|
"""
|
513
533
|
An array of one or more data center locations where to run the this monitor.
|
514
534
|
"""
|
515
535
|
return pulumi.get(self, "locations")
|
516
536
|
|
517
537
|
@locations.setter
|
518
|
-
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
538
|
+
def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
519
539
|
pulumi.set(self, "locations", value)
|
520
540
|
|
521
|
-
@property
|
541
|
+
@_builtins.property
|
522
542
|
@pulumi.getter(name="maxResponseTime")
|
523
|
-
def max_response_time(self) -> Optional[pulumi.Input[int]]:
|
543
|
+
def max_response_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
524
544
|
"""
|
525
545
|
The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
526
546
|
"""
|
527
547
|
return pulumi.get(self, "max_response_time")
|
528
548
|
|
529
549
|
@max_response_time.setter
|
530
|
-
def max_response_time(self, value: Optional[pulumi.Input[int]]):
|
550
|
+
def max_response_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
531
551
|
pulumi.set(self, "max_response_time", value)
|
532
552
|
|
533
|
-
@property
|
553
|
+
@_builtins.property
|
534
554
|
@pulumi.getter
|
535
|
-
def muted(self) -> Optional[pulumi.Input[bool]]:
|
555
|
+
def muted(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
536
556
|
"""
|
537
557
|
Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
538
558
|
"""
|
539
559
|
return pulumi.get(self, "muted")
|
540
560
|
|
541
561
|
@muted.setter
|
542
|
-
def muted(self, value: Optional[pulumi.Input[bool]]):
|
562
|
+
def muted(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
543
563
|
pulumi.set(self, "muted", value)
|
544
564
|
|
545
|
-
@property
|
565
|
+
@_builtins.property
|
546
566
|
@pulumi.getter
|
547
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
567
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
548
568
|
"""
|
549
569
|
The name of the monitor.
|
550
570
|
"""
|
551
571
|
return pulumi.get(self, "name")
|
552
572
|
|
553
573
|
@name.setter
|
554
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
574
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
555
575
|
pulumi.set(self, "name", value)
|
556
576
|
|
557
|
-
@property
|
577
|
+
@_builtins.property
|
558
578
|
@pulumi.getter(name="privateLocations")
|
559
|
-
def private_locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
579
|
+
def private_locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
560
580
|
"""
|
561
581
|
An array of one or more private locations slugs.
|
562
582
|
"""
|
563
583
|
return pulumi.get(self, "private_locations")
|
564
584
|
|
565
585
|
@private_locations.setter
|
566
|
-
def private_locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
586
|
+
def private_locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
567
587
|
pulumi.set(self, "private_locations", value)
|
568
588
|
|
569
|
-
@property
|
589
|
+
@_builtins.property
|
570
590
|
@pulumi.getter
|
571
591
|
def request(self) -> Optional[pulumi.Input['UrlMonitorRequestArgs']]:
|
572
592
|
"""
|
@@ -578,11 +598,11 @@ class _UrlMonitorState:
|
|
578
598
|
def request(self, value: Optional[pulumi.Input['UrlMonitorRequestArgs']]):
|
579
599
|
pulumi.set(self, "request", value)
|
580
600
|
|
581
|
-
@property
|
601
|
+
@_builtins.property
|
582
602
|
@pulumi.getter(name="retryStrategy")
|
583
603
|
def retry_strategy(self) -> Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']]:
|
584
604
|
"""
|
585
|
-
A strategy for retrying failed monitor runs.
|
605
|
+
A strategy for retrying failed check/monitor runs.
|
586
606
|
"""
|
587
607
|
return pulumi.get(self, "retry_strategy")
|
588
608
|
|
@@ -590,79 +610,93 @@ class _UrlMonitorState:
|
|
590
610
|
def retry_strategy(self, value: Optional[pulumi.Input['UrlMonitorRetryStrategyArgs']]):
|
591
611
|
pulumi.set(self, "retry_strategy", value)
|
592
612
|
|
593
|
-
@property
|
613
|
+
@_builtins.property
|
594
614
|
@pulumi.getter(name="runParallel")
|
595
|
-
def run_parallel(self) -> Optional[pulumi.Input[bool]]:
|
615
|
+
def run_parallel(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
596
616
|
"""
|
597
617
|
Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
598
618
|
"""
|
599
619
|
return pulumi.get(self, "run_parallel")
|
600
620
|
|
601
621
|
@run_parallel.setter
|
602
|
-
def run_parallel(self, value: Optional[pulumi.Input[bool]]):
|
622
|
+
def run_parallel(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
603
623
|
pulumi.set(self, "run_parallel", value)
|
604
624
|
|
605
|
-
@property
|
625
|
+
@_builtins.property
|
606
626
|
@pulumi.getter(name="shouldFail")
|
607
|
-
def should_fail(self) -> Optional[pulumi.Input[bool]]:
|
627
|
+
def should_fail(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
608
628
|
"""
|
609
629
|
Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
610
630
|
"""
|
611
631
|
return pulumi.get(self, "should_fail")
|
612
632
|
|
613
633
|
@should_fail.setter
|
614
|
-
def should_fail(self, value: Optional[pulumi.Input[bool]]):
|
634
|
+
def should_fail(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
615
635
|
pulumi.set(self, "should_fail", value)
|
616
636
|
|
617
|
-
@property
|
637
|
+
@_builtins.property
|
618
638
|
@pulumi.getter
|
619
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
639
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
620
640
|
"""
|
621
641
|
A list of tags for organizing and filtering checks and monitors.
|
622
642
|
"""
|
623
643
|
return pulumi.get(self, "tags")
|
624
644
|
|
625
645
|
@tags.setter
|
626
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
646
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
627
647
|
pulumi.set(self, "tags", value)
|
628
648
|
|
629
|
-
@property
|
649
|
+
@_builtins.property
|
650
|
+
@pulumi.getter(name="triggerIncident")
|
651
|
+
def trigger_incident(self) -> Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']]:
|
652
|
+
"""
|
653
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
654
|
+
"""
|
655
|
+
return pulumi.get(self, "trigger_incident")
|
656
|
+
|
657
|
+
@trigger_incident.setter
|
658
|
+
def trigger_incident(self, value: Optional[pulumi.Input['UrlMonitorTriggerIncidentArgs']]):
|
659
|
+
pulumi.set(self, "trigger_incident", value)
|
660
|
+
|
661
|
+
@_builtins.property
|
630
662
|
@pulumi.getter(name="useGlobalAlertSettings")
|
631
|
-
def use_global_alert_settings(self) -> Optional[pulumi.Input[bool]]:
|
663
|
+
def use_global_alert_settings(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
632
664
|
"""
|
633
665
|
When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
634
666
|
"""
|
635
667
|
return pulumi.get(self, "use_global_alert_settings")
|
636
668
|
|
637
669
|
@use_global_alert_settings.setter
|
638
|
-
def use_global_alert_settings(self, value: Optional[pulumi.Input[bool]]):
|
670
|
+
def use_global_alert_settings(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
639
671
|
pulumi.set(self, "use_global_alert_settings", value)
|
640
672
|
|
641
673
|
|
674
|
+
@pulumi.type_token("checkly:index/urlMonitor:UrlMonitor")
|
642
675
|
class UrlMonitor(pulumi.CustomResource):
|
643
676
|
@overload
|
644
677
|
def __init__(__self__,
|
645
678
|
resource_name: str,
|
646
679
|
opts: Optional[pulumi.ResourceOptions] = None,
|
647
|
-
activated: Optional[pulumi.Input[bool]] = None,
|
680
|
+
activated: Optional[pulumi.Input[_builtins.bool]] = None,
|
648
681
|
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['UrlMonitorAlertChannelSubscriptionArgs', 'UrlMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
649
682
|
alert_settings: Optional[pulumi.Input[Union['UrlMonitorAlertSettingsArgs', 'UrlMonitorAlertSettingsArgsDict']]] = None,
|
650
|
-
degraded_response_time: Optional[pulumi.Input[int]] = None,
|
651
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
652
|
-
frequency_offset: Optional[pulumi.Input[int]] = None,
|
653
|
-
group_id: Optional[pulumi.Input[int]] = None,
|
654
|
-
group_order: Optional[pulumi.Input[int]] = None,
|
655
|
-
locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
656
|
-
max_response_time: Optional[pulumi.Input[int]] = None,
|
657
|
-
muted: Optional[pulumi.Input[bool]] = None,
|
658
|
-
name: Optional[pulumi.Input[str]] = None,
|
659
|
-
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
683
|
+
degraded_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
684
|
+
frequency: Optional[pulumi.Input[_builtins.int]] = None,
|
685
|
+
frequency_offset: Optional[pulumi.Input[_builtins.int]] = None,
|
686
|
+
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
687
|
+
group_order: Optional[pulumi.Input[_builtins.int]] = None,
|
688
|
+
locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
689
|
+
max_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
690
|
+
muted: Optional[pulumi.Input[_builtins.bool]] = None,
|
691
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
692
|
+
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
660
693
|
request: Optional[pulumi.Input[Union['UrlMonitorRequestArgs', 'UrlMonitorRequestArgsDict']]] = None,
|
661
694
|
retry_strategy: Optional[pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']]] = None,
|
662
|
-
run_parallel: Optional[pulumi.Input[bool]] = None,
|
663
|
-
should_fail: Optional[pulumi.Input[bool]] = None,
|
664
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
665
|
-
|
695
|
+
run_parallel: Optional[pulumi.Input[_builtins.bool]] = None,
|
696
|
+
should_fail: Optional[pulumi.Input[_builtins.bool]] = None,
|
697
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
698
|
+
trigger_incident: Optional[pulumi.Input[Union['UrlMonitorTriggerIncidentArgs', 'UrlMonitorTriggerIncidentArgsDict']]] = None,
|
699
|
+
use_global_alert_settings: Optional[pulumi.Input[_builtins.bool]] = None,
|
666
700
|
__props__=None):
|
667
701
|
"""
|
668
702
|
Creates a URL Monitor to check HTTP endpoint availability and response times.
|
@@ -691,25 +725,26 @@ class UrlMonitor(pulumi.CustomResource):
|
|
691
725
|
|
692
726
|
:param str resource_name: The name of the resource.
|
693
727
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
694
|
-
:param pulumi.Input[bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
728
|
+
:param pulumi.Input[_builtins.bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
695
729
|
:param pulumi.Input[Sequence[pulumi.Input[Union['UrlMonitorAlertChannelSubscriptionArgs', 'UrlMonitorAlertChannelSubscriptionArgsDict']]]] alert_channel_subscriptions: An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your monitor, we won't be able to alert you.
|
696
730
|
:param pulumi.Input[Union['UrlMonitorAlertSettingsArgs', 'UrlMonitorAlertSettingsArgsDict']] alert_settings: Determines the alert escalation policy for the monitor.
|
697
|
-
:param pulumi.Input[int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
698
|
-
:param pulumi.Input[int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
699
|
-
:param pulumi.Input[int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
700
|
-
:param pulumi.Input[int] group_id: The ID of the check group that this monitor is part of.
|
701
|
-
:param pulumi.Input[int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
702
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations: An array of one or more data center locations where to run the this monitor.
|
703
|
-
:param pulumi.Input[int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
704
|
-
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
705
|
-
:param pulumi.Input[str] name: The name of the monitor.
|
706
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_locations: An array of one or more private locations slugs.
|
731
|
+
:param pulumi.Input[_builtins.int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
732
|
+
:param pulumi.Input[_builtins.int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
733
|
+
:param pulumi.Input[_builtins.int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
734
|
+
:param pulumi.Input[_builtins.int] group_id: The ID of the check group that this monitor is part of.
|
735
|
+
:param pulumi.Input[_builtins.int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
736
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] locations: An array of one or more data center locations where to run the this monitor.
|
737
|
+
:param pulumi.Input[_builtins.int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
738
|
+
:param pulumi.Input[_builtins.bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
739
|
+
:param pulumi.Input[_builtins.str] name: The name of the monitor.
|
740
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] private_locations: An array of one or more private locations slugs.
|
707
741
|
:param pulumi.Input[Union['UrlMonitorRequestArgs', 'UrlMonitorRequestArgsDict']] request: The parameters of the HTTP request.
|
708
|
-
:param pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']] retry_strategy: A strategy for retrying failed monitor runs.
|
709
|
-
:param pulumi.Input[bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
710
|
-
:param pulumi.Input[bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
711
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
712
|
-
:param pulumi.Input[
|
742
|
+
:param pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']] retry_strategy: A strategy for retrying failed check/monitor runs.
|
743
|
+
:param pulumi.Input[_builtins.bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
744
|
+
:param pulumi.Input[_builtins.bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
745
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
746
|
+
:param pulumi.Input[Union['UrlMonitorTriggerIncidentArgs', 'UrlMonitorTriggerIncidentArgsDict']] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
747
|
+
:param pulumi.Input[_builtins.bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
713
748
|
"""
|
714
749
|
...
|
715
750
|
@overload
|
@@ -757,25 +792,26 @@ class UrlMonitor(pulumi.CustomResource):
|
|
757
792
|
def _internal_init(__self__,
|
758
793
|
resource_name: str,
|
759
794
|
opts: Optional[pulumi.ResourceOptions] = None,
|
760
|
-
activated: Optional[pulumi.Input[bool]] = None,
|
795
|
+
activated: Optional[pulumi.Input[_builtins.bool]] = None,
|
761
796
|
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['UrlMonitorAlertChannelSubscriptionArgs', 'UrlMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
762
797
|
alert_settings: Optional[pulumi.Input[Union['UrlMonitorAlertSettingsArgs', 'UrlMonitorAlertSettingsArgsDict']]] = None,
|
763
|
-
degraded_response_time: Optional[pulumi.Input[int]] = None,
|
764
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
765
|
-
frequency_offset: Optional[pulumi.Input[int]] = None,
|
766
|
-
group_id: Optional[pulumi.Input[int]] = None,
|
767
|
-
group_order: Optional[pulumi.Input[int]] = None,
|
768
|
-
locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
769
|
-
max_response_time: Optional[pulumi.Input[int]] = None,
|
770
|
-
muted: Optional[pulumi.Input[bool]] = None,
|
771
|
-
name: Optional[pulumi.Input[str]] = None,
|
772
|
-
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
798
|
+
degraded_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
799
|
+
frequency: Optional[pulumi.Input[_builtins.int]] = None,
|
800
|
+
frequency_offset: Optional[pulumi.Input[_builtins.int]] = None,
|
801
|
+
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
802
|
+
group_order: Optional[pulumi.Input[_builtins.int]] = None,
|
803
|
+
locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
804
|
+
max_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
805
|
+
muted: Optional[pulumi.Input[_builtins.bool]] = None,
|
806
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
807
|
+
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
773
808
|
request: Optional[pulumi.Input[Union['UrlMonitorRequestArgs', 'UrlMonitorRequestArgsDict']]] = None,
|
774
809
|
retry_strategy: Optional[pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']]] = None,
|
775
|
-
run_parallel: Optional[pulumi.Input[bool]] = None,
|
776
|
-
should_fail: Optional[pulumi.Input[bool]] = None,
|
777
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
778
|
-
|
810
|
+
run_parallel: Optional[pulumi.Input[_builtins.bool]] = None,
|
811
|
+
should_fail: Optional[pulumi.Input[_builtins.bool]] = None,
|
812
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
813
|
+
trigger_incident: Optional[pulumi.Input[Union['UrlMonitorTriggerIncidentArgs', 'UrlMonitorTriggerIncidentArgsDict']]] = None,
|
814
|
+
use_global_alert_settings: Optional[pulumi.Input[_builtins.bool]] = None,
|
779
815
|
__props__=None):
|
780
816
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
781
817
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -809,6 +845,7 @@ class UrlMonitor(pulumi.CustomResource):
|
|
809
845
|
__props__.__dict__["run_parallel"] = run_parallel
|
810
846
|
__props__.__dict__["should_fail"] = should_fail
|
811
847
|
__props__.__dict__["tags"] = tags
|
848
|
+
__props__.__dict__["trigger_incident"] = trigger_incident
|
812
849
|
__props__.__dict__["use_global_alert_settings"] = use_global_alert_settings
|
813
850
|
super(UrlMonitor, __self__).__init__(
|
814
851
|
'checkly:index/urlMonitor:UrlMonitor',
|
@@ -820,25 +857,26 @@ class UrlMonitor(pulumi.CustomResource):
|
|
820
857
|
def get(resource_name: str,
|
821
858
|
id: pulumi.Input[str],
|
822
859
|
opts: Optional[pulumi.ResourceOptions] = None,
|
823
|
-
activated: Optional[pulumi.Input[bool]] = None,
|
860
|
+
activated: Optional[pulumi.Input[_builtins.bool]] = None,
|
824
861
|
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['UrlMonitorAlertChannelSubscriptionArgs', 'UrlMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
825
862
|
alert_settings: Optional[pulumi.Input[Union['UrlMonitorAlertSettingsArgs', 'UrlMonitorAlertSettingsArgsDict']]] = None,
|
826
|
-
degraded_response_time: Optional[pulumi.Input[int]] = None,
|
827
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
828
|
-
frequency_offset: Optional[pulumi.Input[int]] = None,
|
829
|
-
group_id: Optional[pulumi.Input[int]] = None,
|
830
|
-
group_order: Optional[pulumi.Input[int]] = None,
|
831
|
-
locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
832
|
-
max_response_time: Optional[pulumi.Input[int]] = None,
|
833
|
-
muted: Optional[pulumi.Input[bool]] = None,
|
834
|
-
name: Optional[pulumi.Input[str]] = None,
|
835
|
-
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
863
|
+
degraded_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
864
|
+
frequency: Optional[pulumi.Input[_builtins.int]] = None,
|
865
|
+
frequency_offset: Optional[pulumi.Input[_builtins.int]] = None,
|
866
|
+
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
867
|
+
group_order: Optional[pulumi.Input[_builtins.int]] = None,
|
868
|
+
locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
869
|
+
max_response_time: Optional[pulumi.Input[_builtins.int]] = None,
|
870
|
+
muted: Optional[pulumi.Input[_builtins.bool]] = None,
|
871
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
872
|
+
private_locations: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
836
873
|
request: Optional[pulumi.Input[Union['UrlMonitorRequestArgs', 'UrlMonitorRequestArgsDict']]] = None,
|
837
874
|
retry_strategy: Optional[pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']]] = None,
|
838
|
-
run_parallel: Optional[pulumi.Input[bool]] = None,
|
839
|
-
should_fail: Optional[pulumi.Input[bool]] = None,
|
840
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
841
|
-
|
875
|
+
run_parallel: Optional[pulumi.Input[_builtins.bool]] = None,
|
876
|
+
should_fail: Optional[pulumi.Input[_builtins.bool]] = None,
|
877
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
878
|
+
trigger_incident: Optional[pulumi.Input[Union['UrlMonitorTriggerIncidentArgs', 'UrlMonitorTriggerIncidentArgsDict']]] = None,
|
879
|
+
use_global_alert_settings: Optional[pulumi.Input[_builtins.bool]] = None) -> 'UrlMonitor':
|
842
880
|
"""
|
843
881
|
Get an existing UrlMonitor resource's state with the given name, id, and optional extra
|
844
882
|
properties used to qualify the lookup.
|
@@ -846,25 +884,26 @@ class UrlMonitor(pulumi.CustomResource):
|
|
846
884
|
:param str resource_name: The unique name of the resulting resource.
|
847
885
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
848
886
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
849
|
-
:param pulumi.Input[bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
887
|
+
:param pulumi.Input[_builtins.bool] activated: Determines whether the monitor will run periodically or not after being deployed.
|
850
888
|
:param pulumi.Input[Sequence[pulumi.Input[Union['UrlMonitorAlertChannelSubscriptionArgs', 'UrlMonitorAlertChannelSubscriptionArgsDict']]]] alert_channel_subscriptions: An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your monitor, we won't be able to alert you.
|
851
889
|
:param pulumi.Input[Union['UrlMonitorAlertSettingsArgs', 'UrlMonitorAlertSettingsArgsDict']] alert_settings: Determines the alert escalation policy for the monitor.
|
852
|
-
:param pulumi.Input[int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
853
|
-
:param pulumi.Input[int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
854
|
-
:param pulumi.Input[int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
855
|
-
:param pulumi.Input[int] group_id: The ID of the check group that this monitor is part of.
|
856
|
-
:param pulumi.Input[int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
857
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] locations: An array of one or more data center locations where to run the this monitor.
|
858
|
-
:param pulumi.Input[int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
859
|
-
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
860
|
-
:param pulumi.Input[str] name: The name of the monitor.
|
861
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] private_locations: An array of one or more private locations slugs.
|
890
|
+
:param pulumi.Input[_builtins.int] degraded_response_time: The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
891
|
+
:param pulumi.Input[_builtins.int] frequency: How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
892
|
+
:param pulumi.Input[_builtins.int] frequency_offset: To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
893
|
+
:param pulumi.Input[_builtins.int] group_id: The ID of the check group that this monitor is part of.
|
894
|
+
:param pulumi.Input[_builtins.int] group_order: The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
895
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] locations: An array of one or more data center locations where to run the this monitor.
|
896
|
+
:param pulumi.Input[_builtins.int] max_response_time: The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
897
|
+
:param pulumi.Input[_builtins.bool] muted: Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
898
|
+
:param pulumi.Input[_builtins.str] name: The name of the monitor.
|
899
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] private_locations: An array of one or more private locations slugs.
|
862
900
|
:param pulumi.Input[Union['UrlMonitorRequestArgs', 'UrlMonitorRequestArgsDict']] request: The parameters of the HTTP request.
|
863
|
-
:param pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']] retry_strategy: A strategy for retrying failed monitor runs.
|
864
|
-
:param pulumi.Input[bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
865
|
-
:param pulumi.Input[bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
866
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
867
|
-
:param pulumi.Input[
|
901
|
+
:param pulumi.Input[Union['UrlMonitorRetryStrategyArgs', 'UrlMonitorRetryStrategyArgsDict']] retry_strategy: A strategy for retrying failed check/monitor runs.
|
902
|
+
:param pulumi.Input[_builtins.bool] run_parallel: Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
903
|
+
:param pulumi.Input[_builtins.bool] should_fail: Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
904
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags for organizing and filtering checks and monitors.
|
905
|
+
:param pulumi.Input[Union['UrlMonitorTriggerIncidentArgs', 'UrlMonitorTriggerIncidentArgsDict']] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
906
|
+
:param pulumi.Input[_builtins.bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
868
907
|
"""
|
869
908
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
870
909
|
|
@@ -888,18 +927,19 @@ class UrlMonitor(pulumi.CustomResource):
|
|
888
927
|
__props__.__dict__["run_parallel"] = run_parallel
|
889
928
|
__props__.__dict__["should_fail"] = should_fail
|
890
929
|
__props__.__dict__["tags"] = tags
|
930
|
+
__props__.__dict__["trigger_incident"] = trigger_incident
|
891
931
|
__props__.__dict__["use_global_alert_settings"] = use_global_alert_settings
|
892
932
|
return UrlMonitor(resource_name, opts=opts, __props__=__props__)
|
893
933
|
|
894
|
-
@property
|
934
|
+
@_builtins.property
|
895
935
|
@pulumi.getter
|
896
|
-
def activated(self) -> pulumi.Output[bool]:
|
936
|
+
def activated(self) -> pulumi.Output[_builtins.bool]:
|
897
937
|
"""
|
898
938
|
Determines whether the monitor will run periodically or not after being deployed.
|
899
939
|
"""
|
900
940
|
return pulumi.get(self, "activated")
|
901
941
|
|
902
|
-
@property
|
942
|
+
@_builtins.property
|
903
943
|
@pulumi.getter(name="alertChannelSubscriptions")
|
904
944
|
def alert_channel_subscriptions(self) -> pulumi.Output[Optional[Sequence['outputs.UrlMonitorAlertChannelSubscription']]]:
|
905
945
|
"""
|
@@ -907,7 +947,7 @@ class UrlMonitor(pulumi.CustomResource):
|
|
907
947
|
"""
|
908
948
|
return pulumi.get(self, "alert_channel_subscriptions")
|
909
949
|
|
910
|
-
@property
|
950
|
+
@_builtins.property
|
911
951
|
@pulumi.getter(name="alertSettings")
|
912
952
|
def alert_settings(self) -> pulumi.Output['outputs.UrlMonitorAlertSettings']:
|
913
953
|
"""
|
@@ -915,87 +955,87 @@ class UrlMonitor(pulumi.CustomResource):
|
|
915
955
|
"""
|
916
956
|
return pulumi.get(self, "alert_settings")
|
917
957
|
|
918
|
-
@property
|
958
|
+
@_builtins.property
|
919
959
|
@pulumi.getter(name="degradedResponseTime")
|
920
|
-
def degraded_response_time(self) -> pulumi.Output[Optional[int]]:
|
960
|
+
def degraded_response_time(self) -> pulumi.Output[Optional[_builtins.int]]:
|
921
961
|
"""
|
922
962
|
The response time in milliseconds where the monitor should be considered degraded. Possible values are between `0` and `30000`. (Default `3000`).
|
923
963
|
"""
|
924
964
|
return pulumi.get(self, "degraded_response_time")
|
925
965
|
|
926
|
-
@property
|
966
|
+
@_builtins.property
|
927
967
|
@pulumi.getter
|
928
|
-
def frequency(self) -> pulumi.Output[int]:
|
968
|
+
def frequency(self) -> pulumi.Output[_builtins.int]:
|
929
969
|
"""
|
930
970
|
How often the monitor should run in minutes. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
931
971
|
"""
|
932
972
|
return pulumi.get(self, "frequency")
|
933
973
|
|
934
|
-
@property
|
974
|
+
@_builtins.property
|
935
975
|
@pulumi.getter(name="frequencyOffset")
|
936
|
-
def frequency_offset(self) -> pulumi.Output[Optional[int]]:
|
976
|
+
def frequency_offset(self) -> pulumi.Output[Optional[_builtins.int]]:
|
937
977
|
"""
|
938
978
|
To create a high frequency monitor, set `frequency` to `0` and `frequency_offset` to `10`, `20`, or `30`.
|
939
979
|
"""
|
940
980
|
return pulumi.get(self, "frequency_offset")
|
941
981
|
|
942
|
-
@property
|
982
|
+
@_builtins.property
|
943
983
|
@pulumi.getter(name="groupId")
|
944
|
-
def group_id(self) -> pulumi.Output[Optional[int]]:
|
984
|
+
def group_id(self) -> pulumi.Output[Optional[_builtins.int]]:
|
945
985
|
"""
|
946
986
|
The ID of the check group that this monitor is part of.
|
947
987
|
"""
|
948
988
|
return pulumi.get(self, "group_id")
|
949
989
|
|
950
|
-
@property
|
990
|
+
@_builtins.property
|
951
991
|
@pulumi.getter(name="groupOrder")
|
952
|
-
def group_order(self) -> pulumi.Output[Optional[int]]:
|
992
|
+
def group_order(self) -> pulumi.Output[Optional[_builtins.int]]:
|
953
993
|
"""
|
954
994
|
The position of the monitor in the check group. It determines in what order checks and monitors are run when a group is triggered from the API or from CI/CD.
|
955
995
|
"""
|
956
996
|
return pulumi.get(self, "group_order")
|
957
997
|
|
958
|
-
@property
|
998
|
+
@_builtins.property
|
959
999
|
@pulumi.getter
|
960
|
-
def locations(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1000
|
+
def locations(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
961
1001
|
"""
|
962
1002
|
An array of one or more data center locations where to run the this monitor.
|
963
1003
|
"""
|
964
1004
|
return pulumi.get(self, "locations")
|
965
1005
|
|
966
|
-
@property
|
1006
|
+
@_builtins.property
|
967
1007
|
@pulumi.getter(name="maxResponseTime")
|
968
|
-
def max_response_time(self) -> pulumi.Output[Optional[int]]:
|
1008
|
+
def max_response_time(self) -> pulumi.Output[Optional[_builtins.int]]:
|
969
1009
|
"""
|
970
1010
|
The response time in milliseconds where the monitor should be considered failing. Possible values are between `0` and `30000`. (Default `5000`).
|
971
1011
|
"""
|
972
1012
|
return pulumi.get(self, "max_response_time")
|
973
1013
|
|
974
|
-
@property
|
1014
|
+
@_builtins.property
|
975
1015
|
@pulumi.getter
|
976
|
-
def muted(self) -> pulumi.Output[Optional[bool]]:
|
1016
|
+
def muted(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
977
1017
|
"""
|
978
1018
|
Determines if any notifications will be sent out when the monitor fails and/or recovers. (Default `false`).
|
979
1019
|
"""
|
980
1020
|
return pulumi.get(self, "muted")
|
981
1021
|
|
982
|
-
@property
|
1022
|
+
@_builtins.property
|
983
1023
|
@pulumi.getter
|
984
|
-
def name(self) -> pulumi.Output[str]:
|
1024
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
985
1025
|
"""
|
986
1026
|
The name of the monitor.
|
987
1027
|
"""
|
988
1028
|
return pulumi.get(self, "name")
|
989
1029
|
|
990
|
-
@property
|
1030
|
+
@_builtins.property
|
991
1031
|
@pulumi.getter(name="privateLocations")
|
992
|
-
def private_locations(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1032
|
+
def private_locations(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
993
1033
|
"""
|
994
1034
|
An array of one or more private locations slugs.
|
995
1035
|
"""
|
996
1036
|
return pulumi.get(self, "private_locations")
|
997
1037
|
|
998
|
-
@property
|
1038
|
+
@_builtins.property
|
999
1039
|
@pulumi.getter
|
1000
1040
|
def request(self) -> pulumi.Output['outputs.UrlMonitorRequest']:
|
1001
1041
|
"""
|
@@ -1003,41 +1043,49 @@ class UrlMonitor(pulumi.CustomResource):
|
|
1003
1043
|
"""
|
1004
1044
|
return pulumi.get(self, "request")
|
1005
1045
|
|
1006
|
-
@property
|
1046
|
+
@_builtins.property
|
1007
1047
|
@pulumi.getter(name="retryStrategy")
|
1008
1048
|
def retry_strategy(self) -> pulumi.Output['outputs.UrlMonitorRetryStrategy']:
|
1009
1049
|
"""
|
1010
|
-
A strategy for retrying failed monitor runs.
|
1050
|
+
A strategy for retrying failed check/monitor runs.
|
1011
1051
|
"""
|
1012
1052
|
return pulumi.get(self, "retry_strategy")
|
1013
1053
|
|
1014
|
-
@property
|
1054
|
+
@_builtins.property
|
1015
1055
|
@pulumi.getter(name="runParallel")
|
1016
|
-
def run_parallel(self) -> pulumi.Output[Optional[bool]]:
|
1056
|
+
def run_parallel(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
1017
1057
|
"""
|
1018
1058
|
Determines whether the monitor should run on all selected locations in parallel or round-robin. (Default `false`).
|
1019
1059
|
"""
|
1020
1060
|
return pulumi.get(self, "run_parallel")
|
1021
1061
|
|
1022
|
-
@property
|
1062
|
+
@_builtins.property
|
1023
1063
|
@pulumi.getter(name="shouldFail")
|
1024
|
-
def should_fail(self) -> pulumi.Output[Optional[bool]]:
|
1064
|
+
def should_fail(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
1025
1065
|
"""
|
1026
1066
|
Allows to invert the behaviour of when the monitor is considered to fail. (Default `false`).
|
1027
1067
|
"""
|
1028
1068
|
return pulumi.get(self, "should_fail")
|
1029
1069
|
|
1030
|
-
@property
|
1070
|
+
@_builtins.property
|
1031
1071
|
@pulumi.getter
|
1032
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
1072
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
1033
1073
|
"""
|
1034
1074
|
A list of tags for organizing and filtering checks and monitors.
|
1035
1075
|
"""
|
1036
1076
|
return pulumi.get(self, "tags")
|
1037
1077
|
|
1038
|
-
@property
|
1078
|
+
@_builtins.property
|
1079
|
+
@pulumi.getter(name="triggerIncident")
|
1080
|
+
def trigger_incident(self) -> pulumi.Output[Optional['outputs.UrlMonitorTriggerIncident']]:
|
1081
|
+
"""
|
1082
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
1083
|
+
"""
|
1084
|
+
return pulumi.get(self, "trigger_incident")
|
1085
|
+
|
1086
|
+
@_builtins.property
|
1039
1087
|
@pulumi.getter(name="useGlobalAlertSettings")
|
1040
|
-
def use_global_alert_settings(self) -> pulumi.Output[Optional[bool]]:
|
1088
|
+
def use_global_alert_settings(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
1041
1089
|
"""
|
1042
1090
|
When true, the account level alert settings will be used, not the alert setting defined on this monitor. (Default `true`).
|
1043
1091
|
"""
|