@checkly/pulumi 2.0.0-alpha.1738251430 → 2.0.0-alpha.1738673134
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.
- package/index.d.ts +3 -0
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/tcpCheck.d.ts +342 -0
- package/tcpCheck.js +169 -0
- package/tcpCheck.js.map +1 -0
- package/types/input.d.ts +102 -0
- package/types/output.d.ts +102 -0
package/index.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export declare const Provider: typeof import("./provider").Provider;
|
|
|
31
31
|
export { SnippetArgs, SnippetState } from "./snippet";
|
|
32
32
|
export type Snippet = import("./snippet").Snippet;
|
|
33
33
|
export declare const Snippet: typeof import("./snippet").Snippet;
|
|
34
|
+
export { TcpCheckArgs, TcpCheckState } from "./tcpCheck";
|
|
35
|
+
export type TcpCheck = import("./tcpCheck").TcpCheck;
|
|
36
|
+
export declare const TcpCheck: typeof import("./tcpCheck").TcpCheck;
|
|
34
37
|
export { TriggerCheckArgs, TriggerCheckState } from "./triggerCheck";
|
|
35
38
|
export type TriggerCheck = import("./triggerCheck").TriggerCheck;
|
|
36
39
|
export declare const TriggerCheck: typeof import("./triggerCheck").TriggerCheck;
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.types = exports.config = exports.TriggerCheckGroup = exports.TriggerCheck = exports.Snippet = exports.Provider = exports.PrivateLocation = exports.MaintenanceWindow = exports.HeartbeatCheck = exports.getStaticIpsOutput = exports.getStaticIps = exports.EnvironmentVariable = exports.Dashboard = exports.CheckGroup = exports.Check = exports.AlertChannel = void 0;
|
|
5
|
+
exports.types = exports.config = exports.TriggerCheckGroup = exports.TriggerCheck = exports.TcpCheck = exports.Snippet = exports.Provider = exports.PrivateLocation = exports.MaintenanceWindow = exports.HeartbeatCheck = exports.getStaticIpsOutput = exports.getStaticIps = exports.EnvironmentVariable = exports.Dashboard = exports.CheckGroup = exports.Check = exports.AlertChannel = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
exports.AlertChannel = null;
|
|
@@ -28,6 +28,8 @@ exports.Provider = null;
|
|
|
28
28
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
29
29
|
exports.Snippet = null;
|
|
30
30
|
utilities.lazyLoad(exports, ["Snippet"], () => require("./snippet"));
|
|
31
|
+
exports.TcpCheck = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["TcpCheck"], () => require("./tcpCheck"));
|
|
31
33
|
exports.TriggerCheck = null;
|
|
32
34
|
utilities.lazyLoad(exports, ["TriggerCheck"], () => require("./triggerCheck"));
|
|
33
35
|
exports.TriggerCheckGroup = null;
|
|
@@ -59,6 +61,8 @@ const _module = {
|
|
|
59
61
|
return new exports.PrivateLocation(name, undefined, { urn });
|
|
60
62
|
case "checkly:index/snippet:Snippet":
|
|
61
63
|
return new exports.Snippet(name, undefined, { urn });
|
|
64
|
+
case "checkly:index/tcpCheck:TcpCheck":
|
|
65
|
+
return new exports.TcpCheck(name, undefined, { urn });
|
|
62
66
|
case "checkly:index/triggerCheck:TriggerCheck":
|
|
63
67
|
return new exports.TriggerCheck(name, undefined, { urn });
|
|
64
68
|
case "checkly:index/triggerCheckGroup:TriggerCheckGroup":
|
|
@@ -77,6 +81,7 @@ pulumi.runtime.registerResourceModule("checkly", "index/heartbeatCheck", _module
|
|
|
77
81
|
pulumi.runtime.registerResourceModule("checkly", "index/maintenanceWindow", _module);
|
|
78
82
|
pulumi.runtime.registerResourceModule("checkly", "index/privateLocation", _module);
|
|
79
83
|
pulumi.runtime.registerResourceModule("checkly", "index/snippet", _module);
|
|
84
|
+
pulumi.runtime.registerResourceModule("checkly", "index/tcpCheck", _module);
|
|
80
85
|
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheck", _module);
|
|
81
86
|
pulumi.runtime.registerResourceModule("checkly", "index/triggerCheckGroup", _module);
|
|
82
87
|
pulumi.runtime.registerResourcePackage("checkly", {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIlE,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAI9D,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI5D,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAGhF,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAA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|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1738673134",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Checkly monitoring resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "checkly",
|
|
26
|
-
"version": "2.0.0-alpha.
|
|
26
|
+
"version": "2.0.0-alpha.1738673134",
|
|
27
27
|
"server": "github://api.github.com/checkly"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/tcpCheck.d.ts
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* TCP checks allow you to monitor remote endpoints at a lower level.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as checkly from "@checkly/pulumi";
|
|
12
|
+
*
|
|
13
|
+
* // Basic TCP Check
|
|
14
|
+
* const example_tcp_check = new checkly.TcpCheck("example-tcp-check", {
|
|
15
|
+
* name: "Example TCP check",
|
|
16
|
+
* activated: true,
|
|
17
|
+
* shouldFail: false,
|
|
18
|
+
* frequency: 1,
|
|
19
|
+
* useGlobalAlertSettings: true,
|
|
20
|
+
* locations: ["us-west-1"],
|
|
21
|
+
* request: {
|
|
22
|
+
* hostname: "api.checklyhq.com",
|
|
23
|
+
* port: 80,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* // A more complex example using assertions and setting alerts
|
|
27
|
+
* const example_tcp_check_2 = new checkly.TcpCheck("example-tcp-check-2", {
|
|
28
|
+
* name: "Example TCP check 2",
|
|
29
|
+
* activated: true,
|
|
30
|
+
* shouldFail: true,
|
|
31
|
+
* frequency: 1,
|
|
32
|
+
* degradedResponseTime: 5000,
|
|
33
|
+
* maxResponseTime: 10000,
|
|
34
|
+
* locations: [
|
|
35
|
+
* "us-west-1",
|
|
36
|
+
* "ap-northeast-1",
|
|
37
|
+
* "ap-south-1",
|
|
38
|
+
* ],
|
|
39
|
+
* alertSettings: {
|
|
40
|
+
* escalationType: "RUN_BASED",
|
|
41
|
+
* runBasedEscalations: [{
|
|
42
|
+
* failedRunThreshold: 1,
|
|
43
|
+
* }],
|
|
44
|
+
* reminders: [{
|
|
45
|
+
* amount: 1,
|
|
46
|
+
* }],
|
|
47
|
+
* },
|
|
48
|
+
* retryStrategy: {
|
|
49
|
+
* type: "FIXED",
|
|
50
|
+
* baseBackoffSeconds: 60,
|
|
51
|
+
* maxDurationSeconds: 600,
|
|
52
|
+
* maxRetries: 3,
|
|
53
|
+
* sameRegion: false,
|
|
54
|
+
* },
|
|
55
|
+
* request: {
|
|
56
|
+
* hostname: "api.checklyhq.com",
|
|
57
|
+
* port: 80,
|
|
58
|
+
* data: "hello",
|
|
59
|
+
* assertions: [
|
|
60
|
+
* {
|
|
61
|
+
* source: "RESPONSE_DATA",
|
|
62
|
+
* property: "",
|
|
63
|
+
* comparison: "CONTAINS",
|
|
64
|
+
* target: "welcome",
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* source: "RESPONSE_TIME",
|
|
68
|
+
* property: "",
|
|
69
|
+
* comparison: "LESS_THAN",
|
|
70
|
+
* target: "2000",
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* },
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class TcpCheck extends pulumi.CustomResource {
|
|
78
|
+
/**
|
|
79
|
+
* Get an existing TcpCheck resource's state with the given name, ID, and optional extra
|
|
80
|
+
* properties used to qualify the lookup.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resulting resource.
|
|
83
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
+
* @param state Any extra arguments used during the lookup.
|
|
85
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
+
*/
|
|
87
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TcpCheckState, opts?: pulumi.CustomResourceOptions): TcpCheck;
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if the given object is an instance of TcpCheck. This is designed to work even
|
|
90
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
91
|
+
*/
|
|
92
|
+
static isInstance(obj: any): obj is TcpCheck;
|
|
93
|
+
/**
|
|
94
|
+
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
95
|
+
*/
|
|
96
|
+
readonly activated: pulumi.Output<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
|
|
99
|
+
*/
|
|
100
|
+
readonly alertChannelSubscriptions: pulumi.Output<outputs.TcpCheckAlertChannelSubscription[] | undefined>;
|
|
101
|
+
readonly alertSettings: pulumi.Output<outputs.TcpCheckAlertSettings>;
|
|
102
|
+
/**
|
|
103
|
+
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
|
|
104
|
+
*/
|
|
105
|
+
readonly degradedResponseTime: pulumi.Output<number | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
|
108
|
+
*/
|
|
109
|
+
readonly frequency: pulumi.Output<number>;
|
|
110
|
+
/**
|
|
111
|
+
* To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
|
|
112
|
+
*/
|
|
113
|
+
readonly frequencyOffset: pulumi.Output<number | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* The id of the check group this check is part of.
|
|
116
|
+
*/
|
|
117
|
+
readonly groupId: pulumi.Output<number | undefined>;
|
|
118
|
+
/**
|
|
119
|
+
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
|
|
120
|
+
*/
|
|
121
|
+
readonly groupOrder: pulumi.Output<number | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
124
|
+
*/
|
|
125
|
+
readonly locations: pulumi.Output<string[] | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
|
|
128
|
+
*/
|
|
129
|
+
readonly maxResponseTime: pulumi.Output<number | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
132
|
+
*/
|
|
133
|
+
readonly muted: pulumi.Output<boolean | undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* The name of the check.
|
|
136
|
+
*/
|
|
137
|
+
readonly name: pulumi.Output<string>;
|
|
138
|
+
/**
|
|
139
|
+
* An array of one or more private locations slugs.
|
|
140
|
+
*/
|
|
141
|
+
readonly privateLocations: pulumi.Output<string[] | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* The parameters for the TCP connection.
|
|
144
|
+
*/
|
|
145
|
+
readonly request: pulumi.Output<outputs.TcpCheckRequest>;
|
|
146
|
+
/**
|
|
147
|
+
* A strategy for retrying failed check runs.
|
|
148
|
+
*/
|
|
149
|
+
readonly retryStrategy: pulumi.Output<outputs.TcpCheckRetryStrategy>;
|
|
150
|
+
/**
|
|
151
|
+
* Determines if the check should run in all selected locations in parallel or round-robin.
|
|
152
|
+
*/
|
|
153
|
+
readonly runParallel: pulumi.Output<boolean | undefined>;
|
|
154
|
+
/**
|
|
155
|
+
* The ID of the runtime to use for this check.
|
|
156
|
+
*/
|
|
157
|
+
readonly runtimeId: pulumi.Output<string | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Allows to invert the behaviour of when a check is considered to fail.
|
|
160
|
+
*/
|
|
161
|
+
readonly shouldFail: pulumi.Output<boolean | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* A list of tags for organizing and filtering checks.
|
|
164
|
+
*/
|
|
165
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
168
|
+
*/
|
|
169
|
+
readonly useGlobalAlertSettings: pulumi.Output<boolean | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* Create a TcpCheck resource with the given unique name, arguments, and options.
|
|
172
|
+
*
|
|
173
|
+
* @param name The _unique_ name of the resource.
|
|
174
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
175
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
176
|
+
*/
|
|
177
|
+
constructor(name: string, args: TcpCheckArgs, opts?: pulumi.CustomResourceOptions);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Input properties used for looking up and filtering TcpCheck resources.
|
|
181
|
+
*/
|
|
182
|
+
export interface TcpCheckState {
|
|
183
|
+
/**
|
|
184
|
+
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
185
|
+
*/
|
|
186
|
+
activated?: pulumi.Input<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
|
|
189
|
+
*/
|
|
190
|
+
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertChannelSubscription>[]>;
|
|
191
|
+
alertSettings?: pulumi.Input<inputs.TcpCheckAlertSettings>;
|
|
192
|
+
/**
|
|
193
|
+
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
|
|
194
|
+
*/
|
|
195
|
+
degradedResponseTime?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
|
198
|
+
*/
|
|
199
|
+
frequency?: pulumi.Input<number>;
|
|
200
|
+
/**
|
|
201
|
+
* To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
|
|
202
|
+
*/
|
|
203
|
+
frequencyOffset?: pulumi.Input<number>;
|
|
204
|
+
/**
|
|
205
|
+
* The id of the check group this check is part of.
|
|
206
|
+
*/
|
|
207
|
+
groupId?: pulumi.Input<number>;
|
|
208
|
+
/**
|
|
209
|
+
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
|
|
210
|
+
*/
|
|
211
|
+
groupOrder?: pulumi.Input<number>;
|
|
212
|
+
/**
|
|
213
|
+
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
214
|
+
*/
|
|
215
|
+
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
216
|
+
/**
|
|
217
|
+
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
|
|
218
|
+
*/
|
|
219
|
+
maxResponseTime?: pulumi.Input<number>;
|
|
220
|
+
/**
|
|
221
|
+
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
222
|
+
*/
|
|
223
|
+
muted?: pulumi.Input<boolean>;
|
|
224
|
+
/**
|
|
225
|
+
* The name of the check.
|
|
226
|
+
*/
|
|
227
|
+
name?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* An array of one or more private locations slugs.
|
|
230
|
+
*/
|
|
231
|
+
privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
232
|
+
/**
|
|
233
|
+
* The parameters for the TCP connection.
|
|
234
|
+
*/
|
|
235
|
+
request?: pulumi.Input<inputs.TcpCheckRequest>;
|
|
236
|
+
/**
|
|
237
|
+
* A strategy for retrying failed check runs.
|
|
238
|
+
*/
|
|
239
|
+
retryStrategy?: pulumi.Input<inputs.TcpCheckRetryStrategy>;
|
|
240
|
+
/**
|
|
241
|
+
* Determines if the check should run in all selected locations in parallel or round-robin.
|
|
242
|
+
*/
|
|
243
|
+
runParallel?: pulumi.Input<boolean>;
|
|
244
|
+
/**
|
|
245
|
+
* The ID of the runtime to use for this check.
|
|
246
|
+
*/
|
|
247
|
+
runtimeId?: pulumi.Input<string>;
|
|
248
|
+
/**
|
|
249
|
+
* Allows to invert the behaviour of when a check is considered to fail.
|
|
250
|
+
*/
|
|
251
|
+
shouldFail?: pulumi.Input<boolean>;
|
|
252
|
+
/**
|
|
253
|
+
* A list of tags for organizing and filtering checks.
|
|
254
|
+
*/
|
|
255
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
256
|
+
/**
|
|
257
|
+
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
258
|
+
*/
|
|
259
|
+
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* The set of arguments for constructing a TcpCheck resource.
|
|
263
|
+
*/
|
|
264
|
+
export interface TcpCheckArgs {
|
|
265
|
+
/**
|
|
266
|
+
* Determines if the check is running or not. Possible values `true`, and `false`.
|
|
267
|
+
*/
|
|
268
|
+
activated: pulumi.Input<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* An array of channel IDs and whether they're activated or not. If you don't set at least one alert subscription for your check, we won't be able to alert you in case something goes wrong with it.
|
|
271
|
+
*/
|
|
272
|
+
alertChannelSubscriptions?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertChannelSubscription>[]>;
|
|
273
|
+
alertSettings?: pulumi.Input<inputs.TcpCheckAlertSettings>;
|
|
274
|
+
/**
|
|
275
|
+
* The response time in milliseconds starting from which a check should be considered degraded. Possible values are between 0 and 30000. (Default `15000`).
|
|
276
|
+
*/
|
|
277
|
+
degradedResponseTime?: pulumi.Input<number>;
|
|
278
|
+
/**
|
|
279
|
+
* The frequency in minutes to run the check. Possible values are `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60`, `120`, `180`, `360`, `720`, and `1440`.
|
|
280
|
+
*/
|
|
281
|
+
frequency: pulumi.Input<number>;
|
|
282
|
+
/**
|
|
283
|
+
* To create a high frequency check, the property `frequency` must be `0` and `frequencyOffset` can be `10`, `20` or `30`.
|
|
284
|
+
*/
|
|
285
|
+
frequencyOffset?: pulumi.Input<number>;
|
|
286
|
+
/**
|
|
287
|
+
* The id of the check group this check is part of.
|
|
288
|
+
*/
|
|
289
|
+
groupId?: pulumi.Input<number>;
|
|
290
|
+
/**
|
|
291
|
+
* The position of this check in a check group. It determines in what order checks are run when a group is triggered from the API or from CI/CD.
|
|
292
|
+
*/
|
|
293
|
+
groupOrder?: pulumi.Input<number>;
|
|
294
|
+
/**
|
|
295
|
+
* An array of one or more data center locations where to run the this check. (Default ["us-east-1"])
|
|
296
|
+
*/
|
|
297
|
+
locations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
298
|
+
/**
|
|
299
|
+
* The response time in milliseconds starting from which a check should be considered failing. Possible values are between 0 and 30000. (Default `30000`).
|
|
300
|
+
*/
|
|
301
|
+
maxResponseTime?: pulumi.Input<number>;
|
|
302
|
+
/**
|
|
303
|
+
* Determines if any notifications will be sent out when a check fails/degrades/recovers.
|
|
304
|
+
*/
|
|
305
|
+
muted?: pulumi.Input<boolean>;
|
|
306
|
+
/**
|
|
307
|
+
* The name of the check.
|
|
308
|
+
*/
|
|
309
|
+
name?: pulumi.Input<string>;
|
|
310
|
+
/**
|
|
311
|
+
* An array of one or more private locations slugs.
|
|
312
|
+
*/
|
|
313
|
+
privateLocations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
314
|
+
/**
|
|
315
|
+
* The parameters for the TCP connection.
|
|
316
|
+
*/
|
|
317
|
+
request: pulumi.Input<inputs.TcpCheckRequest>;
|
|
318
|
+
/**
|
|
319
|
+
* A strategy for retrying failed check runs.
|
|
320
|
+
*/
|
|
321
|
+
retryStrategy?: pulumi.Input<inputs.TcpCheckRetryStrategy>;
|
|
322
|
+
/**
|
|
323
|
+
* Determines if the check should run in all selected locations in parallel or round-robin.
|
|
324
|
+
*/
|
|
325
|
+
runParallel?: pulumi.Input<boolean>;
|
|
326
|
+
/**
|
|
327
|
+
* The ID of the runtime to use for this check.
|
|
328
|
+
*/
|
|
329
|
+
runtimeId?: pulumi.Input<string>;
|
|
330
|
+
/**
|
|
331
|
+
* Allows to invert the behaviour of when a check is considered to fail.
|
|
332
|
+
*/
|
|
333
|
+
shouldFail?: pulumi.Input<boolean>;
|
|
334
|
+
/**
|
|
335
|
+
* A list of tags for organizing and filtering checks.
|
|
336
|
+
*/
|
|
337
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
338
|
+
/**
|
|
339
|
+
* When true, the account level alert settings will be used, not the alert setting defined on this check.
|
|
340
|
+
*/
|
|
341
|
+
useGlobalAlertSettings?: pulumi.Input<boolean>;
|
|
342
|
+
}
|
package/tcpCheck.js
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TcpCheck = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* TCP checks allow you to monitor remote endpoints at a lower level.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as checkly from "@checkly/pulumi";
|
|
16
|
+
*
|
|
17
|
+
* // Basic TCP Check
|
|
18
|
+
* const example_tcp_check = new checkly.TcpCheck("example-tcp-check", {
|
|
19
|
+
* name: "Example TCP check",
|
|
20
|
+
* activated: true,
|
|
21
|
+
* shouldFail: false,
|
|
22
|
+
* frequency: 1,
|
|
23
|
+
* useGlobalAlertSettings: true,
|
|
24
|
+
* locations: ["us-west-1"],
|
|
25
|
+
* request: {
|
|
26
|
+
* hostname: "api.checklyhq.com",
|
|
27
|
+
* port: 80,
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* // A more complex example using assertions and setting alerts
|
|
31
|
+
* const example_tcp_check_2 = new checkly.TcpCheck("example-tcp-check-2", {
|
|
32
|
+
* name: "Example TCP check 2",
|
|
33
|
+
* activated: true,
|
|
34
|
+
* shouldFail: true,
|
|
35
|
+
* frequency: 1,
|
|
36
|
+
* degradedResponseTime: 5000,
|
|
37
|
+
* maxResponseTime: 10000,
|
|
38
|
+
* locations: [
|
|
39
|
+
* "us-west-1",
|
|
40
|
+
* "ap-northeast-1",
|
|
41
|
+
* "ap-south-1",
|
|
42
|
+
* ],
|
|
43
|
+
* alertSettings: {
|
|
44
|
+
* escalationType: "RUN_BASED",
|
|
45
|
+
* runBasedEscalations: [{
|
|
46
|
+
* failedRunThreshold: 1,
|
|
47
|
+
* }],
|
|
48
|
+
* reminders: [{
|
|
49
|
+
* amount: 1,
|
|
50
|
+
* }],
|
|
51
|
+
* },
|
|
52
|
+
* retryStrategy: {
|
|
53
|
+
* type: "FIXED",
|
|
54
|
+
* baseBackoffSeconds: 60,
|
|
55
|
+
* maxDurationSeconds: 600,
|
|
56
|
+
* maxRetries: 3,
|
|
57
|
+
* sameRegion: false,
|
|
58
|
+
* },
|
|
59
|
+
* request: {
|
|
60
|
+
* hostname: "api.checklyhq.com",
|
|
61
|
+
* port: 80,
|
|
62
|
+
* data: "hello",
|
|
63
|
+
* assertions: [
|
|
64
|
+
* {
|
|
65
|
+
* source: "RESPONSE_DATA",
|
|
66
|
+
* property: "",
|
|
67
|
+
* comparison: "CONTAINS",
|
|
68
|
+
* target: "welcome",
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* source: "RESPONSE_TIME",
|
|
72
|
+
* property: "",
|
|
73
|
+
* comparison: "LESS_THAN",
|
|
74
|
+
* target: "2000",
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
class TcpCheck extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing TcpCheck resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new TcpCheck(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns true if the given object is an instance of TcpCheck. This is designed to work even
|
|
96
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
97
|
+
*/
|
|
98
|
+
static isInstance(obj) {
|
|
99
|
+
if (obj === undefined || obj === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
return obj['__pulumiType'] === TcpCheck.__pulumiType;
|
|
103
|
+
}
|
|
104
|
+
constructor(name, argsOrState, opts) {
|
|
105
|
+
let resourceInputs = {};
|
|
106
|
+
opts = opts || {};
|
|
107
|
+
if (opts.id) {
|
|
108
|
+
const state = argsOrState;
|
|
109
|
+
resourceInputs["activated"] = state ? state.activated : undefined;
|
|
110
|
+
resourceInputs["alertChannelSubscriptions"] = state ? state.alertChannelSubscriptions : undefined;
|
|
111
|
+
resourceInputs["alertSettings"] = state ? state.alertSettings : undefined;
|
|
112
|
+
resourceInputs["degradedResponseTime"] = state ? state.degradedResponseTime : undefined;
|
|
113
|
+
resourceInputs["frequency"] = state ? state.frequency : undefined;
|
|
114
|
+
resourceInputs["frequencyOffset"] = state ? state.frequencyOffset : undefined;
|
|
115
|
+
resourceInputs["groupId"] = state ? state.groupId : undefined;
|
|
116
|
+
resourceInputs["groupOrder"] = state ? state.groupOrder : undefined;
|
|
117
|
+
resourceInputs["locations"] = state ? state.locations : undefined;
|
|
118
|
+
resourceInputs["maxResponseTime"] = state ? state.maxResponseTime : undefined;
|
|
119
|
+
resourceInputs["muted"] = state ? state.muted : undefined;
|
|
120
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
121
|
+
resourceInputs["privateLocations"] = state ? state.privateLocations : undefined;
|
|
122
|
+
resourceInputs["request"] = state ? state.request : undefined;
|
|
123
|
+
resourceInputs["retryStrategy"] = state ? state.retryStrategy : undefined;
|
|
124
|
+
resourceInputs["runParallel"] = state ? state.runParallel : undefined;
|
|
125
|
+
resourceInputs["runtimeId"] = state ? state.runtimeId : undefined;
|
|
126
|
+
resourceInputs["shouldFail"] = state ? state.shouldFail : undefined;
|
|
127
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
128
|
+
resourceInputs["useGlobalAlertSettings"] = state ? state.useGlobalAlertSettings : undefined;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
const args = argsOrState;
|
|
132
|
+
if ((!args || args.activated === undefined) && !opts.urn) {
|
|
133
|
+
throw new Error("Missing required property 'activated'");
|
|
134
|
+
}
|
|
135
|
+
if ((!args || args.frequency === undefined) && !opts.urn) {
|
|
136
|
+
throw new Error("Missing required property 'frequency'");
|
|
137
|
+
}
|
|
138
|
+
if ((!args || args.request === undefined) && !opts.urn) {
|
|
139
|
+
throw new Error("Missing required property 'request'");
|
|
140
|
+
}
|
|
141
|
+
resourceInputs["activated"] = args ? args.activated : undefined;
|
|
142
|
+
resourceInputs["alertChannelSubscriptions"] = args ? args.alertChannelSubscriptions : undefined;
|
|
143
|
+
resourceInputs["alertSettings"] = args ? args.alertSettings : undefined;
|
|
144
|
+
resourceInputs["degradedResponseTime"] = args ? args.degradedResponseTime : undefined;
|
|
145
|
+
resourceInputs["frequency"] = args ? args.frequency : undefined;
|
|
146
|
+
resourceInputs["frequencyOffset"] = args ? args.frequencyOffset : undefined;
|
|
147
|
+
resourceInputs["groupId"] = args ? args.groupId : undefined;
|
|
148
|
+
resourceInputs["groupOrder"] = args ? args.groupOrder : undefined;
|
|
149
|
+
resourceInputs["locations"] = args ? args.locations : undefined;
|
|
150
|
+
resourceInputs["maxResponseTime"] = args ? args.maxResponseTime : undefined;
|
|
151
|
+
resourceInputs["muted"] = args ? args.muted : undefined;
|
|
152
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
153
|
+
resourceInputs["privateLocations"] = args ? args.privateLocations : undefined;
|
|
154
|
+
resourceInputs["request"] = args ? args.request : undefined;
|
|
155
|
+
resourceInputs["retryStrategy"] = args ? args.retryStrategy : undefined;
|
|
156
|
+
resourceInputs["runParallel"] = args ? args.runParallel : undefined;
|
|
157
|
+
resourceInputs["runtimeId"] = args ? args.runtimeId : undefined;
|
|
158
|
+
resourceInputs["shouldFail"] = args ? args.shouldFail : undefined;
|
|
159
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
160
|
+
resourceInputs["useGlobalAlertSettings"] = args ? args.useGlobalAlertSettings : undefined;
|
|
161
|
+
}
|
|
162
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
163
|
+
super(TcpCheck.__pulumiType, name, resourceInputs, opts);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.TcpCheck = TcpCheck;
|
|
167
|
+
/** @internal */
|
|
168
|
+
TcpCheck.__pulumiType = 'checkly:index/tcpCheck:TcpCheck';
|
|
169
|
+
//# sourceMappingURL=tcpCheck.js.map
|
package/tcpCheck.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tcpCheck.js","sourceRoot":"","sources":["../tcpCheck.ts"],"names":[],"mappings":";AAAA,wFAAwF;AAC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
|
+
export interface TcpCheckAlertChannelSubscription {
|
|
414
|
+
activated: pulumi.Input<boolean>;
|
|
415
|
+
channelId: pulumi.Input<number>;
|
|
416
|
+
}
|
|
417
|
+
export interface TcpCheckAlertSettings {
|
|
418
|
+
/**
|
|
419
|
+
* Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
|
420
|
+
*/
|
|
421
|
+
escalationType?: pulumi.Input<string>;
|
|
422
|
+
parallelRunFailureThresholds?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertSettingsParallelRunFailureThreshold>[]>;
|
|
423
|
+
reminders?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertSettingsReminder>[]>;
|
|
424
|
+
runBasedEscalations?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertSettingsRunBasedEscalation>[]>;
|
|
425
|
+
timeBasedEscalations?: pulumi.Input<pulumi.Input<inputs.TcpCheckAlertSettingsTimeBasedEscalation>[]>;
|
|
426
|
+
}
|
|
427
|
+
export interface TcpCheckAlertSettingsParallelRunFailureThreshold {
|
|
428
|
+
/**
|
|
429
|
+
* Applicable only for checks scheduled in parallel in multiple locations.
|
|
430
|
+
*/
|
|
431
|
+
enabled?: pulumi.Input<boolean>;
|
|
432
|
+
/**
|
|
433
|
+
* Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
|
434
|
+
*/
|
|
435
|
+
percentage?: pulumi.Input<number>;
|
|
436
|
+
}
|
|
437
|
+
export interface TcpCheckAlertSettingsReminder {
|
|
438
|
+
/**
|
|
439
|
+
* How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
|
440
|
+
*/
|
|
441
|
+
amount?: pulumi.Input<number>;
|
|
442
|
+
/**
|
|
443
|
+
* Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
|
444
|
+
*/
|
|
445
|
+
interval?: pulumi.Input<number>;
|
|
446
|
+
}
|
|
447
|
+
export interface TcpCheckAlertSettingsRunBasedEscalation {
|
|
448
|
+
/**
|
|
449
|
+
* After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
|
450
|
+
*/
|
|
451
|
+
failedRunThreshold?: pulumi.Input<number>;
|
|
452
|
+
}
|
|
453
|
+
export interface TcpCheckAlertSettingsTimeBasedEscalation {
|
|
454
|
+
/**
|
|
455
|
+
* After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
|
456
|
+
*/
|
|
457
|
+
minutesFailingThreshold?: pulumi.Input<number>;
|
|
458
|
+
}
|
|
459
|
+
export interface TcpCheckRequest {
|
|
460
|
+
/**
|
|
461
|
+
* A request can have multiple assertions.
|
|
462
|
+
*/
|
|
463
|
+
assertions?: pulumi.Input<pulumi.Input<inputs.TcpCheckRequestAssertion>[]>;
|
|
464
|
+
/**
|
|
465
|
+
* The data to send to the target host.
|
|
466
|
+
*/
|
|
467
|
+
data?: pulumi.Input<string>;
|
|
468
|
+
/**
|
|
469
|
+
* The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
|
470
|
+
*/
|
|
471
|
+
hostname: pulumi.Input<string>;
|
|
472
|
+
/**
|
|
473
|
+
* The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
|
474
|
+
*/
|
|
475
|
+
ipFamily?: pulumi.Input<string>;
|
|
476
|
+
/**
|
|
477
|
+
* The port number to connect to.
|
|
478
|
+
*/
|
|
479
|
+
port: pulumi.Input<number>;
|
|
480
|
+
}
|
|
481
|
+
export interface TcpCheckRequestAssertion {
|
|
482
|
+
/**
|
|
483
|
+
* 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`.
|
|
484
|
+
*/
|
|
485
|
+
comparison: pulumi.Input<string>;
|
|
486
|
+
property?: pulumi.Input<string>;
|
|
487
|
+
/**
|
|
488
|
+
* The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
|
489
|
+
*/
|
|
490
|
+
source: pulumi.Input<string>;
|
|
491
|
+
target?: pulumi.Input<string>;
|
|
492
|
+
}
|
|
493
|
+
export interface TcpCheckRetryStrategy {
|
|
494
|
+
/**
|
|
495
|
+
* The number of seconds to wait before the first retry attempt.
|
|
496
|
+
*/
|
|
497
|
+
baseBackoffSeconds?: pulumi.Input<number>;
|
|
498
|
+
/**
|
|
499
|
+
* The total amount of time to continue retrying the check (maximum 600 seconds).
|
|
500
|
+
*/
|
|
501
|
+
maxDurationSeconds?: pulumi.Input<number>;
|
|
502
|
+
/**
|
|
503
|
+
* The maximum number of times to retry the check. Value must be between 1 and 10.
|
|
504
|
+
*/
|
|
505
|
+
maxRetries?: pulumi.Input<number>;
|
|
506
|
+
/**
|
|
507
|
+
* Whether retries should be run in the same region as the initial check run.
|
|
508
|
+
*/
|
|
509
|
+
sameRegion?: pulumi.Input<boolean>;
|
|
510
|
+
/**
|
|
511
|
+
* Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
|
512
|
+
*/
|
|
513
|
+
type: pulumi.Input<string>;
|
|
514
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -409,3 +409,105 @@ export interface HeartbeatCheckHeartbeat {
|
|
|
409
409
|
*/
|
|
410
410
|
pingToken: string;
|
|
411
411
|
}
|
|
412
|
+
export interface TcpCheckAlertChannelSubscription {
|
|
413
|
+
activated: boolean;
|
|
414
|
+
channelId: number;
|
|
415
|
+
}
|
|
416
|
+
export interface TcpCheckAlertSettings {
|
|
417
|
+
/**
|
|
418
|
+
* Determines what type of escalation to use. Possible values are `RUN_BASED` or `TIME_BASED`.
|
|
419
|
+
*/
|
|
420
|
+
escalationType?: string;
|
|
421
|
+
parallelRunFailureThresholds: outputs.TcpCheckAlertSettingsParallelRunFailureThreshold[];
|
|
422
|
+
reminders: outputs.TcpCheckAlertSettingsReminder[];
|
|
423
|
+
runBasedEscalations: outputs.TcpCheckAlertSettingsRunBasedEscalation[];
|
|
424
|
+
timeBasedEscalations: outputs.TcpCheckAlertSettingsTimeBasedEscalation[];
|
|
425
|
+
}
|
|
426
|
+
export interface TcpCheckAlertSettingsParallelRunFailureThreshold {
|
|
427
|
+
/**
|
|
428
|
+
* Applicable only for checks scheduled in parallel in multiple locations.
|
|
429
|
+
*/
|
|
430
|
+
enabled?: boolean;
|
|
431
|
+
/**
|
|
432
|
+
* Possible values are `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `100`, and `100`. (Default `10`).
|
|
433
|
+
*/
|
|
434
|
+
percentage?: number;
|
|
435
|
+
}
|
|
436
|
+
export interface TcpCheckAlertSettingsReminder {
|
|
437
|
+
/**
|
|
438
|
+
* How many reminders to send out after the initial alert notification. Possible values are `0`, `1`, `2`, `3`, `4`, `5`, and `100000`
|
|
439
|
+
*/
|
|
440
|
+
amount?: number;
|
|
441
|
+
/**
|
|
442
|
+
* Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
|
443
|
+
*/
|
|
444
|
+
interval?: number;
|
|
445
|
+
}
|
|
446
|
+
export interface TcpCheckAlertSettingsRunBasedEscalation {
|
|
447
|
+
/**
|
|
448
|
+
* After how many failed consecutive check runs an alert notification should be sent. Possible values are between 1 and 5. (Default `1`).
|
|
449
|
+
*/
|
|
450
|
+
failedRunThreshold?: number;
|
|
451
|
+
}
|
|
452
|
+
export interface TcpCheckAlertSettingsTimeBasedEscalation {
|
|
453
|
+
/**
|
|
454
|
+
* After how many minutes after a check starts failing an alert should be sent. Possible values are `5`, `10`, `15`, and `30`. (Default `5`).
|
|
455
|
+
*/
|
|
456
|
+
minutesFailingThreshold?: number;
|
|
457
|
+
}
|
|
458
|
+
export interface TcpCheckRequest {
|
|
459
|
+
/**
|
|
460
|
+
* A request can have multiple assertions.
|
|
461
|
+
*/
|
|
462
|
+
assertions?: outputs.TcpCheckRequestAssertion[];
|
|
463
|
+
/**
|
|
464
|
+
* The data to send to the target host.
|
|
465
|
+
*/
|
|
466
|
+
data?: string;
|
|
467
|
+
/**
|
|
468
|
+
* The hostname or IP to connect to. Do not include a scheme or a port in this value.
|
|
469
|
+
*/
|
|
470
|
+
hostname: string;
|
|
471
|
+
/**
|
|
472
|
+
* The IP family to use when executing the TCP check. The value can be either `IPv4` or `IPv6`.
|
|
473
|
+
*/
|
|
474
|
+
ipFamily?: string;
|
|
475
|
+
/**
|
|
476
|
+
* The port number to connect to.
|
|
477
|
+
*/
|
|
478
|
+
port: number;
|
|
479
|
+
}
|
|
480
|
+
export interface TcpCheckRequestAssertion {
|
|
481
|
+
/**
|
|
482
|
+
* 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`.
|
|
483
|
+
*/
|
|
484
|
+
comparison: string;
|
|
485
|
+
property?: string;
|
|
486
|
+
/**
|
|
487
|
+
* The source of the asserted value. Possible values are `RESPONSE_DATA` and `RESPONSE_TIME`.
|
|
488
|
+
*/
|
|
489
|
+
source: string;
|
|
490
|
+
target?: string;
|
|
491
|
+
}
|
|
492
|
+
export interface TcpCheckRetryStrategy {
|
|
493
|
+
/**
|
|
494
|
+
* The number of seconds to wait before the first retry attempt.
|
|
495
|
+
*/
|
|
496
|
+
baseBackoffSeconds?: number;
|
|
497
|
+
/**
|
|
498
|
+
* The total amount of time to continue retrying the check (maximum 600 seconds).
|
|
499
|
+
*/
|
|
500
|
+
maxDurationSeconds?: number;
|
|
501
|
+
/**
|
|
502
|
+
* The maximum number of times to retry the check. Value must be between 1 and 10.
|
|
503
|
+
*/
|
|
504
|
+
maxRetries?: number;
|
|
505
|
+
/**
|
|
506
|
+
* Whether retries should be run in the same region as the initial check run.
|
|
507
|
+
*/
|
|
508
|
+
sameRegion?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* Determines which type of retry strategy to use. Possible values are `FIXED`, `LINEAR`, or `EXPONENTIAL`.
|
|
511
|
+
*/
|
|
512
|
+
type: string;
|
|
513
|
+
}
|