pulumi-checkly 2.3.0a1750944663__py3-none-any.whl → 2.4.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 +27 -0
- pulumi_checkly/_inputs.py +2538 -153
- pulumi_checkly/check.py +47 -0
- pulumi_checkly/dashboard.py +396 -66
- pulumi_checkly/heartbeat_check.py +47 -4
- pulumi_checkly/heartbeat_monitor.py +527 -0
- pulumi_checkly/outputs.py +1989 -131
- pulumi_checkly/pulumi-plugin.json +1 -1
- pulumi_checkly/tcp_check.py +47 -4
- pulumi_checkly/tcp_monitor.py +1218 -0
- pulumi_checkly/url_monitor.py +1092 -0
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0.dist-info}/METADATA +1 -1
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0.dist-info}/RECORD +15 -12
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0.dist-info}/WHEEL +0 -0
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,527 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
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
|
15
|
+
from . import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['HeartbeatMonitorArgs', 'HeartbeatMonitor']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class HeartbeatMonitorArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
activated: pulumi.Input[bool],
|
25
|
+
heartbeat: pulumi.Input['HeartbeatMonitorHeartbeatArgs'],
|
26
|
+
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]] = None,
|
27
|
+
alert_settings: Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']] = None,
|
28
|
+
muted: Optional[pulumi.Input[bool]] = None,
|
29
|
+
name: Optional[pulumi.Input[str]] = None,
|
30
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
31
|
+
trigger_incident: Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']] = None,
|
32
|
+
use_global_alert_settings: Optional[pulumi.Input[bool]] = None):
|
33
|
+
"""
|
34
|
+
The set of arguments for constructing a HeartbeatMonitor resource.
|
35
|
+
:param pulumi.Input[bool] activated: Determines if the check is running or not. Possible values `true`, and `false`.
|
36
|
+
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
37
|
+
:param pulumi.Input[str] name: The name of the check.
|
38
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks.
|
39
|
+
:param pulumi.Input['HeartbeatMonitorTriggerIncidentArgs'] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
40
|
+
:param pulumi.Input[bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this check.
|
41
|
+
"""
|
42
|
+
pulumi.set(__self__, "activated", activated)
|
43
|
+
pulumi.set(__self__, "heartbeat", heartbeat)
|
44
|
+
if alert_channel_subscriptions is not None:
|
45
|
+
pulumi.set(__self__, "alert_channel_subscriptions", alert_channel_subscriptions)
|
46
|
+
if alert_settings is not None:
|
47
|
+
pulumi.set(__self__, "alert_settings", alert_settings)
|
48
|
+
if muted is not None:
|
49
|
+
pulumi.set(__self__, "muted", muted)
|
50
|
+
if name is not None:
|
51
|
+
pulumi.set(__self__, "name", name)
|
52
|
+
if tags is not None:
|
53
|
+
pulumi.set(__self__, "tags", tags)
|
54
|
+
if trigger_incident is not None:
|
55
|
+
pulumi.set(__self__, "trigger_incident", trigger_incident)
|
56
|
+
if use_global_alert_settings is not None:
|
57
|
+
pulumi.set(__self__, "use_global_alert_settings", use_global_alert_settings)
|
58
|
+
|
59
|
+
@property
|
60
|
+
@pulumi.getter
|
61
|
+
def activated(self) -> pulumi.Input[bool]:
|
62
|
+
"""
|
63
|
+
Determines if the check is running or not. Possible values `true`, and `false`.
|
64
|
+
"""
|
65
|
+
return pulumi.get(self, "activated")
|
66
|
+
|
67
|
+
@activated.setter
|
68
|
+
def activated(self, value: pulumi.Input[bool]):
|
69
|
+
pulumi.set(self, "activated", value)
|
70
|
+
|
71
|
+
@property
|
72
|
+
@pulumi.getter
|
73
|
+
def heartbeat(self) -> pulumi.Input['HeartbeatMonitorHeartbeatArgs']:
|
74
|
+
return pulumi.get(self, "heartbeat")
|
75
|
+
|
76
|
+
@heartbeat.setter
|
77
|
+
def heartbeat(self, value: pulumi.Input['HeartbeatMonitorHeartbeatArgs']):
|
78
|
+
pulumi.set(self, "heartbeat", value)
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter(name="alertChannelSubscriptions")
|
82
|
+
def alert_channel_subscriptions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]]:
|
83
|
+
return pulumi.get(self, "alert_channel_subscriptions")
|
84
|
+
|
85
|
+
@alert_channel_subscriptions.setter
|
86
|
+
def alert_channel_subscriptions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]]):
|
87
|
+
pulumi.set(self, "alert_channel_subscriptions", value)
|
88
|
+
|
89
|
+
@property
|
90
|
+
@pulumi.getter(name="alertSettings")
|
91
|
+
def alert_settings(self) -> Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']]:
|
92
|
+
return pulumi.get(self, "alert_settings")
|
93
|
+
|
94
|
+
@alert_settings.setter
|
95
|
+
def alert_settings(self, value: Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']]):
|
96
|
+
pulumi.set(self, "alert_settings", value)
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter
|
100
|
+
def muted(self) -> Optional[pulumi.Input[bool]]:
|
101
|
+
"""
|
102
|
+
Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
103
|
+
"""
|
104
|
+
return pulumi.get(self, "muted")
|
105
|
+
|
106
|
+
@muted.setter
|
107
|
+
def muted(self, value: Optional[pulumi.Input[bool]]):
|
108
|
+
pulumi.set(self, "muted", value)
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
113
|
+
"""
|
114
|
+
The name of the check.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "name")
|
117
|
+
|
118
|
+
@name.setter
|
119
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
120
|
+
pulumi.set(self, "name", value)
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter
|
124
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
125
|
+
"""
|
126
|
+
A list of tags for organizing and filtering checks.
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "tags")
|
129
|
+
|
130
|
+
@tags.setter
|
131
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
132
|
+
pulumi.set(self, "tags", value)
|
133
|
+
|
134
|
+
@property
|
135
|
+
@pulumi.getter(name="triggerIncident")
|
136
|
+
def trigger_incident(self) -> Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']]:
|
137
|
+
"""
|
138
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
139
|
+
"""
|
140
|
+
return pulumi.get(self, "trigger_incident")
|
141
|
+
|
142
|
+
@trigger_incident.setter
|
143
|
+
def trigger_incident(self, value: Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']]):
|
144
|
+
pulumi.set(self, "trigger_incident", value)
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="useGlobalAlertSettings")
|
148
|
+
def use_global_alert_settings(self) -> Optional[pulumi.Input[bool]]:
|
149
|
+
"""
|
150
|
+
When true, the account level alert settings will be used, not the alert setting defined on this check.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "use_global_alert_settings")
|
153
|
+
|
154
|
+
@use_global_alert_settings.setter
|
155
|
+
def use_global_alert_settings(self, value: Optional[pulumi.Input[bool]]):
|
156
|
+
pulumi.set(self, "use_global_alert_settings", value)
|
157
|
+
|
158
|
+
|
159
|
+
@pulumi.input_type
|
160
|
+
class _HeartbeatMonitorState:
|
161
|
+
def __init__(__self__, *,
|
162
|
+
activated: Optional[pulumi.Input[bool]] = None,
|
163
|
+
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]] = None,
|
164
|
+
alert_settings: Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']] = None,
|
165
|
+
heartbeat: Optional[pulumi.Input['HeartbeatMonitorHeartbeatArgs']] = None,
|
166
|
+
muted: Optional[pulumi.Input[bool]] = None,
|
167
|
+
name: Optional[pulumi.Input[str]] = None,
|
168
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
169
|
+
trigger_incident: Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']] = None,
|
170
|
+
use_global_alert_settings: Optional[pulumi.Input[bool]] = None):
|
171
|
+
"""
|
172
|
+
Input properties used for looking up and filtering HeartbeatMonitor resources.
|
173
|
+
:param pulumi.Input[bool] activated: Determines if the check is running or not. Possible values `true`, and `false`.
|
174
|
+
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
175
|
+
:param pulumi.Input[str] name: The name of the check.
|
176
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks.
|
177
|
+
:param pulumi.Input['HeartbeatMonitorTriggerIncidentArgs'] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
178
|
+
:param pulumi.Input[bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this check.
|
179
|
+
"""
|
180
|
+
if activated is not None:
|
181
|
+
pulumi.set(__self__, "activated", activated)
|
182
|
+
if alert_channel_subscriptions is not None:
|
183
|
+
pulumi.set(__self__, "alert_channel_subscriptions", alert_channel_subscriptions)
|
184
|
+
if alert_settings is not None:
|
185
|
+
pulumi.set(__self__, "alert_settings", alert_settings)
|
186
|
+
if heartbeat is not None:
|
187
|
+
pulumi.set(__self__, "heartbeat", heartbeat)
|
188
|
+
if muted is not None:
|
189
|
+
pulumi.set(__self__, "muted", muted)
|
190
|
+
if name is not None:
|
191
|
+
pulumi.set(__self__, "name", name)
|
192
|
+
if tags is not None:
|
193
|
+
pulumi.set(__self__, "tags", tags)
|
194
|
+
if trigger_incident is not None:
|
195
|
+
pulumi.set(__self__, "trigger_incident", trigger_incident)
|
196
|
+
if use_global_alert_settings is not None:
|
197
|
+
pulumi.set(__self__, "use_global_alert_settings", use_global_alert_settings)
|
198
|
+
|
199
|
+
@property
|
200
|
+
@pulumi.getter
|
201
|
+
def activated(self) -> Optional[pulumi.Input[bool]]:
|
202
|
+
"""
|
203
|
+
Determines if the check is running or not. Possible values `true`, and `false`.
|
204
|
+
"""
|
205
|
+
return pulumi.get(self, "activated")
|
206
|
+
|
207
|
+
@activated.setter
|
208
|
+
def activated(self, value: Optional[pulumi.Input[bool]]):
|
209
|
+
pulumi.set(self, "activated", value)
|
210
|
+
|
211
|
+
@property
|
212
|
+
@pulumi.getter(name="alertChannelSubscriptions")
|
213
|
+
def alert_channel_subscriptions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]]:
|
214
|
+
return pulumi.get(self, "alert_channel_subscriptions")
|
215
|
+
|
216
|
+
@alert_channel_subscriptions.setter
|
217
|
+
def alert_channel_subscriptions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HeartbeatMonitorAlertChannelSubscriptionArgs']]]]):
|
218
|
+
pulumi.set(self, "alert_channel_subscriptions", value)
|
219
|
+
|
220
|
+
@property
|
221
|
+
@pulumi.getter(name="alertSettings")
|
222
|
+
def alert_settings(self) -> Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']]:
|
223
|
+
return pulumi.get(self, "alert_settings")
|
224
|
+
|
225
|
+
@alert_settings.setter
|
226
|
+
def alert_settings(self, value: Optional[pulumi.Input['HeartbeatMonitorAlertSettingsArgs']]):
|
227
|
+
pulumi.set(self, "alert_settings", value)
|
228
|
+
|
229
|
+
@property
|
230
|
+
@pulumi.getter
|
231
|
+
def heartbeat(self) -> Optional[pulumi.Input['HeartbeatMonitorHeartbeatArgs']]:
|
232
|
+
return pulumi.get(self, "heartbeat")
|
233
|
+
|
234
|
+
@heartbeat.setter
|
235
|
+
def heartbeat(self, value: Optional[pulumi.Input['HeartbeatMonitorHeartbeatArgs']]):
|
236
|
+
pulumi.set(self, "heartbeat", value)
|
237
|
+
|
238
|
+
@property
|
239
|
+
@pulumi.getter
|
240
|
+
def muted(self) -> Optional[pulumi.Input[bool]]:
|
241
|
+
"""
|
242
|
+
Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
243
|
+
"""
|
244
|
+
return pulumi.get(self, "muted")
|
245
|
+
|
246
|
+
@muted.setter
|
247
|
+
def muted(self, value: Optional[pulumi.Input[bool]]):
|
248
|
+
pulumi.set(self, "muted", value)
|
249
|
+
|
250
|
+
@property
|
251
|
+
@pulumi.getter
|
252
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
253
|
+
"""
|
254
|
+
The name of the check.
|
255
|
+
"""
|
256
|
+
return pulumi.get(self, "name")
|
257
|
+
|
258
|
+
@name.setter
|
259
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
260
|
+
pulumi.set(self, "name", value)
|
261
|
+
|
262
|
+
@property
|
263
|
+
@pulumi.getter
|
264
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
265
|
+
"""
|
266
|
+
A list of tags for organizing and filtering checks.
|
267
|
+
"""
|
268
|
+
return pulumi.get(self, "tags")
|
269
|
+
|
270
|
+
@tags.setter
|
271
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
272
|
+
pulumi.set(self, "tags", value)
|
273
|
+
|
274
|
+
@property
|
275
|
+
@pulumi.getter(name="triggerIncident")
|
276
|
+
def trigger_incident(self) -> Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']]:
|
277
|
+
"""
|
278
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
279
|
+
"""
|
280
|
+
return pulumi.get(self, "trigger_incident")
|
281
|
+
|
282
|
+
@trigger_incident.setter
|
283
|
+
def trigger_incident(self, value: Optional[pulumi.Input['HeartbeatMonitorTriggerIncidentArgs']]):
|
284
|
+
pulumi.set(self, "trigger_incident", value)
|
285
|
+
|
286
|
+
@property
|
287
|
+
@pulumi.getter(name="useGlobalAlertSettings")
|
288
|
+
def use_global_alert_settings(self) -> Optional[pulumi.Input[bool]]:
|
289
|
+
"""
|
290
|
+
When true, the account level alert settings will be used, not the alert setting defined on this check.
|
291
|
+
"""
|
292
|
+
return pulumi.get(self, "use_global_alert_settings")
|
293
|
+
|
294
|
+
@use_global_alert_settings.setter
|
295
|
+
def use_global_alert_settings(self, value: Optional[pulumi.Input[bool]]):
|
296
|
+
pulumi.set(self, "use_global_alert_settings", value)
|
297
|
+
|
298
|
+
|
299
|
+
class HeartbeatMonitor(pulumi.CustomResource):
|
300
|
+
@overload
|
301
|
+
def __init__(__self__,
|
302
|
+
resource_name: str,
|
303
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
304
|
+
activated: Optional[pulumi.Input[bool]] = None,
|
305
|
+
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeartbeatMonitorAlertChannelSubscriptionArgs', 'HeartbeatMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
306
|
+
alert_settings: Optional[pulumi.Input[Union['HeartbeatMonitorAlertSettingsArgs', 'HeartbeatMonitorAlertSettingsArgsDict']]] = None,
|
307
|
+
heartbeat: Optional[pulumi.Input[Union['HeartbeatMonitorHeartbeatArgs', 'HeartbeatMonitorHeartbeatArgsDict']]] = None,
|
308
|
+
muted: Optional[pulumi.Input[bool]] = None,
|
309
|
+
name: Optional[pulumi.Input[str]] = None,
|
310
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
311
|
+
trigger_incident: Optional[pulumi.Input[Union['HeartbeatMonitorTriggerIncidentArgs', 'HeartbeatMonitorTriggerIncidentArgsDict']]] = None,
|
312
|
+
use_global_alert_settings: Optional[pulumi.Input[bool]] = None,
|
313
|
+
__props__=None):
|
314
|
+
"""
|
315
|
+
Heartbeats allows you to monitor your cron jobs and set up alerting, so you get a notification when things break or slow down.
|
316
|
+
|
317
|
+
## Example Usage
|
318
|
+
|
319
|
+
```python
|
320
|
+
import pulumi
|
321
|
+
import pulumi_checkly as checkly
|
322
|
+
|
323
|
+
example_heartbeat_monitor = checkly.HeartbeatMonitor("example-heartbeat-monitor",
|
324
|
+
name="Example heartbeat monitor",
|
325
|
+
activated=True,
|
326
|
+
heartbeat={
|
327
|
+
"period": 7,
|
328
|
+
"period_unit": "days",
|
329
|
+
"grace": 1,
|
330
|
+
"grace_unit": "days",
|
331
|
+
},
|
332
|
+
use_global_alert_settings=True)
|
333
|
+
```
|
334
|
+
|
335
|
+
:param str resource_name: The name of the resource.
|
336
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
337
|
+
:param pulumi.Input[bool] activated: Determines if the check is running or not. Possible values `true`, and `false`.
|
338
|
+
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
339
|
+
:param pulumi.Input[str] name: The name of the check.
|
340
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks.
|
341
|
+
:param pulumi.Input[Union['HeartbeatMonitorTriggerIncidentArgs', 'HeartbeatMonitorTriggerIncidentArgsDict']] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
342
|
+
:param pulumi.Input[bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this check.
|
343
|
+
"""
|
344
|
+
...
|
345
|
+
@overload
|
346
|
+
def __init__(__self__,
|
347
|
+
resource_name: str,
|
348
|
+
args: HeartbeatMonitorArgs,
|
349
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
350
|
+
"""
|
351
|
+
Heartbeats allows you to monitor your cron jobs and set up alerting, so you get a notification when things break or slow down.
|
352
|
+
|
353
|
+
## Example Usage
|
354
|
+
|
355
|
+
```python
|
356
|
+
import pulumi
|
357
|
+
import pulumi_checkly as checkly
|
358
|
+
|
359
|
+
example_heartbeat_monitor = checkly.HeartbeatMonitor("example-heartbeat-monitor",
|
360
|
+
name="Example heartbeat monitor",
|
361
|
+
activated=True,
|
362
|
+
heartbeat={
|
363
|
+
"period": 7,
|
364
|
+
"period_unit": "days",
|
365
|
+
"grace": 1,
|
366
|
+
"grace_unit": "days",
|
367
|
+
},
|
368
|
+
use_global_alert_settings=True)
|
369
|
+
```
|
370
|
+
|
371
|
+
:param str resource_name: The name of the resource.
|
372
|
+
:param HeartbeatMonitorArgs args: The arguments to use to populate this resource's properties.
|
373
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
374
|
+
"""
|
375
|
+
...
|
376
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
377
|
+
resource_args, opts = _utilities.get_resource_args_opts(HeartbeatMonitorArgs, pulumi.ResourceOptions, *args, **kwargs)
|
378
|
+
if resource_args is not None:
|
379
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
380
|
+
else:
|
381
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
382
|
+
|
383
|
+
def _internal_init(__self__,
|
384
|
+
resource_name: str,
|
385
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
386
|
+
activated: Optional[pulumi.Input[bool]] = None,
|
387
|
+
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeartbeatMonitorAlertChannelSubscriptionArgs', 'HeartbeatMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
388
|
+
alert_settings: Optional[pulumi.Input[Union['HeartbeatMonitorAlertSettingsArgs', 'HeartbeatMonitorAlertSettingsArgsDict']]] = None,
|
389
|
+
heartbeat: Optional[pulumi.Input[Union['HeartbeatMonitorHeartbeatArgs', 'HeartbeatMonitorHeartbeatArgsDict']]] = None,
|
390
|
+
muted: Optional[pulumi.Input[bool]] = None,
|
391
|
+
name: Optional[pulumi.Input[str]] = None,
|
392
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
393
|
+
trigger_incident: Optional[pulumi.Input[Union['HeartbeatMonitorTriggerIncidentArgs', 'HeartbeatMonitorTriggerIncidentArgsDict']]] = None,
|
394
|
+
use_global_alert_settings: Optional[pulumi.Input[bool]] = None,
|
395
|
+
__props__=None):
|
396
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
397
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
398
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
399
|
+
if opts.id is None:
|
400
|
+
if __props__ is not None:
|
401
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
402
|
+
__props__ = HeartbeatMonitorArgs.__new__(HeartbeatMonitorArgs)
|
403
|
+
|
404
|
+
if activated is None and not opts.urn:
|
405
|
+
raise TypeError("Missing required property 'activated'")
|
406
|
+
__props__.__dict__["activated"] = activated
|
407
|
+
__props__.__dict__["alert_channel_subscriptions"] = alert_channel_subscriptions
|
408
|
+
__props__.__dict__["alert_settings"] = alert_settings
|
409
|
+
if heartbeat is None and not opts.urn:
|
410
|
+
raise TypeError("Missing required property 'heartbeat'")
|
411
|
+
__props__.__dict__["heartbeat"] = heartbeat
|
412
|
+
__props__.__dict__["muted"] = muted
|
413
|
+
__props__.__dict__["name"] = name
|
414
|
+
__props__.__dict__["tags"] = tags
|
415
|
+
__props__.__dict__["trigger_incident"] = trigger_incident
|
416
|
+
__props__.__dict__["use_global_alert_settings"] = use_global_alert_settings
|
417
|
+
super(HeartbeatMonitor, __self__).__init__(
|
418
|
+
'checkly:index/heartbeatMonitor:HeartbeatMonitor',
|
419
|
+
resource_name,
|
420
|
+
__props__,
|
421
|
+
opts)
|
422
|
+
|
423
|
+
@staticmethod
|
424
|
+
def get(resource_name: str,
|
425
|
+
id: pulumi.Input[str],
|
426
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
427
|
+
activated: Optional[pulumi.Input[bool]] = None,
|
428
|
+
alert_channel_subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeartbeatMonitorAlertChannelSubscriptionArgs', 'HeartbeatMonitorAlertChannelSubscriptionArgsDict']]]]] = None,
|
429
|
+
alert_settings: Optional[pulumi.Input[Union['HeartbeatMonitorAlertSettingsArgs', 'HeartbeatMonitorAlertSettingsArgsDict']]] = None,
|
430
|
+
heartbeat: Optional[pulumi.Input[Union['HeartbeatMonitorHeartbeatArgs', 'HeartbeatMonitorHeartbeatArgsDict']]] = None,
|
431
|
+
muted: Optional[pulumi.Input[bool]] = None,
|
432
|
+
name: Optional[pulumi.Input[str]] = None,
|
433
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
434
|
+
trigger_incident: Optional[pulumi.Input[Union['HeartbeatMonitorTriggerIncidentArgs', 'HeartbeatMonitorTriggerIncidentArgsDict']]] = None,
|
435
|
+
use_global_alert_settings: Optional[pulumi.Input[bool]] = None) -> 'HeartbeatMonitor':
|
436
|
+
"""
|
437
|
+
Get an existing HeartbeatMonitor resource's state with the given name, id, and optional extra
|
438
|
+
properties used to qualify the lookup.
|
439
|
+
|
440
|
+
:param str resource_name: The unique name of the resulting resource.
|
441
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
442
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
443
|
+
:param pulumi.Input[bool] activated: Determines if the check is running or not. Possible values `true`, and `false`.
|
444
|
+
:param pulumi.Input[bool] muted: Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
445
|
+
:param pulumi.Input[str] name: The name of the check.
|
446
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags for organizing and filtering checks.
|
447
|
+
:param pulumi.Input[Union['HeartbeatMonitorTriggerIncidentArgs', 'HeartbeatMonitorTriggerIncidentArgsDict']] trigger_incident: Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
448
|
+
:param pulumi.Input[bool] use_global_alert_settings: When true, the account level alert settings will be used, not the alert setting defined on this check.
|
449
|
+
"""
|
450
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
451
|
+
|
452
|
+
__props__ = _HeartbeatMonitorState.__new__(_HeartbeatMonitorState)
|
453
|
+
|
454
|
+
__props__.__dict__["activated"] = activated
|
455
|
+
__props__.__dict__["alert_channel_subscriptions"] = alert_channel_subscriptions
|
456
|
+
__props__.__dict__["alert_settings"] = alert_settings
|
457
|
+
__props__.__dict__["heartbeat"] = heartbeat
|
458
|
+
__props__.__dict__["muted"] = muted
|
459
|
+
__props__.__dict__["name"] = name
|
460
|
+
__props__.__dict__["tags"] = tags
|
461
|
+
__props__.__dict__["trigger_incident"] = trigger_incident
|
462
|
+
__props__.__dict__["use_global_alert_settings"] = use_global_alert_settings
|
463
|
+
return HeartbeatMonitor(resource_name, opts=opts, __props__=__props__)
|
464
|
+
|
465
|
+
@property
|
466
|
+
@pulumi.getter
|
467
|
+
def activated(self) -> pulumi.Output[bool]:
|
468
|
+
"""
|
469
|
+
Determines if the check is running or not. Possible values `true`, and `false`.
|
470
|
+
"""
|
471
|
+
return pulumi.get(self, "activated")
|
472
|
+
|
473
|
+
@property
|
474
|
+
@pulumi.getter(name="alertChannelSubscriptions")
|
475
|
+
def alert_channel_subscriptions(self) -> pulumi.Output[Optional[Sequence['outputs.HeartbeatMonitorAlertChannelSubscription']]]:
|
476
|
+
return pulumi.get(self, "alert_channel_subscriptions")
|
477
|
+
|
478
|
+
@property
|
479
|
+
@pulumi.getter(name="alertSettings")
|
480
|
+
def alert_settings(self) -> pulumi.Output['outputs.HeartbeatMonitorAlertSettings']:
|
481
|
+
return pulumi.get(self, "alert_settings")
|
482
|
+
|
483
|
+
@property
|
484
|
+
@pulumi.getter
|
485
|
+
def heartbeat(self) -> pulumi.Output['outputs.HeartbeatMonitorHeartbeat']:
|
486
|
+
return pulumi.get(self, "heartbeat")
|
487
|
+
|
488
|
+
@property
|
489
|
+
@pulumi.getter
|
490
|
+
def muted(self) -> pulumi.Output[Optional[bool]]:
|
491
|
+
"""
|
492
|
+
Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
493
|
+
"""
|
494
|
+
return pulumi.get(self, "muted")
|
495
|
+
|
496
|
+
@property
|
497
|
+
@pulumi.getter
|
498
|
+
def name(self) -> pulumi.Output[str]:
|
499
|
+
"""
|
500
|
+
The name of the check.
|
501
|
+
"""
|
502
|
+
return pulumi.get(self, "name")
|
503
|
+
|
504
|
+
@property
|
505
|
+
@pulumi.getter
|
506
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
507
|
+
"""
|
508
|
+
A list of tags for organizing and filtering checks.
|
509
|
+
"""
|
510
|
+
return pulumi.get(self, "tags")
|
511
|
+
|
512
|
+
@property
|
513
|
+
@pulumi.getter(name="triggerIncident")
|
514
|
+
def trigger_incident(self) -> pulumi.Output[Optional['outputs.HeartbeatMonitorTriggerIncident']]:
|
515
|
+
"""
|
516
|
+
Create and resolve an incident based on the alert configuration. Useful for status page automation.
|
517
|
+
"""
|
518
|
+
return pulumi.get(self, "trigger_incident")
|
519
|
+
|
520
|
+
@property
|
521
|
+
@pulumi.getter(name="useGlobalAlertSettings")
|
522
|
+
def use_global_alert_settings(self) -> pulumi.Output[Optional[bool]]:
|
523
|
+
"""
|
524
|
+
When true, the account level alert settings will be used, not the alert setting defined on this check.
|
525
|
+
"""
|
526
|
+
return pulumi.get(self, "use_global_alert_settings")
|
527
|
+
|