@checkly/pulumi 0.0.1-alpha.7 → 0.0.1
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/{bin/LICENSE → LICENSE} +0 -0
- package/README.md +8 -3
- package/{bin/alertChannel.d.ts → alertChannel.d.ts} +0 -0
- package/{bin/alertChannel.js → alertChannel.js} +0 -0
- package/{bin/alertChannel.js.map → alertChannel.js.map} +0 -0
- package/{bin/check.d.ts → check.d.ts} +0 -0
- package/{bin/check.js → check.js} +0 -0
- package/{bin/check.js.map → check.js.map} +0 -0
- package/{bin/checkGroup.d.ts → checkGroup.d.ts} +0 -0
- package/{bin/checkGroup.js → checkGroup.js} +0 -0
- package/{bin/checkGroup.js.map → checkGroup.js.map} +0 -0
- package/{bin/config → config}/index.d.ts +0 -0
- package/{bin/config → config}/index.js +0 -0
- package/{bin/config → config}/index.js.map +0 -0
- package/{bin/config → config}/vars.d.ts +0 -0
- package/{bin/config → config}/vars.js +0 -0
- package/{bin/config → config}/vars.js.map +0 -0
- package/{bin/dashboard.d.ts → dashboard.d.ts} +0 -0
- package/{bin/dashboard.js → dashboard.js} +0 -0
- package/{bin/dashboard.js.map → dashboard.js.map} +0 -0
- package/{bin/environmentVariable.d.ts → environmentVariable.d.ts} +0 -0
- package/{bin/environmentVariable.js → environmentVariable.js} +0 -0
- package/{bin/environmentVariable.js.map → environmentVariable.js.map} +0 -0
- package/{bin/index.d.ts → index.d.ts} +0 -0
- package/{bin/index.js → index.js} +0 -0
- package/{bin/index.js.map → index.js.map} +0 -0
- package/{bin/maintenanceWindow.d.ts → maintenanceWindow.d.ts} +0 -0
- package/{bin/maintenanceWindow.js → maintenanceWindow.js} +0 -0
- package/{bin/maintenanceWindow.js.map → maintenanceWindow.js.map} +0 -0
- package/package.json +4 -4
- package/{bin/package.json.bak → package.json.bak} +2 -2
- package/{bin/provider.d.ts → provider.d.ts} +0 -0
- package/{bin/provider.js → provider.js} +0 -0
- package/{bin/provider.js.map → provider.js.map} +0 -0
- package/scripts/install-pulumi-plugin.js +1 -1
- package/{bin/snippet.d.ts → snippet.d.ts} +0 -0
- package/{bin/snippet.js → snippet.js} +0 -0
- package/{bin/snippet.js.map → snippet.js.map} +0 -0
- package/{bin/triggerCheck.d.ts → triggerCheck.d.ts} +0 -0
- package/{bin/triggerCheck.js → triggerCheck.js} +0 -0
- package/{bin/triggerCheck.js.map → triggerCheck.js.map} +0 -0
- package/{bin/triggerCheckGroup.d.ts → triggerCheckGroup.d.ts} +0 -0
- package/{bin/triggerCheckGroup.js → triggerCheckGroup.js} +0 -0
- package/{bin/triggerCheckGroup.js.map → triggerCheckGroup.js.map} +0 -0
- package/{bin/types → types}/index.d.ts +0 -0
- package/{bin/types → types}/index.js +0 -0
- package/{bin/types → types}/index.js.map +0 -0
- package/{bin/types → types}/input.d.ts +0 -0
- package/{bin/types → types}/input.js +0 -0
- package/{bin/types → types}/input.js.map +0 -0
- package/{bin/types → types}/output.d.ts +0 -0
- package/{bin/types → types}/output.js +0 -0
- package/{bin/types → types}/output.js.map +0 -0
- package/{bin/utilities.d.ts → utilities.d.ts} +0 -0
- package/{bin/utilities.js → utilities.js} +1 -1
- package/{bin/utilities.js.map → utilities.js.map} +1 -1
- package/Pulumi.yaml +0 -0
- package/alertChannel.ts +0 -236
- package/bin/README.md +0 -151
- package/bin/package.json +0 -29
- package/bin/yarn.lock +0 -805
- package/check.ts +0 -453
- package/checkGroup.ts +0 -382
- package/config/index.ts +0 -5
- package/config/vars.ts +0 -33
- package/dashboard.ts +0 -231
- package/environmentVariable.ts +0 -107
- package/index.ts +0 -86
- package/maintenanceWindow.ts +0 -188
- package/provider.ts +0 -62
- package/snippet.ts +0 -98
- package/triggerCheck.ts +0 -123
- package/triggerCheckGroup.ts +0 -123
- package/tsconfig.json +0 -34
- package/types/index.ts +0 -11
- package/types/input.ts +0 -166
- package/types/output.ts +0 -167
- package/utilities.ts +0 -54
package/triggerCheckGroup.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
-
import * as utilities from "./utilities";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* ## Example Usage
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as pulumi from "@checkly/pulumi";
|
|
13
|
-
*
|
|
14
|
-
* const test_trigger_group = new checkly.TriggerCheckGroup("test-trigger-group", {groupId: "215"});
|
|
15
|
-
* export const test_trigger_group_url = test_trigger_group.url;
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export class TriggerCheckGroup extends pulumi.CustomResource {
|
|
19
|
-
/**
|
|
20
|
-
* Get an existing TriggerCheckGroup resource's state with the given name, ID, and optional extra
|
|
21
|
-
* properties used to qualify the lookup.
|
|
22
|
-
*
|
|
23
|
-
* @param name The _unique_ name of the resulting resource.
|
|
24
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
-
* @param state Any extra arguments used during the lookup.
|
|
26
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
-
*/
|
|
28
|
-
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TriggerCheckGroupState, opts?: pulumi.CustomResourceOptions): TriggerCheckGroup {
|
|
29
|
-
return new TriggerCheckGroup(name, <any>state, { ...opts, id: id });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
public static readonly __pulumiType = 'checkly:index/triggerCheckGroup:TriggerCheckGroup';
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Returns true if the given object is an instance of TriggerCheckGroup. This is designed to work even
|
|
37
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
-
*/
|
|
39
|
-
public static isInstance(obj: any): obj is TriggerCheckGroup {
|
|
40
|
-
if (obj === undefined || obj === null) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
return obj['__pulumiType'] === TriggerCheckGroup.__pulumiType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The id of the group that you want to attach the trigger to.
|
|
48
|
-
*/
|
|
49
|
-
public readonly groupId!: pulumi.Output<number>;
|
|
50
|
-
/**
|
|
51
|
-
* The token value created to trigger the group
|
|
52
|
-
*/
|
|
53
|
-
public readonly token!: pulumi.Output<string>;
|
|
54
|
-
/**
|
|
55
|
-
* The request URL to trigger the group run.
|
|
56
|
-
*/
|
|
57
|
-
public readonly url!: pulumi.Output<string>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Create a TriggerCheckGroup resource with the given unique name, arguments, and options.
|
|
61
|
-
*
|
|
62
|
-
* @param name The _unique_ name of the resource.
|
|
63
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
64
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
65
|
-
*/
|
|
66
|
-
constructor(name: string, args: TriggerCheckGroupArgs, opts?: pulumi.CustomResourceOptions)
|
|
67
|
-
constructor(name: string, argsOrState?: TriggerCheckGroupArgs | TriggerCheckGroupState, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
69
|
-
opts = opts || {};
|
|
70
|
-
if (opts.id) {
|
|
71
|
-
const state = argsOrState as TriggerCheckGroupState | undefined;
|
|
72
|
-
resourceInputs["groupId"] = state ? state.groupId : undefined;
|
|
73
|
-
resourceInputs["token"] = state ? state.token : undefined;
|
|
74
|
-
resourceInputs["url"] = state ? state.url : undefined;
|
|
75
|
-
} else {
|
|
76
|
-
const args = argsOrState as TriggerCheckGroupArgs | undefined;
|
|
77
|
-
if ((!args || args.groupId === undefined) && !opts.urn) {
|
|
78
|
-
throw new Error("Missing required property 'groupId'");
|
|
79
|
-
}
|
|
80
|
-
resourceInputs["groupId"] = args ? args.groupId : undefined;
|
|
81
|
-
resourceInputs["token"] = args ? args.token : undefined;
|
|
82
|
-
resourceInputs["url"] = args ? args.url : undefined;
|
|
83
|
-
}
|
|
84
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
-
super(TriggerCheckGroup.__pulumiType, name, resourceInputs, opts);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Input properties used for looking up and filtering TriggerCheckGroup resources.
|
|
91
|
-
*/
|
|
92
|
-
export interface TriggerCheckGroupState {
|
|
93
|
-
/**
|
|
94
|
-
* The id of the group that you want to attach the trigger to.
|
|
95
|
-
*/
|
|
96
|
-
groupId?: pulumi.Input<number>;
|
|
97
|
-
/**
|
|
98
|
-
* The token value created to trigger the group
|
|
99
|
-
*/
|
|
100
|
-
token?: pulumi.Input<string>;
|
|
101
|
-
/**
|
|
102
|
-
* The request URL to trigger the group run.
|
|
103
|
-
*/
|
|
104
|
-
url?: pulumi.Input<string>;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The set of arguments for constructing a TriggerCheckGroup resource.
|
|
109
|
-
*/
|
|
110
|
-
export interface TriggerCheckGroupArgs {
|
|
111
|
-
/**
|
|
112
|
-
* The id of the group that you want to attach the trigger to.
|
|
113
|
-
*/
|
|
114
|
-
groupId: pulumi.Input<number>;
|
|
115
|
-
/**
|
|
116
|
-
* The token value created to trigger the group
|
|
117
|
-
*/
|
|
118
|
-
token?: pulumi.Input<string>;
|
|
119
|
-
/**
|
|
120
|
-
* The request URL to trigger the group run.
|
|
121
|
-
*/
|
|
122
|
-
url?: pulumi.Input<string>;
|
|
123
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "bin",
|
|
4
|
-
"target": "es2016",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"stripInternal": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"noFallthroughCasesInSwitch": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"strict": true
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"alertChannel.ts",
|
|
17
|
-
"check.ts",
|
|
18
|
-
"checkGroup.ts",
|
|
19
|
-
"config/index.ts",
|
|
20
|
-
"config/vars.ts",
|
|
21
|
-
"dashboard.ts",
|
|
22
|
-
"environmentVariable.ts",
|
|
23
|
-
"index.ts",
|
|
24
|
-
"maintenanceWindow.ts",
|
|
25
|
-
"provider.ts",
|
|
26
|
-
"snippet.ts",
|
|
27
|
-
"triggerCheck.ts",
|
|
28
|
-
"triggerCheckGroup.ts",
|
|
29
|
-
"types/index.ts",
|
|
30
|
-
"types/input.ts",
|
|
31
|
-
"types/output.ts",
|
|
32
|
-
"utilities.ts"
|
|
33
|
-
]
|
|
34
|
-
}
|
package/types/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
// Export sub-modules:
|
|
5
|
-
import * as input from "./input";
|
|
6
|
-
import * as output from "./output";
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
input,
|
|
10
|
-
output,
|
|
11
|
-
};
|
package/types/input.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
-
import { input as inputs, output as outputs } from "../types";
|
|
6
|
-
|
|
7
|
-
import * as utilities from "../utilities";
|
|
8
|
-
|
|
9
|
-
export interface AlertChannelEmail {
|
|
10
|
-
address: pulumi.Input<string>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AlertChannelOpsgenie {
|
|
14
|
-
apiKey: pulumi.Input<string>;
|
|
15
|
-
name: pulumi.Input<string>;
|
|
16
|
-
priority: pulumi.Input<string>;
|
|
17
|
-
region: pulumi.Input<string>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface AlertChannelPagerduty {
|
|
21
|
-
account?: pulumi.Input<string>;
|
|
22
|
-
serviceKey: pulumi.Input<string>;
|
|
23
|
-
serviceName?: pulumi.Input<string>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface AlertChannelSlack {
|
|
27
|
-
channel: pulumi.Input<string>;
|
|
28
|
-
url: pulumi.Input<string>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface AlertChannelSms {
|
|
32
|
-
name: pulumi.Input<string>;
|
|
33
|
-
number: pulumi.Input<string>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface AlertChannelWebhook {
|
|
37
|
-
headers?: pulumi.Input<{[key: string]: any}>;
|
|
38
|
-
method?: pulumi.Input<string>;
|
|
39
|
-
name: pulumi.Input<string>;
|
|
40
|
-
queryParameters?: pulumi.Input<{[key: string]: any}>;
|
|
41
|
-
template?: pulumi.Input<string>;
|
|
42
|
-
url: pulumi.Input<string>;
|
|
43
|
-
webhookSecret?: pulumi.Input<string>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface CheckAlertChannelSubscription {
|
|
47
|
-
activated: pulumi.Input<boolean>;
|
|
48
|
-
channelId: pulumi.Input<number>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface CheckAlertSettings {
|
|
52
|
-
escalationType?: pulumi.Input<string>;
|
|
53
|
-
reminders?: pulumi.Input<pulumi.Input<inputs.CheckAlertSettingsReminder>[]>;
|
|
54
|
-
runBasedEscalations?: pulumi.Input<pulumi.Input<inputs.CheckAlertSettingsRunBasedEscalation>[]>;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
57
|
-
*/
|
|
58
|
-
sslCertificates?: pulumi.Input<pulumi.Input<inputs.CheckAlertSettingsSslCertificate>[]>;
|
|
59
|
-
timeBasedEscalations?: pulumi.Input<pulumi.Input<inputs.CheckAlertSettingsTimeBasedEscalation>[]>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface CheckAlertSettingsReminder {
|
|
63
|
-
amount?: pulumi.Input<number>;
|
|
64
|
-
interval?: pulumi.Input<number>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface CheckAlertSettingsRunBasedEscalation {
|
|
68
|
-
failedRunThreshold?: pulumi.Input<number>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface CheckAlertSettingsSslCertificate {
|
|
72
|
-
alertThreshold?: pulumi.Input<number>;
|
|
73
|
-
enabled?: pulumi.Input<boolean>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface CheckAlertSettingsTimeBasedEscalation {
|
|
77
|
-
minutesFailingThreshold?: pulumi.Input<number>;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface CheckGroupAlertChannelSubscription {
|
|
81
|
-
activated: pulumi.Input<boolean>;
|
|
82
|
-
channelId: pulumi.Input<number>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface CheckGroupAlertSettings {
|
|
86
|
-
escalationType?: pulumi.Input<string>;
|
|
87
|
-
reminders?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertSettingsReminder>[]>;
|
|
88
|
-
runBasedEscalations?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertSettingsRunBasedEscalation>[]>;
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
91
|
-
*/
|
|
92
|
-
sslCertificates?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertSettingsSslCertificate>[]>;
|
|
93
|
-
timeBasedEscalations?: pulumi.Input<pulumi.Input<inputs.CheckGroupAlertSettingsTimeBasedEscalation>[]>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface CheckGroupAlertSettingsReminder {
|
|
97
|
-
amount?: pulumi.Input<number>;
|
|
98
|
-
interval?: pulumi.Input<number>;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface CheckGroupAlertSettingsRunBasedEscalation {
|
|
102
|
-
failedRunThreshold?: pulumi.Input<number>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface CheckGroupAlertSettingsSslCertificate {
|
|
106
|
-
alertThreshold?: pulumi.Input<number>;
|
|
107
|
-
enabled?: pulumi.Input<boolean>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface CheckGroupAlertSettingsTimeBasedEscalation {
|
|
111
|
-
minutesFailingThreshold?: pulumi.Input<number>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface CheckGroupApiCheckDefaults {
|
|
115
|
-
assertions?: pulumi.Input<pulumi.Input<inputs.CheckGroupApiCheckDefaultsAssertion>[]>;
|
|
116
|
-
basicAuth?: pulumi.Input<inputs.CheckGroupApiCheckDefaultsBasicAuth>;
|
|
117
|
-
headers?: pulumi.Input<{[key: string]: any}>;
|
|
118
|
-
queryParameters?: pulumi.Input<{[key: string]: any}>;
|
|
119
|
-
url?: pulumi.Input<string>;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* checkGroupApiCheckDefaultsProvideDefaults sets the appropriate defaults for CheckGroupApiCheckDefaults
|
|
123
|
-
*/
|
|
124
|
-
export function checkGroupApiCheckDefaultsProvideDefaults(val: CheckGroupApiCheckDefaults): CheckGroupApiCheckDefaults {
|
|
125
|
-
return {
|
|
126
|
-
...val,
|
|
127
|
-
url: (val.url) ?? "",
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface CheckGroupApiCheckDefaultsAssertion {
|
|
132
|
-
comparison: pulumi.Input<string>;
|
|
133
|
-
property?: pulumi.Input<string>;
|
|
134
|
-
source: pulumi.Input<string>;
|
|
135
|
-
target: pulumi.Input<string>;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface CheckGroupApiCheckDefaultsBasicAuth {
|
|
139
|
-
password: pulumi.Input<string>;
|
|
140
|
-
username: pulumi.Input<string>;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface CheckRequest {
|
|
144
|
-
assertions?: pulumi.Input<pulumi.Input<inputs.CheckRequestAssertion>[]>;
|
|
145
|
-
basicAuth?: pulumi.Input<inputs.CheckRequestBasicAuth>;
|
|
146
|
-
body?: pulumi.Input<string>;
|
|
147
|
-
bodyType?: pulumi.Input<string>;
|
|
148
|
-
followRedirects?: pulumi.Input<boolean>;
|
|
149
|
-
headers?: pulumi.Input<{[key: string]: any}>;
|
|
150
|
-
method?: pulumi.Input<string>;
|
|
151
|
-
queryParameters?: pulumi.Input<{[key: string]: any}>;
|
|
152
|
-
skipSsl?: pulumi.Input<boolean>;
|
|
153
|
-
url: pulumi.Input<string>;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface CheckRequestAssertion {
|
|
157
|
-
comparison: pulumi.Input<string>;
|
|
158
|
-
property?: pulumi.Input<string>;
|
|
159
|
-
source: pulumi.Input<string>;
|
|
160
|
-
target?: pulumi.Input<string>;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface CheckRequestBasicAuth {
|
|
164
|
-
password: pulumi.Input<string>;
|
|
165
|
-
username: pulumi.Input<string>;
|
|
166
|
-
}
|
package/types/output.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
-
import { input as inputs, output as outputs } from "../types";
|
|
6
|
-
|
|
7
|
-
import * as utilities from "../utilities";
|
|
8
|
-
|
|
9
|
-
export interface AlertChannelEmail {
|
|
10
|
-
address: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AlertChannelOpsgenie {
|
|
14
|
-
apiKey: string;
|
|
15
|
-
name: string;
|
|
16
|
-
priority: string;
|
|
17
|
-
region: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface AlertChannelPagerduty {
|
|
21
|
-
account?: string;
|
|
22
|
-
serviceKey: string;
|
|
23
|
-
serviceName?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface AlertChannelSlack {
|
|
27
|
-
channel: string;
|
|
28
|
-
url: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface AlertChannelSms {
|
|
32
|
-
name: string;
|
|
33
|
-
number: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface AlertChannelWebhook {
|
|
37
|
-
headers: {[key: string]: any};
|
|
38
|
-
method?: string;
|
|
39
|
-
name: string;
|
|
40
|
-
queryParameters: {[key: string]: any};
|
|
41
|
-
template?: string;
|
|
42
|
-
url: string;
|
|
43
|
-
webhookSecret?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface CheckAlertChannelSubscription {
|
|
47
|
-
activated: boolean;
|
|
48
|
-
channelId: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface CheckAlertSettings {
|
|
52
|
-
escalationType?: string;
|
|
53
|
-
reminders?: outputs.CheckAlertSettingsReminder[];
|
|
54
|
-
runBasedEscalations?: outputs.CheckAlertSettingsRunBasedEscalation[];
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
57
|
-
*/
|
|
58
|
-
sslCertificates?: outputs.CheckAlertSettingsSslCertificate[];
|
|
59
|
-
timeBasedEscalations?: outputs.CheckAlertSettingsTimeBasedEscalation[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface CheckAlertSettingsReminder {
|
|
63
|
-
amount?: number;
|
|
64
|
-
interval?: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface CheckAlertSettingsRunBasedEscalation {
|
|
68
|
-
failedRunThreshold?: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface CheckAlertSettingsSslCertificate {
|
|
72
|
-
alertThreshold?: number;
|
|
73
|
-
enabled?: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface CheckAlertSettingsTimeBasedEscalation {
|
|
77
|
-
minutesFailingThreshold?: number;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface CheckGroupAlertChannelSubscription {
|
|
81
|
-
activated: boolean;
|
|
82
|
-
channelId: number;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface CheckGroupAlertSettings {
|
|
86
|
-
escalationType?: string;
|
|
87
|
-
reminders?: outputs.CheckGroupAlertSettingsReminder[];
|
|
88
|
-
runBasedEscalations?: outputs.CheckGroupAlertSettingsRunBasedEscalation[];
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated The property `ssl_certificates` is deprecated and it's ignored by the Checkly Public API. It will be removed in a future version.
|
|
91
|
-
*/
|
|
92
|
-
sslCertificates?: outputs.CheckGroupAlertSettingsSslCertificate[];
|
|
93
|
-
timeBasedEscalations?: outputs.CheckGroupAlertSettingsTimeBasedEscalation[];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface CheckGroupAlertSettingsReminder {
|
|
97
|
-
amount?: number;
|
|
98
|
-
interval?: number;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface CheckGroupAlertSettingsRunBasedEscalation {
|
|
102
|
-
failedRunThreshold?: number;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface CheckGroupAlertSettingsSslCertificate {
|
|
106
|
-
alertThreshold?: number;
|
|
107
|
-
enabled?: boolean;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface CheckGroupAlertSettingsTimeBasedEscalation {
|
|
111
|
-
minutesFailingThreshold?: number;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface CheckGroupApiCheckDefaults {
|
|
115
|
-
assertions?: outputs.CheckGroupApiCheckDefaultsAssertion[];
|
|
116
|
-
basicAuth: outputs.CheckGroupApiCheckDefaultsBasicAuth;
|
|
117
|
-
headers: {[key: string]: any};
|
|
118
|
-
queryParameters: {[key: string]: any};
|
|
119
|
-
url: string;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* checkGroupApiCheckDefaultsProvideDefaults sets the appropriate defaults for CheckGroupApiCheckDefaults
|
|
123
|
-
*/
|
|
124
|
-
export function checkGroupApiCheckDefaultsProvideDefaults(val: CheckGroupApiCheckDefaults): CheckGroupApiCheckDefaults {
|
|
125
|
-
return {
|
|
126
|
-
...val,
|
|
127
|
-
url: (val.url) ?? "",
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface CheckGroupApiCheckDefaultsAssertion {
|
|
132
|
-
comparison: string;
|
|
133
|
-
property?: string;
|
|
134
|
-
source: string;
|
|
135
|
-
target: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface CheckGroupApiCheckDefaultsBasicAuth {
|
|
139
|
-
password: string;
|
|
140
|
-
username: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface CheckRequest {
|
|
144
|
-
assertions?: outputs.CheckRequestAssertion[];
|
|
145
|
-
basicAuth: outputs.CheckRequestBasicAuth;
|
|
146
|
-
body?: string;
|
|
147
|
-
bodyType?: string;
|
|
148
|
-
followRedirects?: boolean;
|
|
149
|
-
headers: {[key: string]: any};
|
|
150
|
-
method?: string;
|
|
151
|
-
queryParameters: {[key: string]: any};
|
|
152
|
-
skipSsl?: boolean;
|
|
153
|
-
url: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface CheckRequestAssertion {
|
|
157
|
-
comparison: string;
|
|
158
|
-
property?: string;
|
|
159
|
-
source: string;
|
|
160
|
-
target?: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface CheckRequestBasicAuth {
|
|
164
|
-
password: string;
|
|
165
|
-
username: string;
|
|
166
|
-
}
|
|
167
|
-
|
package/utilities.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
2
|
-
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export function getEnv(...vars: string[]): string | undefined {
|
|
6
|
-
for (const v of vars) {
|
|
7
|
-
const value = process.env[v];
|
|
8
|
-
if (value) {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function getEnvBoolean(...vars: string[]): boolean | undefined {
|
|
16
|
-
const s = getEnv(...vars);
|
|
17
|
-
if (s !== undefined) {
|
|
18
|
-
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
19
|
-
// Terraform uses internally when parsing boolean values.
|
|
20
|
-
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function getEnvNumber(...vars: string[]): number | undefined {
|
|
31
|
-
const s = getEnv(...vars);
|
|
32
|
-
if (s !== undefined) {
|
|
33
|
-
const f = parseFloat(s);
|
|
34
|
-
if (!isNaN(f)) {
|
|
35
|
-
return f;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function getVersion(): string {
|
|
42
|
-
let version = require('./package.json').version;
|
|
43
|
-
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
44
|
-
// If there is a v, strip it off.
|
|
45
|
-
if (version.indexOf('v') === 0) {
|
|
46
|
-
version = version.slice(1);
|
|
47
|
-
}
|
|
48
|
-
return version;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export function resourceOptsDefaults(): any {
|
|
53
|
-
return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/${VERSION}" };
|
|
54
|
-
}
|