@theholocron/checkly-client 1.53.1 → 1.54.0
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/dist/index.d.mts +1 -1
- package/dist/index.mjs +48 -48
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -98,7 +98,7 @@ type AlertChannel = AlertChannelRecord & ({
|
|
|
98
98
|
* The message body of Checkly's own Discord setup (its AI-analysis section left out, since not every account has it), so
|
|
99
99
|
* a channel made through the API reads like one made in the UI.
|
|
100
100
|
*/
|
|
101
|
-
declare const DISCORD_TEMPLATE = "{\n
|
|
101
|
+
declare const DISCORD_TEMPLATE = "{\n\t\"content\": null,\n\t\"username\": \"Checkly\",\n\t\"avatar_url\": \"https://s3.eu-central-1.amazonaws.com/cdn.checklyhq.com/slack/checkly-slack-icon.png\",\n\t{{! Embeds for the SSL expiry notifications}}\n\t{{#eq ALERT_TYPE \"ALERT_SSL\" }}\n\t\"embeds\": [\n\t\t{\n\t\t\t\"title\": \"{{ALERT_TITLE}}\",\n\t\t\t\"url\": \"{{RESULT_LINK}}\",\n\t\t\t\"color\": 16762924\n\t\t}\n\t]\n\t{{else}}\n\t{{! Embeds for the standard failure, recovery and degraded notifications}}\n\t\"embeds\": [\n\t\t{\n\t\t\t\"title\": \"{{ALERT_TITLE}}\",\n\t\t\t\"url\": \"{{RESULT_LINK}}\",\n\t\t\t\"fields\": [\n\t\t\t\t{{#eq ALERT_TYPE \"API\" }}\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Status code\",\n\t\t\t\t\t\"value\": \"{{API_CHECK_RESPONSE_STATUS_CODE}}\"\n\t\t\t\t},\n\t\t\t\t{{/eq}}\n\t\t\t\t{{#if GROUP_NAME}}\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Group\",\n\t\t\t\t\t\"value\": \"{{GROUP_NAME}}\"\n\t\t\t\t},\n\t\t\t\t{{/if}}\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Response Time\",\n\t\t\t\t\t\"value\": \"{{RESPONSE_TIME}}ms\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Location\",\n\t\t\t\t\t\"value\": \"{{RUN_LOCATION}}\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"Tags\",\n\t\t\t\t\t\"value\": \"[{{#each TAGS}} {{this}} {{#unless @last}},{{/unless}} {{/each}}]\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"timestamp\": \"{{STARTED_AT}}\"\n\t\t}\n\t]\n\t{{/eq}}\n}\n";
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region ../../../../../src/checks/checks.d.ts
|
|
104
104
|
type AssertionSource = "STATUS_CODE" | "JSON_BODY" | "HEADERS" | "TEXT_BODY" | "RESPONSE_TIME";
|
package/dist/index.mjs
CHANGED
|
@@ -5,54 +5,54 @@ import { createRestClient } from "@theholocron/http-client";
|
|
|
5
5
|
* a channel made through the API reads like one made in the UI.
|
|
6
6
|
*/
|
|
7
7
|
const DISCORD_TEMPLATE = `{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
8
|
+
"content": null,
|
|
9
|
+
"username": "Checkly",
|
|
10
|
+
"avatar_url": "https://s3.eu-central-1.amazonaws.com/cdn.checklyhq.com/slack/checkly-slack-icon.png",
|
|
11
|
+
{{! Embeds for the SSL expiry notifications}}
|
|
12
|
+
{{#eq ALERT_TYPE "ALERT_SSL" }}
|
|
13
|
+
"embeds": [
|
|
14
|
+
{
|
|
15
|
+
"title": "{{ALERT_TITLE}}",
|
|
16
|
+
"url": "{{RESULT_LINK}}",
|
|
17
|
+
"color": 16762924
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
{{else}}
|
|
21
|
+
{{! Embeds for the standard failure, recovery and degraded notifications}}
|
|
22
|
+
"embeds": [
|
|
23
|
+
{
|
|
24
|
+
"title": "{{ALERT_TITLE}}",
|
|
25
|
+
"url": "{{RESULT_LINK}}",
|
|
26
|
+
"fields": [
|
|
27
|
+
{{#eq ALERT_TYPE "API" }}
|
|
28
|
+
{
|
|
29
|
+
"name": "Status code",
|
|
30
|
+
"value": "{{API_CHECK_RESPONSE_STATUS_CODE}}"
|
|
31
|
+
},
|
|
32
|
+
{{/eq}}
|
|
33
|
+
{{#if GROUP_NAME}}
|
|
34
|
+
{
|
|
35
|
+
"name": "Group",
|
|
36
|
+
"value": "{{GROUP_NAME}}"
|
|
37
|
+
},
|
|
38
|
+
{{/if}}
|
|
39
|
+
{
|
|
40
|
+
"name": "Response Time",
|
|
41
|
+
"value": "{{RESPONSE_TIME}}ms"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "Location",
|
|
45
|
+
"value": "{{RUN_LOCATION}}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Tags",
|
|
49
|
+
"value": "[{{#each TAGS}} {{this}} {{#unless @last}},{{/unless}} {{/each}}]"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"timestamp": "{{STARTED_AT}}"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
{{/eq}}
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
58
58
|
/** Checkly's page size ceiling for this listing. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/checkly-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"description": "A TypeScript client for the Checkly monitoring API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"checkly",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@theholocron/observability": "^0.3.0",
|
|
37
|
-
"@theholocron/http-client": "^1.
|
|
37
|
+
"@theholocron/http-client": "^1.54.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@theholocron/cli": "5.0.0-alpha.79",
|