pulumi-checkly 2.3.0a1750944663__py3-none-any.whl → 2.4.0a1754310884__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 +1925 -194
- pulumi_checkly/dashboard.py +396 -66
- pulumi_checkly/heartbeat_check.py +0 -4
- pulumi_checkly/heartbeat_monitor.py +480 -0
- pulumi_checkly/outputs.py +1518 -152
- pulumi_checkly/pulumi-plugin.json +1 -1
- pulumi_checkly/tcp_check.py +0 -4
- pulumi_checkly/tcp_monitor.py +1171 -0
- pulumi_checkly/url_monitor.py +1045 -0
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0a1754310884.dist-info}/METADATA +1 -1
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0a1754310884.dist-info}/RECORD +14 -11
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0a1754310884.dist-info}/WHEEL +0 -0
- {pulumi_checkly-2.3.0a1750944663.dist-info → pulumi_checkly-2.4.0a1754310884.dist-info}/top_level.txt +0 -0
pulumi_checkly/outputs.py
CHANGED
@@ -55,6 +55,14 @@ __all__ = [
|
|
55
55
|
'HeartbeatCheckAlertSettingsSslCertificate',
|
56
56
|
'HeartbeatCheckAlertSettingsTimeBasedEscalation',
|
57
57
|
'HeartbeatCheckHeartbeat',
|
58
|
+
'HeartbeatMonitorAlertChannelSubscription',
|
59
|
+
'HeartbeatMonitorAlertSettings',
|
60
|
+
'HeartbeatMonitorAlertSettingsParallelRunFailureThreshold',
|
61
|
+
'HeartbeatMonitorAlertSettingsReminder',
|
62
|
+
'HeartbeatMonitorAlertSettingsRunBasedEscalation',
|
63
|
+
'HeartbeatMonitorAlertSettingsSslCertificate',
|
64
|
+
'HeartbeatMonitorAlertSettingsTimeBasedEscalation',
|
65
|
+
'HeartbeatMonitorHeartbeat',
|
58
66
|
'StatusPageCard',
|
59
67
|
'StatusPageCardServiceAttachment',
|
60
68
|
'TcpCheckAlertChannelSubscription',
|
@@ -66,6 +74,24 @@ __all__ = [
|
|
66
74
|
'TcpCheckRequest',
|
67
75
|
'TcpCheckRequestAssertion',
|
68
76
|
'TcpCheckRetryStrategy',
|
77
|
+
'TcpMonitorAlertChannelSubscription',
|
78
|
+
'TcpMonitorAlertSettings',
|
79
|
+
'TcpMonitorAlertSettingsParallelRunFailureThreshold',
|
80
|
+
'TcpMonitorAlertSettingsReminder',
|
81
|
+
'TcpMonitorAlertSettingsRunBasedEscalation',
|
82
|
+
'TcpMonitorAlertSettingsTimeBasedEscalation',
|
83
|
+
'TcpMonitorRequest',
|
84
|
+
'TcpMonitorRequestAssertion',
|
85
|
+
'TcpMonitorRetryStrategy',
|
86
|
+
'UrlMonitorAlertChannelSubscription',
|
87
|
+
'UrlMonitorAlertSettings',
|
88
|
+
'UrlMonitorAlertSettingsParallelRunFailureThreshold',
|
89
|
+
'UrlMonitorAlertSettingsReminder',
|
90
|
+
'UrlMonitorAlertSettingsRunBasedEscalation',
|
91
|
+
'UrlMonitorAlertSettingsTimeBasedEscalation',
|
92
|
+
'UrlMonitorRequest',
|
93
|
+
'UrlMonitorRequestAssertion',
|
94
|
+
'UrlMonitorRetryStrategy',
|
69
95
|
]
|
70
96
|
|
71
97
|
@pulumi.output_type
|
@@ -1953,89 +1979,1396 @@ class HeartbeatCheckHeartbeat(dict):
|
|
1953
1979
|
return pulumi.get(self, "ping_token")
|
1954
1980
|
|
1955
1981
|
|
1982
|
+
@pulumi.output_type
|
1983
|
+
class HeartbeatMonitorAlertChannelSubscription(dict):
|
1984
|
+
@staticmethod
|
1985
|
+
def __key_warning(key: str):
|
1986
|
+
suggest = None
|
1987
|
+
if key == "channelId":
|
1988
|
+
suggest = "channel_id"
|
1989
|
+
|
1990
|
+
if suggest:
|
1991
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorAlertChannelSubscription. Access the value via the '{suggest}' property getter instead.")
|
1992
|
+
|
1993
|
+
def __getitem__(self, key: str) -> Any:
|
1994
|
+
HeartbeatMonitorAlertChannelSubscription.__key_warning(key)
|
1995
|
+
return super().__getitem__(key)
|
1996
|
+
|
1997
|
+
def get(self, key: str, default = None) -> Any:
|
1998
|
+
HeartbeatMonitorAlertChannelSubscription.__key_warning(key)
|
1999
|
+
return super().get(key, default)
|
2000
|
+
|
2001
|
+
def __init__(__self__, *,
|
2002
|
+
activated: bool,
|
2003
|
+
channel_id: int):
|
2004
|
+
pulumi.set(__self__, "activated", activated)
|
2005
|
+
pulumi.set(__self__, "channel_id", channel_id)
|
2006
|
+
|
2007
|
+
@property
|
2008
|
+
@pulumi.getter
|
2009
|
+
def activated(self) -> bool:
|
2010
|
+
return pulumi.get(self, "activated")
|
2011
|
+
|
2012
|
+
@property
|
2013
|
+
@pulumi.getter(name="channelId")
|
2014
|
+
def channel_id(self) -> int:
|
2015
|
+
return pulumi.get(self, "channel_id")
|
2016
|
+
|
2017
|
+
|
2018
|
+
@pulumi.output_type
|
2019
|
+
class HeartbeatMonitorAlertSettings(dict):
|
2020
|
+
@staticmethod
|
2021
|
+
def __key_warning(key: str):
|
2022
|
+
suggest = None
|
2023
|
+
if key == "escalationType":
|
2024
|
+
suggest = "escalation_type"
|
2025
|
+
elif key == "parallelRunFailureThresholds":
|
2026
|
+
suggest = "parallel_run_failure_thresholds"
|
2027
|
+
elif key == "runBasedEscalations":
|
2028
|
+
suggest = "run_based_escalations"
|
2029
|
+
elif key == "sslCertificates":
|
2030
|
+
suggest = "ssl_certificates"
|
2031
|
+
elif key == "timeBasedEscalations":
|
2032
|
+
suggest = "time_based_escalations"
|
2033
|
+
|
2034
|
+
if suggest:
|
2035
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorAlertSettings. Access the value via the '{suggest}' property getter instead.")
|
2036
|
+
|
2037
|
+
def __getitem__(self, key: str) -> Any:
|
2038
|
+
HeartbeatMonitorAlertSettings.__key_warning(key)
|
2039
|
+
return super().__getitem__(key)
|
2040
|
+
|
2041
|
+
def get(self, key: str, default = None) -> Any:
|
2042
|
+
HeartbeatMonitorAlertSettings.__key_warning(key)
|
2043
|
+
return super().get(key, default)
|
2044
|
+
|
2045
|
+
def __init__(__self__, *,
|
2046
|
+
escalation_type: Optional[str] = None,
|
2047
|
+
parallel_run_failure_thresholds: Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsParallelRunFailureThreshold']] = None,
|
2048
|
+
reminders: Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsReminder']] = None,
|
2049
|
+
run_based_escalations: Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsRunBasedEscalation']] = None,
|
2050
|
+
ssl_certificates: Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsSslCertificate']] = None,
|
2051
|
+
time_based_escalations: Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsTimeBasedEscalation']] = None):
|
2052
|
+
"""
|
2053
|
+
:param str escalation_type: Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2054
|
+
"""
|
2055
|
+
if escalation_type is not None:
|
2056
|
+
pulumi.set(__self__, "escalation_type", escalation_type)
|
2057
|
+
if parallel_run_failure_thresholds is not None:
|
2058
|
+
pulumi.set(__self__, "parallel_run_failure_thresholds", parallel_run_failure_thresholds)
|
2059
|
+
if reminders is not None:
|
2060
|
+
pulumi.set(__self__, "reminders", reminders)
|
2061
|
+
if run_based_escalations is not None:
|
2062
|
+
pulumi.set(__self__, "run_based_escalations", run_based_escalations)
|
2063
|
+
if ssl_certificates is not None:
|
2064
|
+
pulumi.set(__self__, "ssl_certificates", ssl_certificates)
|
2065
|
+
if time_based_escalations is not None:
|
2066
|
+
pulumi.set(__self__, "time_based_escalations", time_based_escalations)
|
2067
|
+
|
2068
|
+
@property
|
2069
|
+
@pulumi.getter(name="escalationType")
|
2070
|
+
def escalation_type(self) -> Optional[str]:
|
2071
|
+
"""
|
2072
|
+
Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2073
|
+
"""
|
2074
|
+
return pulumi.get(self, "escalation_type")
|
2075
|
+
|
2076
|
+
@property
|
2077
|
+
@pulumi.getter(name="parallelRunFailureThresholds")
|
2078
|
+
def parallel_run_failure_thresholds(self) -> Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsParallelRunFailureThreshold']]:
|
2079
|
+
return pulumi.get(self, "parallel_run_failure_thresholds")
|
2080
|
+
|
2081
|
+
@property
|
2082
|
+
@pulumi.getter
|
2083
|
+
def reminders(self) -> Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsReminder']]:
|
2084
|
+
return pulumi.get(self, "reminders")
|
2085
|
+
|
2086
|
+
@property
|
2087
|
+
@pulumi.getter(name="runBasedEscalations")
|
2088
|
+
def run_based_escalations(self) -> Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsRunBasedEscalation']]:
|
2089
|
+
return pulumi.get(self, "run_based_escalations")
|
2090
|
+
|
2091
|
+
@property
|
2092
|
+
@pulumi.getter(name="sslCertificates")
|
2093
|
+
@_utilities.deprecated("""This property is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.""")
|
2094
|
+
def ssl_certificates(self) -> Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsSslCertificate']]:
|
2095
|
+
return pulumi.get(self, "ssl_certificates")
|
2096
|
+
|
2097
|
+
@property
|
2098
|
+
@pulumi.getter(name="timeBasedEscalations")
|
2099
|
+
def time_based_escalations(self) -> Optional[Sequence['outputs.HeartbeatMonitorAlertSettingsTimeBasedEscalation']]:
|
2100
|
+
return pulumi.get(self, "time_based_escalations")
|
2101
|
+
|
2102
|
+
|
2103
|
+
@pulumi.output_type
|
2104
|
+
class HeartbeatMonitorAlertSettingsParallelRunFailureThreshold(dict):
|
2105
|
+
def __init__(__self__, *,
|
2106
|
+
enabled: Optional[bool] = None,
|
2107
|
+
percentage: Optional[int] = None):
|
2108
|
+
"""
|
2109
|
+
:param bool enabled: Applicable only for checks scheduled in parallel in multiple locations.
|
2110
|
+
:param int percentage: Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
2111
|
+
"""
|
2112
|
+
if enabled is not None:
|
2113
|
+
pulumi.set(__self__, "enabled", enabled)
|
2114
|
+
if percentage is not None:
|
2115
|
+
pulumi.set(__self__, "percentage", percentage)
|
2116
|
+
|
2117
|
+
@property
|
2118
|
+
@pulumi.getter
|
2119
|
+
def enabled(self) -> Optional[bool]:
|
2120
|
+
"""
|
2121
|
+
Applicable only for checks scheduled in parallel in multiple locations.
|
2122
|
+
"""
|
2123
|
+
return pulumi.get(self, "enabled")
|
2124
|
+
|
2125
|
+
@property
|
2126
|
+
@pulumi.getter
|
2127
|
+
def percentage(self) -> Optional[int]:
|
2128
|
+
"""
|
2129
|
+
Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
2130
|
+
"""
|
2131
|
+
return pulumi.get(self, "percentage")
|
2132
|
+
|
2133
|
+
|
2134
|
+
@pulumi.output_type
|
2135
|
+
class HeartbeatMonitorAlertSettingsReminder(dict):
|
2136
|
+
def __init__(__self__, *,
|
2137
|
+
amount: Optional[int] = None,
|
2138
|
+
interval: Optional[int] = None):
|
2139
|
+
"""
|
2140
|
+
:param int amount: How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
2141
|
+
:param int interval: Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2142
|
+
"""
|
2143
|
+
if amount is not None:
|
2144
|
+
pulumi.set(__self__, "amount", amount)
|
2145
|
+
if interval is not None:
|
2146
|
+
pulumi.set(__self__, "interval", interval)
|
2147
|
+
|
2148
|
+
@property
|
2149
|
+
@pulumi.getter
|
2150
|
+
def amount(self) -> Optional[int]:
|
2151
|
+
"""
|
2152
|
+
How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
2153
|
+
"""
|
2154
|
+
return pulumi.get(self, "amount")
|
2155
|
+
|
2156
|
+
@property
|
2157
|
+
@pulumi.getter
|
2158
|
+
def interval(self) -> Optional[int]:
|
2159
|
+
"""
|
2160
|
+
Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2161
|
+
"""
|
2162
|
+
return pulumi.get(self, "interval")
|
2163
|
+
|
2164
|
+
|
2165
|
+
@pulumi.output_type
|
2166
|
+
class HeartbeatMonitorAlertSettingsRunBasedEscalation(dict):
|
2167
|
+
@staticmethod
|
2168
|
+
def __key_warning(key: str):
|
2169
|
+
suggest = None
|
2170
|
+
if key == "failedRunThreshold":
|
2171
|
+
suggest = "failed_run_threshold"
|
2172
|
+
|
2173
|
+
if suggest:
|
2174
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorAlertSettingsRunBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2175
|
+
|
2176
|
+
def __getitem__(self, key: str) -> Any:
|
2177
|
+
HeartbeatMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
2178
|
+
return super().__getitem__(key)
|
2179
|
+
|
2180
|
+
def get(self, key: str, default = None) -> Any:
|
2181
|
+
HeartbeatMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
2182
|
+
return super().get(key, default)
|
2183
|
+
|
2184
|
+
def __init__(__self__, *,
|
2185
|
+
failed_run_threshold: Optional[int] = None):
|
2186
|
+
"""
|
2187
|
+
:param int failed_run_threshold: After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
2188
|
+
"""
|
2189
|
+
if failed_run_threshold is not None:
|
2190
|
+
pulumi.set(__self__, "failed_run_threshold", failed_run_threshold)
|
2191
|
+
|
2192
|
+
@property
|
2193
|
+
@pulumi.getter(name="failedRunThreshold")
|
2194
|
+
def failed_run_threshold(self) -> Optional[int]:
|
2195
|
+
"""
|
2196
|
+
After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
2197
|
+
"""
|
2198
|
+
return pulumi.get(self, "failed_run_threshold")
|
2199
|
+
|
2200
|
+
|
2201
|
+
@pulumi.output_type
|
2202
|
+
class HeartbeatMonitorAlertSettingsSslCertificate(dict):
|
2203
|
+
@staticmethod
|
2204
|
+
def __key_warning(key: str):
|
2205
|
+
suggest = None
|
2206
|
+
if key == "alertThreshold":
|
2207
|
+
suggest = "alert_threshold"
|
2208
|
+
|
2209
|
+
if suggest:
|
2210
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorAlertSettingsSslCertificate. Access the value via the '{suggest}' property getter instead.")
|
2211
|
+
|
2212
|
+
def __getitem__(self, key: str) -> Any:
|
2213
|
+
HeartbeatMonitorAlertSettingsSslCertificate.__key_warning(key)
|
2214
|
+
return super().__getitem__(key)
|
2215
|
+
|
2216
|
+
def get(self, key: str, default = None) -> Any:
|
2217
|
+
HeartbeatMonitorAlertSettingsSslCertificate.__key_warning(key)
|
2218
|
+
return super().get(key, default)
|
2219
|
+
|
2220
|
+
def __init__(__self__, *,
|
2221
|
+
alert_threshold: Optional[int] = None,
|
2222
|
+
enabled: Optional[bool] = None):
|
2223
|
+
"""
|
2224
|
+
:param int alert_threshold: How long before SSL certificate expiry to send alerts. Possible values `3`, `7`, `14`, `30`. (Default `3`).
|
2225
|
+
:param bool enabled: Determines if alert notifications should be sent for expiring SSL certificates. Possible values `true`, and `false`. (Default `false`).
|
2226
|
+
"""
|
2227
|
+
if alert_threshold is not None:
|
2228
|
+
pulumi.set(__self__, "alert_threshold", alert_threshold)
|
2229
|
+
if enabled is not None:
|
2230
|
+
pulumi.set(__self__, "enabled", enabled)
|
2231
|
+
|
2232
|
+
@property
|
2233
|
+
@pulumi.getter(name="alertThreshold")
|
2234
|
+
def alert_threshold(self) -> Optional[int]:
|
2235
|
+
"""
|
2236
|
+
How long before SSL certificate expiry to send alerts. Possible values `3`, `7`, `14`, `30`. (Default `3`).
|
2237
|
+
"""
|
2238
|
+
return pulumi.get(self, "alert_threshold")
|
2239
|
+
|
2240
|
+
@property
|
2241
|
+
@pulumi.getter
|
2242
|
+
def enabled(self) -> Optional[bool]:
|
2243
|
+
"""
|
2244
|
+
Determines if alert notifications should be sent for expiring SSL certificates. Possible values `true`, and `false`. (Default `false`).
|
2245
|
+
"""
|
2246
|
+
return pulumi.get(self, "enabled")
|
2247
|
+
|
2248
|
+
|
2249
|
+
@pulumi.output_type
|
2250
|
+
class HeartbeatMonitorAlertSettingsTimeBasedEscalation(dict):
|
2251
|
+
@staticmethod
|
2252
|
+
def __key_warning(key: str):
|
2253
|
+
suggest = None
|
2254
|
+
if key == "minutesFailingThreshold":
|
2255
|
+
suggest = "minutes_failing_threshold"
|
2256
|
+
|
2257
|
+
if suggest:
|
2258
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorAlertSettingsTimeBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2259
|
+
|
2260
|
+
def __getitem__(self, key: str) -> Any:
|
2261
|
+
HeartbeatMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2262
|
+
return super().__getitem__(key)
|
2263
|
+
|
2264
|
+
def get(self, key: str, default = None) -> Any:
|
2265
|
+
HeartbeatMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2266
|
+
return super().get(key, default)
|
2267
|
+
|
2268
|
+
def __init__(__self__, *,
|
2269
|
+
minutes_failing_threshold: Optional[int] = None):
|
2270
|
+
"""
|
2271
|
+
:param int minutes_failing_threshold: After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2272
|
+
"""
|
2273
|
+
if minutes_failing_threshold is not None:
|
2274
|
+
pulumi.set(__self__, "minutes_failing_threshold", minutes_failing_threshold)
|
2275
|
+
|
2276
|
+
@property
|
2277
|
+
@pulumi.getter(name="minutesFailingThreshold")
|
2278
|
+
def minutes_failing_threshold(self) -> Optional[int]:
|
2279
|
+
"""
|
2280
|
+
After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2281
|
+
"""
|
2282
|
+
return pulumi.get(self, "minutes_failing_threshold")
|
2283
|
+
|
2284
|
+
|
2285
|
+
@pulumi.output_type
|
2286
|
+
class HeartbeatMonitorHeartbeat(dict):
|
2287
|
+
@staticmethod
|
2288
|
+
def __key_warning(key: str):
|
2289
|
+
suggest = None
|
2290
|
+
if key == "graceUnit":
|
2291
|
+
suggest = "grace_unit"
|
2292
|
+
elif key == "periodUnit":
|
2293
|
+
suggest = "period_unit"
|
2294
|
+
elif key == "pingToken":
|
2295
|
+
suggest = "ping_token"
|
2296
|
+
|
2297
|
+
if suggest:
|
2298
|
+
pulumi.log.warn(f"Key '{key}' not found in HeartbeatMonitorHeartbeat. Access the value via the '{suggest}' property getter instead.")
|
2299
|
+
|
2300
|
+
def __getitem__(self, key: str) -> Any:
|
2301
|
+
HeartbeatMonitorHeartbeat.__key_warning(key)
|
2302
|
+
return super().__getitem__(key)
|
2303
|
+
|
2304
|
+
def get(self, key: str, default = None) -> Any:
|
2305
|
+
HeartbeatMonitorHeartbeat.__key_warning(key)
|
2306
|
+
return super().get(key, default)
|
2307
|
+
|
2308
|
+
def __init__(__self__, *,
|
2309
|
+
grace: int,
|
2310
|
+
grace_unit: str,
|
2311
|
+
period: int,
|
2312
|
+
period_unit: str,
|
2313
|
+
ping_token: Optional[str] = None):
|
2314
|
+
"""
|
2315
|
+
:param int grace: How long Checkly should wait before triggering any alerts when a ping does not arrive within the set period.
|
2316
|
+
:param str grace_unit: Possible values `seconds`, `minutes`, `hours` and `days`.
|
2317
|
+
:param int period: How often you expect a ping to the ping URL.
|
2318
|
+
:param str period_unit: Possible values `seconds`, `minutes`, `hours` and `days`.
|
2319
|
+
:param str ping_token: Custom token to generate your ping URL. Checkly will expect a ping to `https://ping.checklyhq.com/[PING_TOKEN]`.
|
2320
|
+
"""
|
2321
|
+
pulumi.set(__self__, "grace", grace)
|
2322
|
+
pulumi.set(__self__, "grace_unit", grace_unit)
|
2323
|
+
pulumi.set(__self__, "period", period)
|
2324
|
+
pulumi.set(__self__, "period_unit", period_unit)
|
2325
|
+
if ping_token is not None:
|
2326
|
+
pulumi.set(__self__, "ping_token", ping_token)
|
2327
|
+
|
2328
|
+
@property
|
2329
|
+
@pulumi.getter
|
2330
|
+
def grace(self) -> int:
|
2331
|
+
"""
|
2332
|
+
How long Checkly should wait before triggering any alerts when a ping does not arrive within the set period.
|
2333
|
+
"""
|
2334
|
+
return pulumi.get(self, "grace")
|
2335
|
+
|
2336
|
+
@property
|
2337
|
+
@pulumi.getter(name="graceUnit")
|
2338
|
+
def grace_unit(self) -> str:
|
2339
|
+
"""
|
2340
|
+
Possible values `seconds`, `minutes`, `hours` and `days`.
|
2341
|
+
"""
|
2342
|
+
return pulumi.get(self, "grace_unit")
|
2343
|
+
|
2344
|
+
@property
|
2345
|
+
@pulumi.getter
|
2346
|
+
def period(self) -> int:
|
2347
|
+
"""
|
2348
|
+
How often you expect a ping to the ping URL.
|
2349
|
+
"""
|
2350
|
+
return pulumi.get(self, "period")
|
2351
|
+
|
2352
|
+
@property
|
2353
|
+
@pulumi.getter(name="periodUnit")
|
2354
|
+
def period_unit(self) -> str:
|
2355
|
+
"""
|
2356
|
+
Possible values `seconds`, `minutes`, `hours` and `days`.
|
2357
|
+
"""
|
2358
|
+
return pulumi.get(self, "period_unit")
|
2359
|
+
|
2360
|
+
@property
|
2361
|
+
@pulumi.getter(name="pingToken")
|
2362
|
+
def ping_token(self) -> Optional[str]:
|
2363
|
+
"""
|
2364
|
+
Custom token to generate your ping URL. Checkly will expect a ping to `https://ping.checklyhq.com/[PING_TOKEN]`.
|
2365
|
+
"""
|
2366
|
+
return pulumi.get(self, "ping_token")
|
2367
|
+
|
2368
|
+
|
1956
2369
|
@pulumi.output_type
|
1957
2370
|
class StatusPageCard(dict):
|
1958
2371
|
@staticmethod
|
1959
2372
|
def __key_warning(key: str):
|
1960
2373
|
suggest = None
|
1961
|
-
if key == "serviceAttachments":
|
1962
|
-
suggest = "service_attachments"
|
2374
|
+
if key == "serviceAttachments":
|
2375
|
+
suggest = "service_attachments"
|
2376
|
+
|
2377
|
+
if suggest:
|
2378
|
+
pulumi.log.warn(f"Key '{key}' not found in StatusPageCard. Access the value via the '{suggest}' property getter instead.")
|
2379
|
+
|
2380
|
+
def __getitem__(self, key: str) -> Any:
|
2381
|
+
StatusPageCard.__key_warning(key)
|
2382
|
+
return super().__getitem__(key)
|
2383
|
+
|
2384
|
+
def get(self, key: str, default = None) -> Any:
|
2385
|
+
StatusPageCard.__key_warning(key)
|
2386
|
+
return super().get(key, default)
|
2387
|
+
|
2388
|
+
def __init__(__self__, *,
|
2389
|
+
name: str,
|
2390
|
+
service_attachments: Sequence['outputs.StatusPageCardServiceAttachment']):
|
2391
|
+
"""
|
2392
|
+
:param str name: The name of the card.
|
2393
|
+
:param Sequence['StatusPageCardServiceAttachmentArgs'] service_attachments: A list of services to attach to the card.
|
2394
|
+
"""
|
2395
|
+
pulumi.set(__self__, "name", name)
|
2396
|
+
pulumi.set(__self__, "service_attachments", service_attachments)
|
2397
|
+
|
2398
|
+
@property
|
2399
|
+
@pulumi.getter
|
2400
|
+
def name(self) -> str:
|
2401
|
+
"""
|
2402
|
+
The name of the card.
|
2403
|
+
"""
|
2404
|
+
return pulumi.get(self, "name")
|
2405
|
+
|
2406
|
+
@property
|
2407
|
+
@pulumi.getter(name="serviceAttachments")
|
2408
|
+
def service_attachments(self) -> Sequence['outputs.StatusPageCardServiceAttachment']:
|
2409
|
+
"""
|
2410
|
+
A list of services to attach to the card.
|
2411
|
+
"""
|
2412
|
+
return pulumi.get(self, "service_attachments")
|
2413
|
+
|
2414
|
+
|
2415
|
+
@pulumi.output_type
|
2416
|
+
class StatusPageCardServiceAttachment(dict):
|
2417
|
+
@staticmethod
|
2418
|
+
def __key_warning(key: str):
|
2419
|
+
suggest = None
|
2420
|
+
if key == "serviceId":
|
2421
|
+
suggest = "service_id"
|
2422
|
+
|
2423
|
+
if suggest:
|
2424
|
+
pulumi.log.warn(f"Key '{key}' not found in StatusPageCardServiceAttachment. Access the value via the '{suggest}' property getter instead.")
|
2425
|
+
|
2426
|
+
def __getitem__(self, key: str) -> Any:
|
2427
|
+
StatusPageCardServiceAttachment.__key_warning(key)
|
2428
|
+
return super().__getitem__(key)
|
2429
|
+
|
2430
|
+
def get(self, key: str, default = None) -> Any:
|
2431
|
+
StatusPageCardServiceAttachment.__key_warning(key)
|
2432
|
+
return super().get(key, default)
|
2433
|
+
|
2434
|
+
def __init__(__self__, *,
|
2435
|
+
service_id: str):
|
2436
|
+
"""
|
2437
|
+
:param str service_id: The ID of the service.
|
2438
|
+
"""
|
2439
|
+
pulumi.set(__self__, "service_id", service_id)
|
2440
|
+
|
2441
|
+
@property
|
2442
|
+
@pulumi.getter(name="serviceId")
|
2443
|
+
def service_id(self) -> str:
|
2444
|
+
"""
|
2445
|
+
The ID of the service.
|
2446
|
+
"""
|
2447
|
+
return pulumi.get(self, "service_id")
|
2448
|
+
|
2449
|
+
|
2450
|
+
@pulumi.output_type
|
2451
|
+
class TcpCheckAlertChannelSubscription(dict):
|
2452
|
+
@staticmethod
|
2453
|
+
def __key_warning(key: str):
|
2454
|
+
suggest = None
|
2455
|
+
if key == "channelId":
|
2456
|
+
suggest = "channel_id"
|
2457
|
+
|
2458
|
+
if suggest:
|
2459
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckAlertChannelSubscription. Access the value via the '{suggest}' property getter instead.")
|
2460
|
+
|
2461
|
+
def __getitem__(self, key: str) -> Any:
|
2462
|
+
TcpCheckAlertChannelSubscription.__key_warning(key)
|
2463
|
+
return super().__getitem__(key)
|
2464
|
+
|
2465
|
+
def get(self, key: str, default = None) -> Any:
|
2466
|
+
TcpCheckAlertChannelSubscription.__key_warning(key)
|
2467
|
+
return super().get(key, default)
|
2468
|
+
|
2469
|
+
def __init__(__self__, *,
|
2470
|
+
activated: bool,
|
2471
|
+
channel_id: int):
|
2472
|
+
pulumi.set(__self__, "activated", activated)
|
2473
|
+
pulumi.set(__self__, "channel_id", channel_id)
|
2474
|
+
|
2475
|
+
@property
|
2476
|
+
@pulumi.getter
|
2477
|
+
def activated(self) -> bool:
|
2478
|
+
return pulumi.get(self, "activated")
|
2479
|
+
|
2480
|
+
@property
|
2481
|
+
@pulumi.getter(name="channelId")
|
2482
|
+
def channel_id(self) -> int:
|
2483
|
+
return pulumi.get(self, "channel_id")
|
2484
|
+
|
2485
|
+
|
2486
|
+
@pulumi.output_type
|
2487
|
+
class TcpCheckAlertSettings(dict):
|
2488
|
+
@staticmethod
|
2489
|
+
def __key_warning(key: str):
|
2490
|
+
suggest = None
|
2491
|
+
if key == "escalationType":
|
2492
|
+
suggest = "escalation_type"
|
2493
|
+
elif key == "parallelRunFailureThresholds":
|
2494
|
+
suggest = "parallel_run_failure_thresholds"
|
2495
|
+
elif key == "runBasedEscalations":
|
2496
|
+
suggest = "run_based_escalations"
|
2497
|
+
elif key == "timeBasedEscalations":
|
2498
|
+
suggest = "time_based_escalations"
|
2499
|
+
|
2500
|
+
if suggest:
|
2501
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckAlertSettings. Access the value via the '{suggest}' property getter instead.")
|
2502
|
+
|
2503
|
+
def __getitem__(self, key: str) -> Any:
|
2504
|
+
TcpCheckAlertSettings.__key_warning(key)
|
2505
|
+
return super().__getitem__(key)
|
2506
|
+
|
2507
|
+
def get(self, key: str, default = None) -> Any:
|
2508
|
+
TcpCheckAlertSettings.__key_warning(key)
|
2509
|
+
return super().get(key, default)
|
2510
|
+
|
2511
|
+
def __init__(__self__, *,
|
2512
|
+
escalation_type: Optional[str] = None,
|
2513
|
+
parallel_run_failure_thresholds: Optional[Sequence['outputs.TcpCheckAlertSettingsParallelRunFailureThreshold']] = None,
|
2514
|
+
reminders: Optional[Sequence['outputs.TcpCheckAlertSettingsReminder']] = None,
|
2515
|
+
run_based_escalations: Optional[Sequence['outputs.TcpCheckAlertSettingsRunBasedEscalation']] = None,
|
2516
|
+
time_based_escalations: Optional[Sequence['outputs.TcpCheckAlertSettingsTimeBasedEscalation']] = None):
|
2517
|
+
"""
|
2518
|
+
:param str escalation_type: Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2519
|
+
"""
|
2520
|
+
if escalation_type is not None:
|
2521
|
+
pulumi.set(__self__, "escalation_type", escalation_type)
|
2522
|
+
if parallel_run_failure_thresholds is not None:
|
2523
|
+
pulumi.set(__self__, "parallel_run_failure_thresholds", parallel_run_failure_thresholds)
|
2524
|
+
if reminders is not None:
|
2525
|
+
pulumi.set(__self__, "reminders", reminders)
|
2526
|
+
if run_based_escalations is not None:
|
2527
|
+
pulumi.set(__self__, "run_based_escalations", run_based_escalations)
|
2528
|
+
if time_based_escalations is not None:
|
2529
|
+
pulumi.set(__self__, "time_based_escalations", time_based_escalations)
|
2530
|
+
|
2531
|
+
@property
|
2532
|
+
@pulumi.getter(name="escalationType")
|
2533
|
+
def escalation_type(self) -> Optional[str]:
|
2534
|
+
"""
|
2535
|
+
Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2536
|
+
"""
|
2537
|
+
return pulumi.get(self, "escalation_type")
|
2538
|
+
|
2539
|
+
@property
|
2540
|
+
@pulumi.getter(name="parallelRunFailureThresholds")
|
2541
|
+
def parallel_run_failure_thresholds(self) -> Optional[Sequence['outputs.TcpCheckAlertSettingsParallelRunFailureThreshold']]:
|
2542
|
+
return pulumi.get(self, "parallel_run_failure_thresholds")
|
2543
|
+
|
2544
|
+
@property
|
2545
|
+
@pulumi.getter
|
2546
|
+
def reminders(self) -> Optional[Sequence['outputs.TcpCheckAlertSettingsReminder']]:
|
2547
|
+
return pulumi.get(self, "reminders")
|
2548
|
+
|
2549
|
+
@property
|
2550
|
+
@pulumi.getter(name="runBasedEscalations")
|
2551
|
+
def run_based_escalations(self) -> Optional[Sequence['outputs.TcpCheckAlertSettingsRunBasedEscalation']]:
|
2552
|
+
return pulumi.get(self, "run_based_escalations")
|
2553
|
+
|
2554
|
+
@property
|
2555
|
+
@pulumi.getter(name="timeBasedEscalations")
|
2556
|
+
def time_based_escalations(self) -> Optional[Sequence['outputs.TcpCheckAlertSettingsTimeBasedEscalation']]:
|
2557
|
+
return pulumi.get(self, "time_based_escalations")
|
2558
|
+
|
2559
|
+
|
2560
|
+
@pulumi.output_type
|
2561
|
+
class TcpCheckAlertSettingsParallelRunFailureThreshold(dict):
|
2562
|
+
def __init__(__self__, *,
|
2563
|
+
enabled: Optional[bool] = None,
|
2564
|
+
percentage: Optional[int] = None):
|
2565
|
+
"""
|
2566
|
+
:param bool enabled: Applicable only for checks scheduled in parallel in multiple locations.
|
2567
|
+
:param int percentage: Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
2568
|
+
"""
|
2569
|
+
if enabled is not None:
|
2570
|
+
pulumi.set(__self__, "enabled", enabled)
|
2571
|
+
if percentage is not None:
|
2572
|
+
pulumi.set(__self__, "percentage", percentage)
|
2573
|
+
|
2574
|
+
@property
|
2575
|
+
@pulumi.getter
|
2576
|
+
def enabled(self) -> Optional[bool]:
|
2577
|
+
"""
|
2578
|
+
Applicable only for checks scheduled in parallel in multiple locations.
|
2579
|
+
"""
|
2580
|
+
return pulumi.get(self, "enabled")
|
2581
|
+
|
2582
|
+
@property
|
2583
|
+
@pulumi.getter
|
2584
|
+
def percentage(self) -> Optional[int]:
|
2585
|
+
"""
|
2586
|
+
Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
2587
|
+
"""
|
2588
|
+
return pulumi.get(self, "percentage")
|
2589
|
+
|
2590
|
+
|
2591
|
+
@pulumi.output_type
|
2592
|
+
class TcpCheckAlertSettingsReminder(dict):
|
2593
|
+
def __init__(__self__, *,
|
2594
|
+
amount: Optional[int] = None,
|
2595
|
+
interval: Optional[int] = None):
|
2596
|
+
"""
|
2597
|
+
:param int amount: How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
2598
|
+
:param int interval: Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2599
|
+
"""
|
2600
|
+
if amount is not None:
|
2601
|
+
pulumi.set(__self__, "amount", amount)
|
2602
|
+
if interval is not None:
|
2603
|
+
pulumi.set(__self__, "interval", interval)
|
2604
|
+
|
2605
|
+
@property
|
2606
|
+
@pulumi.getter
|
2607
|
+
def amount(self) -> Optional[int]:
|
2608
|
+
"""
|
2609
|
+
How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
2610
|
+
"""
|
2611
|
+
return pulumi.get(self, "amount")
|
2612
|
+
|
2613
|
+
@property
|
2614
|
+
@pulumi.getter
|
2615
|
+
def interval(self) -> Optional[int]:
|
2616
|
+
"""
|
2617
|
+
Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2618
|
+
"""
|
2619
|
+
return pulumi.get(self, "interval")
|
2620
|
+
|
2621
|
+
|
2622
|
+
@pulumi.output_type
|
2623
|
+
class TcpCheckAlertSettingsRunBasedEscalation(dict):
|
2624
|
+
@staticmethod
|
2625
|
+
def __key_warning(key: str):
|
2626
|
+
suggest = None
|
2627
|
+
if key == "failedRunThreshold":
|
2628
|
+
suggest = "failed_run_threshold"
|
2629
|
+
|
2630
|
+
if suggest:
|
2631
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckAlertSettingsRunBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2632
|
+
|
2633
|
+
def __getitem__(self, key: str) -> Any:
|
2634
|
+
TcpCheckAlertSettingsRunBasedEscalation.__key_warning(key)
|
2635
|
+
return super().__getitem__(key)
|
2636
|
+
|
2637
|
+
def get(self, key: str, default = None) -> Any:
|
2638
|
+
TcpCheckAlertSettingsRunBasedEscalation.__key_warning(key)
|
2639
|
+
return super().get(key, default)
|
2640
|
+
|
2641
|
+
def __init__(__self__, *,
|
2642
|
+
failed_run_threshold: Optional[int] = None):
|
2643
|
+
"""
|
2644
|
+
:param int failed_run_threshold: After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
2645
|
+
"""
|
2646
|
+
if failed_run_threshold is not None:
|
2647
|
+
pulumi.set(__self__, "failed_run_threshold", failed_run_threshold)
|
2648
|
+
|
2649
|
+
@property
|
2650
|
+
@pulumi.getter(name="failedRunThreshold")
|
2651
|
+
def failed_run_threshold(self) -> Optional[int]:
|
2652
|
+
"""
|
2653
|
+
After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
2654
|
+
"""
|
2655
|
+
return pulumi.get(self, "failed_run_threshold")
|
2656
|
+
|
2657
|
+
|
2658
|
+
@pulumi.output_type
|
2659
|
+
class TcpCheckAlertSettingsTimeBasedEscalation(dict):
|
2660
|
+
@staticmethod
|
2661
|
+
def __key_warning(key: str):
|
2662
|
+
suggest = None
|
2663
|
+
if key == "minutesFailingThreshold":
|
2664
|
+
suggest = "minutes_failing_threshold"
|
2665
|
+
|
2666
|
+
if suggest:
|
2667
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckAlertSettingsTimeBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2668
|
+
|
2669
|
+
def __getitem__(self, key: str) -> Any:
|
2670
|
+
TcpCheckAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2671
|
+
return super().__getitem__(key)
|
2672
|
+
|
2673
|
+
def get(self, key: str, default = None) -> Any:
|
2674
|
+
TcpCheckAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2675
|
+
return super().get(key, default)
|
2676
|
+
|
2677
|
+
def __init__(__self__, *,
|
2678
|
+
minutes_failing_threshold: Optional[int] = None):
|
2679
|
+
"""
|
2680
|
+
:param int minutes_failing_threshold: After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2681
|
+
"""
|
2682
|
+
if minutes_failing_threshold is not None:
|
2683
|
+
pulumi.set(__self__, "minutes_failing_threshold", minutes_failing_threshold)
|
2684
|
+
|
2685
|
+
@property
|
2686
|
+
@pulumi.getter(name="minutesFailingThreshold")
|
2687
|
+
def minutes_failing_threshold(self) -> Optional[int]:
|
2688
|
+
"""
|
2689
|
+
After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2690
|
+
"""
|
2691
|
+
return pulumi.get(self, "minutes_failing_threshold")
|
2692
|
+
|
2693
|
+
|
2694
|
+
@pulumi.output_type
|
2695
|
+
class TcpCheckRequest(dict):
|
2696
|
+
@staticmethod
|
2697
|
+
def __key_warning(key: str):
|
2698
|
+
suggest = None
|
2699
|
+
if key == "ipFamily":
|
2700
|
+
suggest = "ip_family"
|
2701
|
+
|
2702
|
+
if suggest:
|
2703
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckRequest. Access the value via the '{suggest}' property getter instead.")
|
2704
|
+
|
2705
|
+
def __getitem__(self, key: str) -> Any:
|
2706
|
+
TcpCheckRequest.__key_warning(key)
|
2707
|
+
return super().__getitem__(key)
|
2708
|
+
|
2709
|
+
def get(self, key: str, default = None) -> Any:
|
2710
|
+
TcpCheckRequest.__key_warning(key)
|
2711
|
+
return super().get(key, default)
|
2712
|
+
|
2713
|
+
def __init__(__self__, *,
|
2714
|
+
hostname: str,
|
2715
|
+
port: int,
|
2716
|
+
assertions: Optional[Sequence['outputs.TcpCheckRequestAssertion']] = None,
|
2717
|
+
data: Optional[str] = None,
|
2718
|
+
ip_family: Optional[str] = None):
|
2719
|
+
"""
|
2720
|
+
:param str hostname: The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
2721
|
+
:param int port: The port number to connect to.
|
2722
|
+
:param Sequence['TcpCheckRequestAssertionArgs'] assertions: A request can have multiple assertions.
|
2723
|
+
:param str data: The data to send to the target host.
|
2724
|
+
:param str ip_family: The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
2725
|
+
"""
|
2726
|
+
pulumi.set(__self__, "hostname", hostname)
|
2727
|
+
pulumi.set(__self__, "port", port)
|
2728
|
+
if assertions is not None:
|
2729
|
+
pulumi.set(__self__, "assertions", assertions)
|
2730
|
+
if data is not None:
|
2731
|
+
pulumi.set(__self__, "data", data)
|
2732
|
+
if ip_family is not None:
|
2733
|
+
pulumi.set(__self__, "ip_family", ip_family)
|
2734
|
+
|
2735
|
+
@property
|
2736
|
+
@pulumi.getter
|
2737
|
+
def hostname(self) -> str:
|
2738
|
+
"""
|
2739
|
+
The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
2740
|
+
"""
|
2741
|
+
return pulumi.get(self, "hostname")
|
2742
|
+
|
2743
|
+
@property
|
2744
|
+
@pulumi.getter
|
2745
|
+
def port(self) -> int:
|
2746
|
+
"""
|
2747
|
+
The port number to connect to.
|
2748
|
+
"""
|
2749
|
+
return pulumi.get(self, "port")
|
2750
|
+
|
2751
|
+
@property
|
2752
|
+
@pulumi.getter
|
2753
|
+
def assertions(self) -> Optional[Sequence['outputs.TcpCheckRequestAssertion']]:
|
2754
|
+
"""
|
2755
|
+
A request can have multiple assertions.
|
2756
|
+
"""
|
2757
|
+
return pulumi.get(self, "assertions")
|
2758
|
+
|
2759
|
+
@property
|
2760
|
+
@pulumi.getter
|
2761
|
+
def data(self) -> Optional[str]:
|
2762
|
+
"""
|
2763
|
+
The data to send to the target host.
|
2764
|
+
"""
|
2765
|
+
return pulumi.get(self, "data")
|
2766
|
+
|
2767
|
+
@property
|
2768
|
+
@pulumi.getter(name="ipFamily")
|
2769
|
+
def ip_family(self) -> Optional[str]:
|
2770
|
+
"""
|
2771
|
+
The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
2772
|
+
"""
|
2773
|
+
return pulumi.get(self, "ip_family")
|
2774
|
+
|
2775
|
+
|
2776
|
+
@pulumi.output_type
|
2777
|
+
class TcpCheckRequestAssertion(dict):
|
2778
|
+
def __init__(__self__, *,
|
2779
|
+
comparison: str,
|
2780
|
+
source: str,
|
2781
|
+
property: Optional[str] = None,
|
2782
|
+
target: Optional[str] = None):
|
2783
|
+
"""
|
2784
|
+
:param str comparison: The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
|
2785
|
+
:param str source: The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
2786
|
+
"""
|
2787
|
+
pulumi.set(__self__, "comparison", comparison)
|
2788
|
+
pulumi.set(__self__, "source", source)
|
2789
|
+
if property is not None:
|
2790
|
+
pulumi.set(__self__, "property", property)
|
2791
|
+
if target is not None:
|
2792
|
+
pulumi.set(__self__, "target", target)
|
2793
|
+
|
2794
|
+
@property
|
2795
|
+
@pulumi.getter
|
2796
|
+
def comparison(self) -> str:
|
2797
|
+
"""
|
2798
|
+
The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
|
2799
|
+
"""
|
2800
|
+
return pulumi.get(self, "comparison")
|
2801
|
+
|
2802
|
+
@property
|
2803
|
+
@pulumi.getter
|
2804
|
+
def source(self) -> str:
|
2805
|
+
"""
|
2806
|
+
The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
2807
|
+
"""
|
2808
|
+
return pulumi.get(self, "source")
|
2809
|
+
|
2810
|
+
@property
|
2811
|
+
@pulumi.getter
|
2812
|
+
def target(self) -> Optional[str]:
|
2813
|
+
return pulumi.get(self, "target")
|
2814
|
+
|
2815
|
+
@property
|
2816
|
+
@pulumi.getter
|
2817
|
+
def property(self) -> Optional[str]:
|
2818
|
+
return pulumi.get(self, "property")
|
2819
|
+
|
2820
|
+
|
2821
|
+
@pulumi.output_type
|
2822
|
+
class TcpCheckRetryStrategy(dict):
|
2823
|
+
@staticmethod
|
2824
|
+
def __key_warning(key: str):
|
2825
|
+
suggest = None
|
2826
|
+
if key == "baseBackoffSeconds":
|
2827
|
+
suggest = "base_backoff_seconds"
|
2828
|
+
elif key == "maxDurationSeconds":
|
2829
|
+
suggest = "max_duration_seconds"
|
2830
|
+
elif key == "maxRetries":
|
2831
|
+
suggest = "max_retries"
|
2832
|
+
elif key == "sameRegion":
|
2833
|
+
suggest = "same_region"
|
2834
|
+
|
2835
|
+
if suggest:
|
2836
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpCheckRetryStrategy. Access the value via the '{suggest}' property getter instead.")
|
2837
|
+
|
2838
|
+
def __getitem__(self, key: str) -> Any:
|
2839
|
+
TcpCheckRetryStrategy.__key_warning(key)
|
2840
|
+
return super().__getitem__(key)
|
2841
|
+
|
2842
|
+
def get(self, key: str, default = None) -> Any:
|
2843
|
+
TcpCheckRetryStrategy.__key_warning(key)
|
2844
|
+
return super().get(key, default)
|
2845
|
+
|
2846
|
+
def __init__(__self__, *,
|
2847
|
+
type: str,
|
2848
|
+
base_backoff_seconds: Optional[int] = None,
|
2849
|
+
max_duration_seconds: Optional[int] = None,
|
2850
|
+
max_retries: Optional[int] = None,
|
2851
|
+
same_region: Optional[bool] = None):
|
2852
|
+
"""
|
2853
|
+
:param str type: Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
2854
|
+
:param int base_backoff_seconds: The number of seconds to wait before the first retry attempt.
|
2855
|
+
:param int max_duration_seconds: The total amount of time to continue retrying the check (maximum 600 seconds).
|
2856
|
+
:param int max_retries: The maximum number of times to retry the check. Value must be between 1 and 10.
|
2857
|
+
:param bool same_region: Whether retries should be run in the same region as the initial check run.
|
2858
|
+
"""
|
2859
|
+
pulumi.set(__self__, "type", type)
|
2860
|
+
if base_backoff_seconds is not None:
|
2861
|
+
pulumi.set(__self__, "base_backoff_seconds", base_backoff_seconds)
|
2862
|
+
if max_duration_seconds is not None:
|
2863
|
+
pulumi.set(__self__, "max_duration_seconds", max_duration_seconds)
|
2864
|
+
if max_retries is not None:
|
2865
|
+
pulumi.set(__self__, "max_retries", max_retries)
|
2866
|
+
if same_region is not None:
|
2867
|
+
pulumi.set(__self__, "same_region", same_region)
|
2868
|
+
|
2869
|
+
@property
|
2870
|
+
@pulumi.getter
|
2871
|
+
def type(self) -> str:
|
2872
|
+
"""
|
2873
|
+
Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
2874
|
+
"""
|
2875
|
+
return pulumi.get(self, "type")
|
2876
|
+
|
2877
|
+
@property
|
2878
|
+
@pulumi.getter(name="baseBackoffSeconds")
|
2879
|
+
def base_backoff_seconds(self) -> Optional[int]:
|
2880
|
+
"""
|
2881
|
+
The number of seconds to wait before the first retry attempt.
|
2882
|
+
"""
|
2883
|
+
return pulumi.get(self, "base_backoff_seconds")
|
2884
|
+
|
2885
|
+
@property
|
2886
|
+
@pulumi.getter(name="maxDurationSeconds")
|
2887
|
+
def max_duration_seconds(self) -> Optional[int]:
|
2888
|
+
"""
|
2889
|
+
The total amount of time to continue retrying the check (maximum 600 seconds).
|
2890
|
+
"""
|
2891
|
+
return pulumi.get(self, "max_duration_seconds")
|
2892
|
+
|
2893
|
+
@property
|
2894
|
+
@pulumi.getter(name="maxRetries")
|
2895
|
+
def max_retries(self) -> Optional[int]:
|
2896
|
+
"""
|
2897
|
+
The maximum number of times to retry the check. Value must be between 1 and 10.
|
2898
|
+
"""
|
2899
|
+
return pulumi.get(self, "max_retries")
|
2900
|
+
|
2901
|
+
@property
|
2902
|
+
@pulumi.getter(name="sameRegion")
|
2903
|
+
def same_region(self) -> Optional[bool]:
|
2904
|
+
"""
|
2905
|
+
Whether retries should be run in the same region as the initial check run.
|
2906
|
+
"""
|
2907
|
+
return pulumi.get(self, "same_region")
|
2908
|
+
|
2909
|
+
|
2910
|
+
@pulumi.output_type
|
2911
|
+
class TcpMonitorAlertChannelSubscription(dict):
|
2912
|
+
@staticmethod
|
2913
|
+
def __key_warning(key: str):
|
2914
|
+
suggest = None
|
2915
|
+
if key == "channelId":
|
2916
|
+
suggest = "channel_id"
|
2917
|
+
|
2918
|
+
if suggest:
|
2919
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorAlertChannelSubscription. Access the value via the '{suggest}' property getter instead.")
|
2920
|
+
|
2921
|
+
def __getitem__(self, key: str) -> Any:
|
2922
|
+
TcpMonitorAlertChannelSubscription.__key_warning(key)
|
2923
|
+
return super().__getitem__(key)
|
2924
|
+
|
2925
|
+
def get(self, key: str, default = None) -> Any:
|
2926
|
+
TcpMonitorAlertChannelSubscription.__key_warning(key)
|
2927
|
+
return super().get(key, default)
|
2928
|
+
|
2929
|
+
def __init__(__self__, *,
|
2930
|
+
activated: bool,
|
2931
|
+
channel_id: int):
|
2932
|
+
pulumi.set(__self__, "activated", activated)
|
2933
|
+
pulumi.set(__self__, "channel_id", channel_id)
|
2934
|
+
|
2935
|
+
@property
|
2936
|
+
@pulumi.getter
|
2937
|
+
def activated(self) -> bool:
|
2938
|
+
return pulumi.get(self, "activated")
|
2939
|
+
|
2940
|
+
@property
|
2941
|
+
@pulumi.getter(name="channelId")
|
2942
|
+
def channel_id(self) -> int:
|
2943
|
+
return pulumi.get(self, "channel_id")
|
2944
|
+
|
2945
|
+
|
2946
|
+
@pulumi.output_type
|
2947
|
+
class TcpMonitorAlertSettings(dict):
|
2948
|
+
@staticmethod
|
2949
|
+
def __key_warning(key: str):
|
2950
|
+
suggest = None
|
2951
|
+
if key == "escalationType":
|
2952
|
+
suggest = "escalation_type"
|
2953
|
+
elif key == "parallelRunFailureThresholds":
|
2954
|
+
suggest = "parallel_run_failure_thresholds"
|
2955
|
+
elif key == "runBasedEscalations":
|
2956
|
+
suggest = "run_based_escalations"
|
2957
|
+
elif key == "timeBasedEscalations":
|
2958
|
+
suggest = "time_based_escalations"
|
2959
|
+
|
2960
|
+
if suggest:
|
2961
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorAlertSettings. Access the value via the '{suggest}' property getter instead.")
|
2962
|
+
|
2963
|
+
def __getitem__(self, key: str) -> Any:
|
2964
|
+
TcpMonitorAlertSettings.__key_warning(key)
|
2965
|
+
return super().__getitem__(key)
|
2966
|
+
|
2967
|
+
def get(self, key: str, default = None) -> Any:
|
2968
|
+
TcpMonitorAlertSettings.__key_warning(key)
|
2969
|
+
return super().get(key, default)
|
2970
|
+
|
2971
|
+
def __init__(__self__, *,
|
2972
|
+
escalation_type: Optional[str] = None,
|
2973
|
+
parallel_run_failure_thresholds: Optional[Sequence['outputs.TcpMonitorAlertSettingsParallelRunFailureThreshold']] = None,
|
2974
|
+
reminders: Optional[Sequence['outputs.TcpMonitorAlertSettingsReminder']] = None,
|
2975
|
+
run_based_escalations: Optional[Sequence['outputs.TcpMonitorAlertSettingsRunBasedEscalation']] = None,
|
2976
|
+
time_based_escalations: Optional[Sequence['outputs.TcpMonitorAlertSettingsTimeBasedEscalation']] = None):
|
2977
|
+
"""
|
2978
|
+
:param str escalation_type: Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2979
|
+
"""
|
2980
|
+
if escalation_type is not None:
|
2981
|
+
pulumi.set(__self__, "escalation_type", escalation_type)
|
2982
|
+
if parallel_run_failure_thresholds is not None:
|
2983
|
+
pulumi.set(__self__, "parallel_run_failure_thresholds", parallel_run_failure_thresholds)
|
2984
|
+
if reminders is not None:
|
2985
|
+
pulumi.set(__self__, "reminders", reminders)
|
2986
|
+
if run_based_escalations is not None:
|
2987
|
+
pulumi.set(__self__, "run_based_escalations", run_based_escalations)
|
2988
|
+
if time_based_escalations is not None:
|
2989
|
+
pulumi.set(__self__, "time_based_escalations", time_based_escalations)
|
2990
|
+
|
2991
|
+
@property
|
2992
|
+
@pulumi.getter(name="escalationType")
|
2993
|
+
def escalation_type(self) -> Optional[str]:
|
2994
|
+
"""
|
2995
|
+
Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
2996
|
+
"""
|
2997
|
+
return pulumi.get(self, "escalation_type")
|
2998
|
+
|
2999
|
+
@property
|
3000
|
+
@pulumi.getter(name="parallelRunFailureThresholds")
|
3001
|
+
def parallel_run_failure_thresholds(self) -> Optional[Sequence['outputs.TcpMonitorAlertSettingsParallelRunFailureThreshold']]:
|
3002
|
+
return pulumi.get(self, "parallel_run_failure_thresholds")
|
3003
|
+
|
3004
|
+
@property
|
3005
|
+
@pulumi.getter
|
3006
|
+
def reminders(self) -> Optional[Sequence['outputs.TcpMonitorAlertSettingsReminder']]:
|
3007
|
+
return pulumi.get(self, "reminders")
|
3008
|
+
|
3009
|
+
@property
|
3010
|
+
@pulumi.getter(name="runBasedEscalations")
|
3011
|
+
def run_based_escalations(self) -> Optional[Sequence['outputs.TcpMonitorAlertSettingsRunBasedEscalation']]:
|
3012
|
+
return pulumi.get(self, "run_based_escalations")
|
3013
|
+
|
3014
|
+
@property
|
3015
|
+
@pulumi.getter(name="timeBasedEscalations")
|
3016
|
+
def time_based_escalations(self) -> Optional[Sequence['outputs.TcpMonitorAlertSettingsTimeBasedEscalation']]:
|
3017
|
+
return pulumi.get(self, "time_based_escalations")
|
3018
|
+
|
3019
|
+
|
3020
|
+
@pulumi.output_type
|
3021
|
+
class TcpMonitorAlertSettingsParallelRunFailureThreshold(dict):
|
3022
|
+
def __init__(__self__, *,
|
3023
|
+
enabled: Optional[bool] = None,
|
3024
|
+
percentage: Optional[int] = None):
|
3025
|
+
"""
|
3026
|
+
:param bool enabled: Applicable only for checks scheduled in parallel in multiple locations.
|
3027
|
+
:param int percentage: Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
3028
|
+
"""
|
3029
|
+
if enabled is not None:
|
3030
|
+
pulumi.set(__self__, "enabled", enabled)
|
3031
|
+
if percentage is not None:
|
3032
|
+
pulumi.set(__self__, "percentage", percentage)
|
3033
|
+
|
3034
|
+
@property
|
3035
|
+
@pulumi.getter
|
3036
|
+
def enabled(self) -> Optional[bool]:
|
3037
|
+
"""
|
3038
|
+
Applicable only for checks scheduled in parallel in multiple locations.
|
3039
|
+
"""
|
3040
|
+
return pulumi.get(self, "enabled")
|
3041
|
+
|
3042
|
+
@property
|
3043
|
+
@pulumi.getter
|
3044
|
+
def percentage(self) -> Optional[int]:
|
3045
|
+
"""
|
3046
|
+
Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
3047
|
+
"""
|
3048
|
+
return pulumi.get(self, "percentage")
|
3049
|
+
|
3050
|
+
|
3051
|
+
@pulumi.output_type
|
3052
|
+
class TcpMonitorAlertSettingsReminder(dict):
|
3053
|
+
def __init__(__self__, *,
|
3054
|
+
amount: Optional[int] = None,
|
3055
|
+
interval: Optional[int] = None):
|
3056
|
+
"""
|
3057
|
+
:param int amount: How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
3058
|
+
:param int interval: Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3059
|
+
"""
|
3060
|
+
if amount is not None:
|
3061
|
+
pulumi.set(__self__, "amount", amount)
|
3062
|
+
if interval is not None:
|
3063
|
+
pulumi.set(__self__, "interval", interval)
|
3064
|
+
|
3065
|
+
@property
|
3066
|
+
@pulumi.getter
|
3067
|
+
def amount(self) -> Optional[int]:
|
3068
|
+
"""
|
3069
|
+
How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
3070
|
+
"""
|
3071
|
+
return pulumi.get(self, "amount")
|
3072
|
+
|
3073
|
+
@property
|
3074
|
+
@pulumi.getter
|
3075
|
+
def interval(self) -> Optional[int]:
|
3076
|
+
"""
|
3077
|
+
Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3078
|
+
"""
|
3079
|
+
return pulumi.get(self, "interval")
|
3080
|
+
|
3081
|
+
|
3082
|
+
@pulumi.output_type
|
3083
|
+
class TcpMonitorAlertSettingsRunBasedEscalation(dict):
|
3084
|
+
@staticmethod
|
3085
|
+
def __key_warning(key: str):
|
3086
|
+
suggest = None
|
3087
|
+
if key == "failedRunThreshold":
|
3088
|
+
suggest = "failed_run_threshold"
|
3089
|
+
|
3090
|
+
if suggest:
|
3091
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorAlertSettingsRunBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
3092
|
+
|
3093
|
+
def __getitem__(self, key: str) -> Any:
|
3094
|
+
TcpMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
3095
|
+
return super().__getitem__(key)
|
3096
|
+
|
3097
|
+
def get(self, key: str, default = None) -> Any:
|
3098
|
+
TcpMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
3099
|
+
return super().get(key, default)
|
3100
|
+
|
3101
|
+
def __init__(__self__, *,
|
3102
|
+
failed_run_threshold: Optional[int] = None):
|
3103
|
+
"""
|
3104
|
+
:param int failed_run_threshold: After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
3105
|
+
"""
|
3106
|
+
if failed_run_threshold is not None:
|
3107
|
+
pulumi.set(__self__, "failed_run_threshold", failed_run_threshold)
|
3108
|
+
|
3109
|
+
@property
|
3110
|
+
@pulumi.getter(name="failedRunThreshold")
|
3111
|
+
def failed_run_threshold(self) -> Optional[int]:
|
3112
|
+
"""
|
3113
|
+
After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
3114
|
+
"""
|
3115
|
+
return pulumi.get(self, "failed_run_threshold")
|
3116
|
+
|
3117
|
+
|
3118
|
+
@pulumi.output_type
|
3119
|
+
class TcpMonitorAlertSettingsTimeBasedEscalation(dict):
|
3120
|
+
@staticmethod
|
3121
|
+
def __key_warning(key: str):
|
3122
|
+
suggest = None
|
3123
|
+
if key == "minutesFailingThreshold":
|
3124
|
+
suggest = "minutes_failing_threshold"
|
3125
|
+
|
3126
|
+
if suggest:
|
3127
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorAlertSettingsTimeBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
3128
|
+
|
3129
|
+
def __getitem__(self, key: str) -> Any:
|
3130
|
+
TcpMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
3131
|
+
return super().__getitem__(key)
|
3132
|
+
|
3133
|
+
def get(self, key: str, default = None) -> Any:
|
3134
|
+
TcpMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
3135
|
+
return super().get(key, default)
|
3136
|
+
|
3137
|
+
def __init__(__self__, *,
|
3138
|
+
minutes_failing_threshold: Optional[int] = None):
|
3139
|
+
"""
|
3140
|
+
:param int minutes_failing_threshold: After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3141
|
+
"""
|
3142
|
+
if minutes_failing_threshold is not None:
|
3143
|
+
pulumi.set(__self__, "minutes_failing_threshold", minutes_failing_threshold)
|
3144
|
+
|
3145
|
+
@property
|
3146
|
+
@pulumi.getter(name="minutesFailingThreshold")
|
3147
|
+
def minutes_failing_threshold(self) -> Optional[int]:
|
3148
|
+
"""
|
3149
|
+
After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3150
|
+
"""
|
3151
|
+
return pulumi.get(self, "minutes_failing_threshold")
|
3152
|
+
|
3153
|
+
|
3154
|
+
@pulumi.output_type
|
3155
|
+
class TcpMonitorRequest(dict):
|
3156
|
+
@staticmethod
|
3157
|
+
def __key_warning(key: str):
|
3158
|
+
suggest = None
|
3159
|
+
if key == "ipFamily":
|
3160
|
+
suggest = "ip_family"
|
3161
|
+
|
3162
|
+
if suggest:
|
3163
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorRequest. Access the value via the '{suggest}' property getter instead.")
|
3164
|
+
|
3165
|
+
def __getitem__(self, key: str) -> Any:
|
3166
|
+
TcpMonitorRequest.__key_warning(key)
|
3167
|
+
return super().__getitem__(key)
|
3168
|
+
|
3169
|
+
def get(self, key: str, default = None) -> Any:
|
3170
|
+
TcpMonitorRequest.__key_warning(key)
|
3171
|
+
return super().get(key, default)
|
3172
|
+
|
3173
|
+
def __init__(__self__, *,
|
3174
|
+
hostname: str,
|
3175
|
+
port: int,
|
3176
|
+
assertions: Optional[Sequence['outputs.TcpMonitorRequestAssertion']] = None,
|
3177
|
+
data: Optional[str] = None,
|
3178
|
+
ip_family: Optional[str] = None):
|
3179
|
+
"""
|
3180
|
+
:param str hostname: The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
3181
|
+
:param int port: The port number to connect to.
|
3182
|
+
:param Sequence['TcpMonitorRequestAssertionArgs'] assertions: A request can have multiple assertions.
|
3183
|
+
:param str data: The data to send to the target host.
|
3184
|
+
:param str ip_family: The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
3185
|
+
"""
|
3186
|
+
pulumi.set(__self__, "hostname", hostname)
|
3187
|
+
pulumi.set(__self__, "port", port)
|
3188
|
+
if assertions is not None:
|
3189
|
+
pulumi.set(__self__, "assertions", assertions)
|
3190
|
+
if data is not None:
|
3191
|
+
pulumi.set(__self__, "data", data)
|
3192
|
+
if ip_family is not None:
|
3193
|
+
pulumi.set(__self__, "ip_family", ip_family)
|
3194
|
+
|
3195
|
+
@property
|
3196
|
+
@pulumi.getter
|
3197
|
+
def hostname(self) -> str:
|
3198
|
+
"""
|
3199
|
+
The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
3200
|
+
"""
|
3201
|
+
return pulumi.get(self, "hostname")
|
3202
|
+
|
3203
|
+
@property
|
3204
|
+
@pulumi.getter
|
3205
|
+
def port(self) -> int:
|
3206
|
+
"""
|
3207
|
+
The port number to connect to.
|
3208
|
+
"""
|
3209
|
+
return pulumi.get(self, "port")
|
3210
|
+
|
3211
|
+
@property
|
3212
|
+
@pulumi.getter
|
3213
|
+
def assertions(self) -> Optional[Sequence['outputs.TcpMonitorRequestAssertion']]:
|
3214
|
+
"""
|
3215
|
+
A request can have multiple assertions.
|
3216
|
+
"""
|
3217
|
+
return pulumi.get(self, "assertions")
|
3218
|
+
|
3219
|
+
@property
|
3220
|
+
@pulumi.getter
|
3221
|
+
def data(self) -> Optional[str]:
|
3222
|
+
"""
|
3223
|
+
The data to send to the target host.
|
3224
|
+
"""
|
3225
|
+
return pulumi.get(self, "data")
|
3226
|
+
|
3227
|
+
@property
|
3228
|
+
@pulumi.getter(name="ipFamily")
|
3229
|
+
def ip_family(self) -> Optional[str]:
|
3230
|
+
"""
|
3231
|
+
The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
3232
|
+
"""
|
3233
|
+
return pulumi.get(self, "ip_family")
|
3234
|
+
|
3235
|
+
|
3236
|
+
@pulumi.output_type
|
3237
|
+
class TcpMonitorRequestAssertion(dict):
|
3238
|
+
def __init__(__self__, *,
|
3239
|
+
comparison: str,
|
3240
|
+
source: str,
|
3241
|
+
property: Optional[str] = None,
|
3242
|
+
target: Optional[str] = None):
|
3243
|
+
"""
|
3244
|
+
:param str comparison: The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
|
3245
|
+
:param str source: The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
3246
|
+
"""
|
3247
|
+
pulumi.set(__self__, "comparison", comparison)
|
3248
|
+
pulumi.set(__self__, "source", source)
|
3249
|
+
if property is not None:
|
3250
|
+
pulumi.set(__self__, "property", property)
|
3251
|
+
if target is not None:
|
3252
|
+
pulumi.set(__self__, "target", target)
|
3253
|
+
|
3254
|
+
@property
|
3255
|
+
@pulumi.getter
|
3256
|
+
def comparison(self) -> str:
|
3257
|
+
"""
|
3258
|
+
The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `HAS_KEY`, `NOT_HAS_KEY`, `HAS_VALUE`, `NOT_HAS_VALUE`, `IS_EMPTY`, `NOT_EMPTY`, `GREATER_THAN`, `LESS_THAN`, `CONTAINS`, `NOT_CONTAINS`, `IS_NULL`, and `NOT_NULL`.
|
3259
|
+
"""
|
3260
|
+
return pulumi.get(self, "comparison")
|
3261
|
+
|
3262
|
+
@property
|
3263
|
+
@pulumi.getter
|
3264
|
+
def source(self) -> str:
|
3265
|
+
"""
|
3266
|
+
The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
3267
|
+
"""
|
3268
|
+
return pulumi.get(self, "source")
|
3269
|
+
|
3270
|
+
@property
|
3271
|
+
@pulumi.getter
|
3272
|
+
def target(self) -> Optional[str]:
|
3273
|
+
return pulumi.get(self, "target")
|
3274
|
+
|
3275
|
+
@property
|
3276
|
+
@pulumi.getter
|
3277
|
+
def property(self) -> Optional[str]:
|
3278
|
+
return pulumi.get(self, "property")
|
3279
|
+
|
3280
|
+
|
3281
|
+
@pulumi.output_type
|
3282
|
+
class TcpMonitorRetryStrategy(dict):
|
3283
|
+
@staticmethod
|
3284
|
+
def __key_warning(key: str):
|
3285
|
+
suggest = None
|
3286
|
+
if key == "baseBackoffSeconds":
|
3287
|
+
suggest = "base_backoff_seconds"
|
3288
|
+
elif key == "maxDurationSeconds":
|
3289
|
+
suggest = "max_duration_seconds"
|
3290
|
+
elif key == "maxRetries":
|
3291
|
+
suggest = "max_retries"
|
3292
|
+
elif key == "sameRegion":
|
3293
|
+
suggest = "same_region"
|
1963
3294
|
|
1964
3295
|
if suggest:
|
1965
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3296
|
+
pulumi.log.warn(f"Key '{key}' not found in TcpMonitorRetryStrategy. Access the value via the '{suggest}' property getter instead.")
|
1966
3297
|
|
1967
3298
|
def __getitem__(self, key: str) -> Any:
|
1968
|
-
|
3299
|
+
TcpMonitorRetryStrategy.__key_warning(key)
|
1969
3300
|
return super().__getitem__(key)
|
1970
3301
|
|
1971
3302
|
def get(self, key: str, default = None) -> Any:
|
1972
|
-
|
3303
|
+
TcpMonitorRetryStrategy.__key_warning(key)
|
1973
3304
|
return super().get(key, default)
|
1974
3305
|
|
1975
3306
|
def __init__(__self__, *,
|
1976
|
-
|
1977
|
-
|
3307
|
+
type: str,
|
3308
|
+
base_backoff_seconds: Optional[int] = None,
|
3309
|
+
max_duration_seconds: Optional[int] = None,
|
3310
|
+
max_retries: Optional[int] = None,
|
3311
|
+
same_region: Optional[bool] = None):
|
1978
3312
|
"""
|
1979
|
-
:param str
|
1980
|
-
:param
|
3313
|
+
:param str type: Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
3314
|
+
:param int base_backoff_seconds: The number of seconds to wait before the first retry attempt.
|
3315
|
+
:param int max_duration_seconds: The total amount of time to continue retrying the check (maximum 600 seconds).
|
3316
|
+
:param int max_retries: The maximum number of times to retry the check. Value must be between 1 and 10.
|
3317
|
+
:param bool same_region: Whether retries should be run in the same region as the initial check run.
|
1981
3318
|
"""
|
1982
|
-
pulumi.set(__self__, "
|
1983
|
-
|
3319
|
+
pulumi.set(__self__, "type", type)
|
3320
|
+
if base_backoff_seconds is not None:
|
3321
|
+
pulumi.set(__self__, "base_backoff_seconds", base_backoff_seconds)
|
3322
|
+
if max_duration_seconds is not None:
|
3323
|
+
pulumi.set(__self__, "max_duration_seconds", max_duration_seconds)
|
3324
|
+
if max_retries is not None:
|
3325
|
+
pulumi.set(__self__, "max_retries", max_retries)
|
3326
|
+
if same_region is not None:
|
3327
|
+
pulumi.set(__self__, "same_region", same_region)
|
1984
3328
|
|
1985
3329
|
@property
|
1986
3330
|
@pulumi.getter
|
1987
|
-
def
|
3331
|
+
def type(self) -> str:
|
1988
3332
|
"""
|
1989
|
-
|
3333
|
+
Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
1990
3334
|
"""
|
1991
|
-
return pulumi.get(self, "
|
3335
|
+
return pulumi.get(self, "type")
|
1992
3336
|
|
1993
3337
|
@property
|
1994
|
-
@pulumi.getter(name="
|
1995
|
-
def
|
3338
|
+
@pulumi.getter(name="baseBackoffSeconds")
|
3339
|
+
def base_backoff_seconds(self) -> Optional[int]:
|
1996
3340
|
"""
|
1997
|
-
|
3341
|
+
The number of seconds to wait before the first retry attempt.
|
1998
3342
|
"""
|
1999
|
-
return pulumi.get(self, "
|
2000
|
-
|
2001
|
-
|
2002
|
-
@pulumi.output_type
|
2003
|
-
class StatusPageCardServiceAttachment(dict):
|
2004
|
-
@staticmethod
|
2005
|
-
def __key_warning(key: str):
|
2006
|
-
suggest = None
|
2007
|
-
if key == "serviceId":
|
2008
|
-
suggest = "service_id"
|
2009
|
-
|
2010
|
-
if suggest:
|
2011
|
-
pulumi.log.warn(f"Key '{key}' not found in StatusPageCardServiceAttachment. Access the value via the '{suggest}' property getter instead.")
|
2012
|
-
|
2013
|
-
def __getitem__(self, key: str) -> Any:
|
2014
|
-
StatusPageCardServiceAttachment.__key_warning(key)
|
2015
|
-
return super().__getitem__(key)
|
3343
|
+
return pulumi.get(self, "base_backoff_seconds")
|
2016
3344
|
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
3345
|
+
@property
|
3346
|
+
@pulumi.getter(name="maxDurationSeconds")
|
3347
|
+
def max_duration_seconds(self) -> Optional[int]:
|
3348
|
+
"""
|
3349
|
+
The total amount of time to continue retrying the check (maximum 600 seconds).
|
3350
|
+
"""
|
3351
|
+
return pulumi.get(self, "max_duration_seconds")
|
2020
3352
|
|
2021
|
-
|
2022
|
-
|
3353
|
+
@property
|
3354
|
+
@pulumi.getter(name="maxRetries")
|
3355
|
+
def max_retries(self) -> Optional[int]:
|
2023
3356
|
"""
|
2024
|
-
|
3357
|
+
The maximum number of times to retry the check. Value must be between 1 and 10.
|
2025
3358
|
"""
|
2026
|
-
pulumi.
|
3359
|
+
return pulumi.get(self, "max_retries")
|
2027
3360
|
|
2028
3361
|
@property
|
2029
|
-
@pulumi.getter(name="
|
2030
|
-
def
|
3362
|
+
@pulumi.getter(name="sameRegion")
|
3363
|
+
def same_region(self) -> Optional[bool]:
|
2031
3364
|
"""
|
2032
|
-
|
3365
|
+
Whether retries should be run in the same region as the initial check run.
|
2033
3366
|
"""
|
2034
|
-
return pulumi.get(self, "
|
3367
|
+
return pulumi.get(self, "same_region")
|
2035
3368
|
|
2036
3369
|
|
2037
3370
|
@pulumi.output_type
|
2038
|
-
class
|
3371
|
+
class UrlMonitorAlertChannelSubscription(dict):
|
2039
3372
|
@staticmethod
|
2040
3373
|
def __key_warning(key: str):
|
2041
3374
|
suggest = None
|
@@ -2043,35 +3376,45 @@ class TcpCheckAlertChannelSubscription(dict):
|
|
2043
3376
|
suggest = "channel_id"
|
2044
3377
|
|
2045
3378
|
if suggest:
|
2046
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3379
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorAlertChannelSubscription. Access the value via the '{suggest}' property getter instead.")
|
2047
3380
|
|
2048
3381
|
def __getitem__(self, key: str) -> Any:
|
2049
|
-
|
3382
|
+
UrlMonitorAlertChannelSubscription.__key_warning(key)
|
2050
3383
|
return super().__getitem__(key)
|
2051
3384
|
|
2052
3385
|
def get(self, key: str, default = None) -> Any:
|
2053
|
-
|
3386
|
+
UrlMonitorAlertChannelSubscription.__key_warning(key)
|
2054
3387
|
return super().get(key, default)
|
2055
3388
|
|
2056
3389
|
def __init__(__self__, *,
|
2057
3390
|
activated: bool,
|
2058
3391
|
channel_id: int):
|
3392
|
+
"""
|
3393
|
+
:param bool activated: Whether an alert should be sent to this channel.
|
3394
|
+
:param int channel_id: The ID of the alert channel.
|
3395
|
+
"""
|
2059
3396
|
pulumi.set(__self__, "activated", activated)
|
2060
3397
|
pulumi.set(__self__, "channel_id", channel_id)
|
2061
3398
|
|
2062
3399
|
@property
|
2063
3400
|
@pulumi.getter
|
2064
3401
|
def activated(self) -> bool:
|
3402
|
+
"""
|
3403
|
+
Whether an alert should be sent to this channel.
|
3404
|
+
"""
|
2065
3405
|
return pulumi.get(self, "activated")
|
2066
3406
|
|
2067
3407
|
@property
|
2068
3408
|
@pulumi.getter(name="channelId")
|
2069
3409
|
def channel_id(self) -> int:
|
3410
|
+
"""
|
3411
|
+
The ID of the alert channel.
|
3412
|
+
"""
|
2070
3413
|
return pulumi.get(self, "channel_id")
|
2071
3414
|
|
2072
3415
|
|
2073
3416
|
@pulumi.output_type
|
2074
|
-
class
|
3417
|
+
class UrlMonitorAlertSettings(dict):
|
2075
3418
|
@staticmethod
|
2076
3419
|
def __key_warning(key: str):
|
2077
3420
|
suggest = None
|
@@ -2085,27 +3428,30 @@ class TcpCheckAlertSettings(dict):
|
|
2085
3428
|
suggest = "time_based_escalations"
|
2086
3429
|
|
2087
3430
|
if suggest:
|
2088
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3431
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorAlertSettings. Access the value via the '{suggest}' property getter instead.")
|
2089
3432
|
|
2090
3433
|
def __getitem__(self, key: str) -> Any:
|
2091
|
-
|
3434
|
+
UrlMonitorAlertSettings.__key_warning(key)
|
2092
3435
|
return super().__getitem__(key)
|
2093
3436
|
|
2094
3437
|
def get(self, key: str, default = None) -> Any:
|
2095
|
-
|
3438
|
+
UrlMonitorAlertSettings.__key_warning(key)
|
2096
3439
|
return super().get(key, default)
|
2097
3440
|
|
2098
3441
|
def __init__(__self__, *,
|
2099
|
-
escalation_type:
|
2100
|
-
parallel_run_failure_thresholds: Optional[Sequence['outputs.
|
2101
|
-
reminders: Optional[Sequence['outputs.
|
2102
|
-
run_based_escalations: Optional[Sequence['outputs.
|
2103
|
-
time_based_escalations: Optional[Sequence['outputs.
|
2104
|
-
"""
|
2105
|
-
:param str escalation_type: Determines what type of escalation to use. Possible values are `RUN_BASED`
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
3442
|
+
escalation_type: str,
|
3443
|
+
parallel_run_failure_thresholds: Optional[Sequence['outputs.UrlMonitorAlertSettingsParallelRunFailureThreshold']] = None,
|
3444
|
+
reminders: Optional[Sequence['outputs.UrlMonitorAlertSettingsReminder']] = None,
|
3445
|
+
run_based_escalations: Optional[Sequence['outputs.UrlMonitorAlertSettingsRunBasedEscalation']] = None,
|
3446
|
+
time_based_escalations: Optional[Sequence['outputs.UrlMonitorAlertSettingsTimeBasedEscalation']] = None):
|
3447
|
+
"""
|
3448
|
+
:param str escalation_type: Determines what type of escalation to use. Possible values are `RUN_BASED` and `TIME_BASED`.
|
3449
|
+
:param Sequence['UrlMonitorAlertSettingsParallelRunFailureThresholdArgs'] parallel_run_failure_thresholds: Configuration for parallel run failure threshold.
|
3450
|
+
:param Sequence['UrlMonitorAlertSettingsReminderArgs'] reminders: Defines how often to send reminder notifications after initial alert.
|
3451
|
+
:param Sequence['UrlMonitorAlertSettingsRunBasedEscalationArgs'] run_based_escalations: Configuration for run-based escalation.
|
3452
|
+
:param Sequence['UrlMonitorAlertSettingsTimeBasedEscalationArgs'] time_based_escalations: Configuration for time-based escalation.
|
3453
|
+
"""
|
3454
|
+
pulumi.set(__self__, "escalation_type", escalation_type)
|
2109
3455
|
if parallel_run_failure_thresholds is not None:
|
2110
3456
|
pulumi.set(__self__, "parallel_run_failure_thresholds", parallel_run_failure_thresholds)
|
2111
3457
|
if reminders is not None:
|
@@ -2117,41 +3463,53 @@ class TcpCheckAlertSettings(dict):
|
|
2117
3463
|
|
2118
3464
|
@property
|
2119
3465
|
@pulumi.getter(name="escalationType")
|
2120
|
-
def escalation_type(self) ->
|
3466
|
+
def escalation_type(self) -> str:
|
2121
3467
|
"""
|
2122
|
-
Determines what type of escalation to use. Possible values are `RUN_BASED`
|
3468
|
+
Determines what type of escalation to use. Possible values are `RUN_BASED` and `TIME_BASED`.
|
2123
3469
|
"""
|
2124
3470
|
return pulumi.get(self, "escalation_type")
|
2125
3471
|
|
2126
3472
|
@property
|
2127
3473
|
@pulumi.getter(name="parallelRunFailureThresholds")
|
2128
|
-
def parallel_run_failure_thresholds(self) -> Optional[Sequence['outputs.
|
3474
|
+
def parallel_run_failure_thresholds(self) -> Optional[Sequence['outputs.UrlMonitorAlertSettingsParallelRunFailureThreshold']]:
|
3475
|
+
"""
|
3476
|
+
Configuration for parallel run failure threshold.
|
3477
|
+
"""
|
2129
3478
|
return pulumi.get(self, "parallel_run_failure_thresholds")
|
2130
3479
|
|
2131
3480
|
@property
|
2132
3481
|
@pulumi.getter
|
2133
|
-
def reminders(self) -> Optional[Sequence['outputs.
|
3482
|
+
def reminders(self) -> Optional[Sequence['outputs.UrlMonitorAlertSettingsReminder']]:
|
3483
|
+
"""
|
3484
|
+
Defines how often to send reminder notifications after initial alert.
|
3485
|
+
"""
|
2134
3486
|
return pulumi.get(self, "reminders")
|
2135
3487
|
|
2136
3488
|
@property
|
2137
3489
|
@pulumi.getter(name="runBasedEscalations")
|
2138
|
-
def run_based_escalations(self) -> Optional[Sequence['outputs.
|
3490
|
+
def run_based_escalations(self) -> Optional[Sequence['outputs.UrlMonitorAlertSettingsRunBasedEscalation']]:
|
3491
|
+
"""
|
3492
|
+
Configuration for run-based escalation.
|
3493
|
+
"""
|
2139
3494
|
return pulumi.get(self, "run_based_escalations")
|
2140
3495
|
|
2141
3496
|
@property
|
2142
3497
|
@pulumi.getter(name="timeBasedEscalations")
|
2143
|
-
def time_based_escalations(self) -> Optional[Sequence['outputs.
|
3498
|
+
def time_based_escalations(self) -> Optional[Sequence['outputs.UrlMonitorAlertSettingsTimeBasedEscalation']]:
|
3499
|
+
"""
|
3500
|
+
Configuration for time-based escalation.
|
3501
|
+
"""
|
2144
3502
|
return pulumi.get(self, "time_based_escalations")
|
2145
3503
|
|
2146
3504
|
|
2147
3505
|
@pulumi.output_type
|
2148
|
-
class
|
3506
|
+
class UrlMonitorAlertSettingsParallelRunFailureThreshold(dict):
|
2149
3507
|
def __init__(__self__, *,
|
2150
3508
|
enabled: Optional[bool] = None,
|
2151
3509
|
percentage: Optional[int] = None):
|
2152
3510
|
"""
|
2153
|
-
:param bool enabled: Applicable only for
|
2154
|
-
:param int percentage: Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `
|
3511
|
+
:param bool enabled: Whether parallel run failure threshold is enabled. Applicable only for monitors scheduled in parallel in multiple locations. (Default `false`).
|
3512
|
+
:param int percentage: Percentage of runs that must fail to trigger alert. Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, and `100`. (Default `10`).
|
2155
3513
|
"""
|
2156
3514
|
if enabled is not None:
|
2157
3515
|
pulumi.set(__self__, "enabled", enabled)
|
@@ -2162,7 +3520,7 @@ class TcpCheckAlertSettingsParallelRunFailureThreshold(dict):
|
|
2162
3520
|
@pulumi.getter
|
2163
3521
|
def enabled(self) -> Optional[bool]:
|
2164
3522
|
"""
|
2165
|
-
Applicable only for
|
3523
|
+
Whether parallel run failure threshold is enabled. Applicable only for monitors scheduled in parallel in multiple locations. (Default `false`).
|
2166
3524
|
"""
|
2167
3525
|
return pulumi.get(self, "enabled")
|
2168
3526
|
|
@@ -2170,19 +3528,19 @@ class TcpCheckAlertSettingsParallelRunFailureThreshold(dict):
|
|
2170
3528
|
@pulumi.getter
|
2171
3529
|
def percentage(self) -> Optional[int]:
|
2172
3530
|
"""
|
2173
|
-
Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `
|
3531
|
+
Percentage of runs that must fail to trigger alert. Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, and `100`. (Default `10`).
|
2174
3532
|
"""
|
2175
3533
|
return pulumi.get(self, "percentage")
|
2176
3534
|
|
2177
3535
|
|
2178
3536
|
@pulumi.output_type
|
2179
|
-
class
|
3537
|
+
class UrlMonitorAlertSettingsReminder(dict):
|
2180
3538
|
def __init__(__self__, *,
|
2181
3539
|
amount: Optional[int] = None,
|
2182
3540
|
interval: Optional[int] = None):
|
2183
3541
|
"""
|
2184
|
-
:param int amount:
|
2185
|
-
:param int interval: Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3542
|
+
:param int amount: Number of reminder notifications to send. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000` (`0` to disable, `100000` for unlimited). (Default `0`).
|
3543
|
+
:param int interval: Interval between reminder notifications in minutes. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2186
3544
|
"""
|
2187
3545
|
if amount is not None:
|
2188
3546
|
pulumi.set(__self__, "amount", amount)
|
@@ -2193,7 +3551,7 @@ class TcpCheckAlertSettingsReminder(dict):
|
|
2193
3551
|
@pulumi.getter
|
2194
3552
|
def amount(self) -> Optional[int]:
|
2195
3553
|
"""
|
2196
|
-
|
3554
|
+
Number of reminder notifications to send. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000` (`0` to disable, `100000` for unlimited). (Default `0`).
|
2197
3555
|
"""
|
2198
3556
|
return pulumi.get(self, "amount")
|
2199
3557
|
|
@@ -2201,13 +3559,13 @@ class TcpCheckAlertSettingsReminder(dict):
|
|
2201
3559
|
@pulumi.getter
|
2202
3560
|
def interval(self) -> Optional[int]:
|
2203
3561
|
"""
|
2204
|
-
Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
3562
|
+
Interval between reminder notifications in minutes. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2205
3563
|
"""
|
2206
3564
|
return pulumi.get(self, "interval")
|
2207
3565
|
|
2208
3566
|
|
2209
3567
|
@pulumi.output_type
|
2210
|
-
class
|
3568
|
+
class UrlMonitorAlertSettingsRunBasedEscalation(dict):
|
2211
3569
|
@staticmethod
|
2212
3570
|
def __key_warning(key: str):
|
2213
3571
|
suggest = None
|
@@ -2215,20 +3573,20 @@ class TcpCheckAlertSettingsRunBasedEscalation(dict):
|
|
2215
3573
|
suggest = "failed_run_threshold"
|
2216
3574
|
|
2217
3575
|
if suggest:
|
2218
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3576
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorAlertSettingsRunBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2219
3577
|
|
2220
3578
|
def __getitem__(self, key: str) -> Any:
|
2221
|
-
|
3579
|
+
UrlMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
2222
3580
|
return super().__getitem__(key)
|
2223
3581
|
|
2224
3582
|
def get(self, key: str, default = None) -> Any:
|
2225
|
-
|
3583
|
+
UrlMonitorAlertSettingsRunBasedEscalation.__key_warning(key)
|
2226
3584
|
return super().get(key, default)
|
2227
3585
|
|
2228
3586
|
def __init__(__self__, *,
|
2229
3587
|
failed_run_threshold: Optional[int] = None):
|
2230
3588
|
"""
|
2231
|
-
:param int failed_run_threshold: After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5
|
3589
|
+
:param int failed_run_threshold: After how many failed consecutive check runs an alert notification should be sent. Possible values are between `1` and `5`. (Default `1`).
|
2232
3590
|
"""
|
2233
3591
|
if failed_run_threshold is not None:
|
2234
3592
|
pulumi.set(__self__, "failed_run_threshold", failed_run_threshold)
|
@@ -2237,13 +3595,13 @@ class TcpCheckAlertSettingsRunBasedEscalation(dict):
|
|
2237
3595
|
@pulumi.getter(name="failedRunThreshold")
|
2238
3596
|
def failed_run_threshold(self) -> Optional[int]:
|
2239
3597
|
"""
|
2240
|
-
After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5
|
3598
|
+
After how many failed consecutive check runs an alert notification should be sent. Possible values are between `1` and `5`. (Default `1`).
|
2241
3599
|
"""
|
2242
3600
|
return pulumi.get(self, "failed_run_threshold")
|
2243
3601
|
|
2244
3602
|
|
2245
3603
|
@pulumi.output_type
|
2246
|
-
class
|
3604
|
+
class UrlMonitorAlertSettingsTimeBasedEscalation(dict):
|
2247
3605
|
@staticmethod
|
2248
3606
|
def __key_warning(key: str):
|
2249
3607
|
suggest = None
|
@@ -2251,20 +3609,20 @@ class TcpCheckAlertSettingsTimeBasedEscalation(dict):
|
|
2251
3609
|
suggest = "minutes_failing_threshold"
|
2252
3610
|
|
2253
3611
|
if suggest:
|
2254
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3612
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorAlertSettingsTimeBasedEscalation. Access the value via the '{suggest}' property getter instead.")
|
2255
3613
|
|
2256
3614
|
def __getitem__(self, key: str) -> Any:
|
2257
|
-
|
3615
|
+
UrlMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2258
3616
|
return super().__getitem__(key)
|
2259
3617
|
|
2260
3618
|
def get(self, key: str, default = None) -> Any:
|
2261
|
-
|
3619
|
+
UrlMonitorAlertSettingsTimeBasedEscalation.__key_warning(key)
|
2262
3620
|
return super().get(key, default)
|
2263
3621
|
|
2264
3622
|
def __init__(__self__, *,
|
2265
3623
|
minutes_failing_threshold: Optional[int] = None):
|
2266
3624
|
"""
|
2267
|
-
:param int minutes_failing_threshold: After how many minutes after a
|
3625
|
+
:param int minutes_failing_threshold: After how many minutes after a monitor starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2268
3626
|
"""
|
2269
3627
|
if minutes_failing_threshold is not None:
|
2270
3628
|
pulumi.set(__self__, "minutes_failing_threshold", minutes_failing_threshold)
|
@@ -2273,116 +3631,121 @@ class TcpCheckAlertSettingsTimeBasedEscalation(dict):
|
|
2273
3631
|
@pulumi.getter(name="minutesFailingThreshold")
|
2274
3632
|
def minutes_failing_threshold(self) -> Optional[int]:
|
2275
3633
|
"""
|
2276
|
-
After how many minutes after a
|
3634
|
+
After how many minutes after a monitor starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
2277
3635
|
"""
|
2278
3636
|
return pulumi.get(self, "minutes_failing_threshold")
|
2279
3637
|
|
2280
3638
|
|
2281
3639
|
@pulumi.output_type
|
2282
|
-
class
|
3640
|
+
class UrlMonitorRequest(dict):
|
2283
3641
|
@staticmethod
|
2284
3642
|
def __key_warning(key: str):
|
2285
3643
|
suggest = None
|
2286
|
-
if key == "
|
3644
|
+
if key == "followRedirects":
|
3645
|
+
suggest = "follow_redirects"
|
3646
|
+
elif key == "ipFamily":
|
2287
3647
|
suggest = "ip_family"
|
3648
|
+
elif key == "skipSsl":
|
3649
|
+
suggest = "skip_ssl"
|
2288
3650
|
|
2289
3651
|
if suggest:
|
2290
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3652
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorRequest. Access the value via the '{suggest}' property getter instead.")
|
2291
3653
|
|
2292
3654
|
def __getitem__(self, key: str) -> Any:
|
2293
|
-
|
3655
|
+
UrlMonitorRequest.__key_warning(key)
|
2294
3656
|
return super().__getitem__(key)
|
2295
3657
|
|
2296
3658
|
def get(self, key: str, default = None) -> Any:
|
2297
|
-
|
3659
|
+
UrlMonitorRequest.__key_warning(key)
|
2298
3660
|
return super().get(key, default)
|
2299
3661
|
|
2300
3662
|
def __init__(__self__, *,
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
3663
|
+
url: str,
|
3664
|
+
assertions: Optional[Sequence['outputs.UrlMonitorRequestAssertion']] = None,
|
3665
|
+
follow_redirects: Optional[bool] = None,
|
3666
|
+
ip_family: Optional[str] = None,
|
3667
|
+
skip_ssl: Optional[bool] = None):
|
2306
3668
|
"""
|
2307
|
-
:param str
|
2308
|
-
:param
|
2309
|
-
:param
|
2310
|
-
:param str
|
2311
|
-
:param
|
3669
|
+
:param str url: The URL to monitor. Must be a valid HTTP or HTTPS URL.
|
3670
|
+
:param Sequence['UrlMonitorRequestAssertionArgs'] assertions: Assertions to validate the HTTP response. URL monitors only support status code assertions.
|
3671
|
+
:param bool follow_redirects: Whether to follow HTTP redirects automatically. (Default `true`).
|
3672
|
+
:param str ip_family: IP family version to use for the connection. The value can be either `IPv4` or `IPv6`. (Default `IPv4`).
|
3673
|
+
:param bool skip_ssl: Whether to skip SSL certificate verification. (Default `false`).
|
2312
3674
|
"""
|
2313
|
-
pulumi.set(__self__, "
|
2314
|
-
pulumi.set(__self__, "port", port)
|
3675
|
+
pulumi.set(__self__, "url", url)
|
2315
3676
|
if assertions is not None:
|
2316
3677
|
pulumi.set(__self__, "assertions", assertions)
|
2317
|
-
if
|
2318
|
-
pulumi.set(__self__, "
|
3678
|
+
if follow_redirects is not None:
|
3679
|
+
pulumi.set(__self__, "follow_redirects", follow_redirects)
|
2319
3680
|
if ip_family is not None:
|
2320
3681
|
pulumi.set(__self__, "ip_family", ip_family)
|
3682
|
+
if skip_ssl is not None:
|
3683
|
+
pulumi.set(__self__, "skip_ssl", skip_ssl)
|
2321
3684
|
|
2322
3685
|
@property
|
2323
3686
|
@pulumi.getter
|
2324
|
-
def
|
2325
|
-
"""
|
2326
|
-
The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
2327
|
-
"""
|
2328
|
-
return pulumi.get(self, "hostname")
|
2329
|
-
|
2330
|
-
@property
|
2331
|
-
@pulumi.getter
|
2332
|
-
def port(self) -> int:
|
3687
|
+
def url(self) -> str:
|
2333
3688
|
"""
|
2334
|
-
The
|
3689
|
+
The URL to monitor. Must be a valid HTTP or HTTPS URL.
|
2335
3690
|
"""
|
2336
|
-
return pulumi.get(self, "
|
3691
|
+
return pulumi.get(self, "url")
|
2337
3692
|
|
2338
3693
|
@property
|
2339
3694
|
@pulumi.getter
|
2340
|
-
def assertions(self) -> Optional[Sequence['outputs.
|
3695
|
+
def assertions(self) -> Optional[Sequence['outputs.UrlMonitorRequestAssertion']]:
|
2341
3696
|
"""
|
2342
|
-
|
3697
|
+
Assertions to validate the HTTP response. URL monitors only support status code assertions.
|
2343
3698
|
"""
|
2344
3699
|
return pulumi.get(self, "assertions")
|
2345
3700
|
|
2346
3701
|
@property
|
2347
|
-
@pulumi.getter
|
2348
|
-
def
|
3702
|
+
@pulumi.getter(name="followRedirects")
|
3703
|
+
def follow_redirects(self) -> Optional[bool]:
|
2349
3704
|
"""
|
2350
|
-
|
3705
|
+
Whether to follow HTTP redirects automatically. (Default `true`).
|
2351
3706
|
"""
|
2352
|
-
return pulumi.get(self, "
|
3707
|
+
return pulumi.get(self, "follow_redirects")
|
2353
3708
|
|
2354
3709
|
@property
|
2355
3710
|
@pulumi.getter(name="ipFamily")
|
2356
3711
|
def ip_family(self) -> Optional[str]:
|
2357
3712
|
"""
|
2358
|
-
|
3713
|
+
IP family version to use for the connection. The value can be either `IPv4` or `IPv6`. (Default `IPv4`).
|
2359
3714
|
"""
|
2360
3715
|
return pulumi.get(self, "ip_family")
|
2361
3716
|
|
3717
|
+
@property
|
3718
|
+
@pulumi.getter(name="skipSsl")
|
3719
|
+
def skip_ssl(self) -> Optional[bool]:
|
3720
|
+
"""
|
3721
|
+
Whether to skip SSL certificate verification. (Default `false`).
|
3722
|
+
"""
|
3723
|
+
return pulumi.get(self, "skip_ssl")
|
3724
|
+
|
2362
3725
|
|
2363
3726
|
@pulumi.output_type
|
2364
|
-
class
|
3727
|
+
class UrlMonitorRequestAssertion(dict):
|
2365
3728
|
def __init__(__self__, *,
|
2366
3729
|
comparison: str,
|
2367
3730
|
source: str,
|
2368
|
-
|
2369
|
-
|
3731
|
+
target: str,
|
3732
|
+
property: Optional[str] = None):
|
2370
3733
|
"""
|
2371
|
-
:param str comparison: The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `
|
2372
|
-
:param str source: The source of the asserted value.
|
3734
|
+
:param str comparison: The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `GREATER_THAN` and `LESS_THAN`.
|
3735
|
+
:param str source: The source of the asserted value. The only allowed value is `STATUS_CODE`.
|
3736
|
+
:param str target: The target value. Typically `200` when the source is `STATUS_CODE`.
|
2373
3737
|
"""
|
2374
3738
|
pulumi.set(__self__, "comparison", comparison)
|
2375
3739
|
pulumi.set(__self__, "source", source)
|
3740
|
+
pulumi.set(__self__, "target", target)
|
2376
3741
|
if property is not None:
|
2377
3742
|
pulumi.set(__self__, "property", property)
|
2378
|
-
if target is not None:
|
2379
|
-
pulumi.set(__self__, "target", target)
|
2380
3743
|
|
2381
3744
|
@property
|
2382
3745
|
@pulumi.getter
|
2383
3746
|
def comparison(self) -> str:
|
2384
3747
|
"""
|
2385
|
-
The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `
|
3748
|
+
The type of comparison to be executed between expected and actual value of the assertion. Possible values are `EQUALS`, `NOT_EQUALS`, `GREATER_THAN` and `LESS_THAN`.
|
2386
3749
|
"""
|
2387
3750
|
return pulumi.get(self, "comparison")
|
2388
3751
|
|
@@ -2390,13 +3753,16 @@ class TcpCheckRequestAssertion(dict):
|
|
2390
3753
|
@pulumi.getter
|
2391
3754
|
def source(self) -> str:
|
2392
3755
|
"""
|
2393
|
-
The source of the asserted value.
|
3756
|
+
The source of the asserted value. The only allowed value is `STATUS_CODE`.
|
2394
3757
|
"""
|
2395
3758
|
return pulumi.get(self, "source")
|
2396
3759
|
|
2397
3760
|
@property
|
2398
3761
|
@pulumi.getter
|
2399
|
-
def target(self) ->
|
3762
|
+
def target(self) -> str:
|
3763
|
+
"""
|
3764
|
+
The target value. Typically `200` when the source is `STATUS_CODE`.
|
3765
|
+
"""
|
2400
3766
|
return pulumi.get(self, "target")
|
2401
3767
|
|
2402
3768
|
@property
|
@@ -2406,7 +3772,7 @@ class TcpCheckRequestAssertion(dict):
|
|
2406
3772
|
|
2407
3773
|
|
2408
3774
|
@pulumi.output_type
|
2409
|
-
class
|
3775
|
+
class UrlMonitorRetryStrategy(dict):
|
2410
3776
|
@staticmethod
|
2411
3777
|
def __key_warning(key: str):
|
2412
3778
|
suggest = None
|
@@ -2420,14 +3786,14 @@ class TcpCheckRetryStrategy(dict):
|
|
2420
3786
|
suggest = "same_region"
|
2421
3787
|
|
2422
3788
|
if suggest:
|
2423
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
3789
|
+
pulumi.log.warn(f"Key '{key}' not found in UrlMonitorRetryStrategy. Access the value via the '{suggest}' property getter instead.")
|
2424
3790
|
|
2425
3791
|
def __getitem__(self, key: str) -> Any:
|
2426
|
-
|
3792
|
+
UrlMonitorRetryStrategy.__key_warning(key)
|
2427
3793
|
return super().__getitem__(key)
|
2428
3794
|
|
2429
3795
|
def get(self, key: str, default = None) -> Any:
|
2430
|
-
|
3796
|
+
UrlMonitorRetryStrategy.__key_warning(key)
|
2431
3797
|
return super().get(key, default)
|
2432
3798
|
|
2433
3799
|
def __init__(__self__, *,
|
@@ -2437,11 +3803,11 @@ class TcpCheckRetryStrategy(dict):
|
|
2437
3803
|
max_retries: Optional[int] = None,
|
2438
3804
|
same_region: Optional[bool] = None):
|
2439
3805
|
"""
|
2440
|
-
:param str type: Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`,
|
2441
|
-
:param int base_backoff_seconds: The number of seconds to wait before the first retry attempt.
|
2442
|
-
:param int max_duration_seconds: The total amount of time to continue retrying the
|
2443
|
-
:param int max_retries: The maximum number of times to retry the
|
2444
|
-
:param bool same_region: Whether retries should be run in the same region as the initial
|
3806
|
+
:param str type: Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, and `EXPONENTIAL`.
|
3807
|
+
:param int base_backoff_seconds: The number of seconds to wait before the first retry attempt. (Default `60`).
|
3808
|
+
:param int max_duration_seconds: The total amount of time to continue retrying the monitor (maximum 600 seconds). (Default `600`).
|
3809
|
+
:param int max_retries: The maximum number of times to retry the monitor. Value must be between `1` and `10`. (Default `2`).
|
3810
|
+
:param bool same_region: Whether retries should be run in the same region as the initial monitor run. (Default `true`).
|
2445
3811
|
"""
|
2446
3812
|
pulumi.set(__self__, "type", type)
|
2447
3813
|
if base_backoff_seconds is not None:
|
@@ -2457,7 +3823,7 @@ class TcpCheckRetryStrategy(dict):
|
|
2457
3823
|
@pulumi.getter
|
2458
3824
|
def type(self) -> str:
|
2459
3825
|
"""
|
2460
|
-
Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`,
|
3826
|
+
Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, and `EXPONENTIAL`.
|
2461
3827
|
"""
|
2462
3828
|
return pulumi.get(self, "type")
|
2463
3829
|
|
@@ -2465,7 +3831,7 @@ class TcpCheckRetryStrategy(dict):
|
|
2465
3831
|
@pulumi.getter(name="baseBackoffSeconds")
|
2466
3832
|
def base_backoff_seconds(self) -> Optional[int]:
|
2467
3833
|
"""
|
2468
|
-
The number of seconds to wait before the first retry attempt.
|
3834
|
+
The number of seconds to wait before the first retry attempt. (Default `60`).
|
2469
3835
|
"""
|
2470
3836
|
return pulumi.get(self, "base_backoff_seconds")
|
2471
3837
|
|
@@ -2473,7 +3839,7 @@ class TcpCheckRetryStrategy(dict):
|
|
2473
3839
|
@pulumi.getter(name="maxDurationSeconds")
|
2474
3840
|
def max_duration_seconds(self) -> Optional[int]:
|
2475
3841
|
"""
|
2476
|
-
The total amount of time to continue retrying the
|
3842
|
+
The total amount of time to continue retrying the monitor (maximum 600 seconds). (Default `600`).
|
2477
3843
|
"""
|
2478
3844
|
return pulumi.get(self, "max_duration_seconds")
|
2479
3845
|
|
@@ -2481,7 +3847,7 @@ class TcpCheckRetryStrategy(dict):
|
|
2481
3847
|
@pulumi.getter(name="maxRetries")
|
2482
3848
|
def max_retries(self) -> Optional[int]:
|
2483
3849
|
"""
|
2484
|
-
The maximum number of times to retry the
|
3850
|
+
The maximum number of times to retry the monitor. Value must be between `1` and `10`. (Default `2`).
|
2485
3851
|
"""
|
2486
3852
|
return pulumi.get(self, "max_retries")
|
2487
3853
|
|
@@ -2489,7 +3855,7 @@ class TcpCheckRetryStrategy(dict):
|
|
2489
3855
|
@pulumi.getter(name="sameRegion")
|
2490
3856
|
def same_region(self) -> Optional[bool]:
|
2491
3857
|
"""
|
2492
|
-
Whether retries should be run in the same region as the initial
|
3858
|
+
Whether retries should be run in the same region as the initial monitor run. (Default `true`).
|
2493
3859
|
"""
|
2494
3860
|
return pulumi.get(self, "same_region")
|
2495
3861
|
|