Skip to content

Commit f6c8a9c

Browse files
authored
Merge pull request #42 from squaredup/work/rb/checkly
2 parents 88d06e9 + d12999f commit f6c8a9c

31 files changed

Lines changed: 2420 additions & 0 deletions

plugins/Checkly/v1/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Checkly plugin
2+
3+
A simple data source for [Checkly](https://www.checklyhq.com).
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"steps": [
3+
{
4+
"displayName": "API access",
5+
"dataStream": {
6+
"name": "account"
7+
},
8+
"success": "Successfully connected to Checkly API",
9+
"error": "Check your Checkly API key is valid",
10+
"required": true
11+
}
12+
]
13+
}

plugins/Checkly/v1/cspell.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"words": [
3+
"checkly"
4+
]
5+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "account",
3+
"displayName": "Account",
4+
"tags": [
5+
"Advanced"
6+
],
7+
"baseDataSourceName": "httpRequestUnscoped",
8+
"config": {
9+
"httpMethod": "get",
10+
"paging": {
11+
"mode": "none"
12+
},
13+
"expandInnerObjects": true,
14+
"endpointPath": "accounts/me",
15+
"getArgs": [],
16+
"headers": []
17+
},
18+
"timeframes": false,
19+
"visibility": {
20+
"type": "hidden"
21+
}
22+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "alerts",
3+
"displayName": "Summary – Alerts",
4+
"tags": [
5+
"Summary"
6+
],
7+
"baseDataSourceName": "httpRequestUnscoped",
8+
"config": {
9+
"httpMethod": "get",
10+
"paging": {
11+
"mode": "nextUrl",
12+
"pageSize": {
13+
"realm": "queryArg",
14+
"path": "limit",
15+
"value": "100"
16+
},
17+
"in": {
18+
"realm": "webLink",
19+
"path": "next"
20+
}
21+
},
22+
"expandInnerObjects": true,
23+
"endpointPath": "check-alerts",
24+
"getArgs": [],
25+
"headers": []
26+
},
27+
"metadata": [
28+
{
29+
"name": "CheckName",
30+
"sourceId": "checkId",
31+
"objectPropertyPath": "Name",
32+
"sourceType": "check"
33+
},
34+
{
35+
"shape": [
36+
"number",
37+
{
38+
"decimalPlaces": 0
39+
}
40+
],
41+
"name": "responseTime"
42+
},
43+
{
44+
"pattern": ".*"
45+
}
46+
],
47+
"timeframes": false
48+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"name": "analyticsApiChecks",
3+
"displayName": "Analytics – API Check",
4+
"baseDataSourceName": "httpRequestScopedSingle",
5+
"matches": {
6+
"sourceType": {
7+
"type": "equals",
8+
"value": "check"
9+
},
10+
"checkType": {
11+
"type": "equals",
12+
"value": "API"
13+
}
14+
},
15+
"tags": [
16+
"Analytics"
17+
],
18+
"ui": [
19+
{
20+
"type": "autocomplete",
21+
"name": "metric",
22+
"label": "Metric",
23+
"validation": {
24+
"required": true
25+
},
26+
"isMulti": false,
27+
"data": {
28+
"source": "dataStream",
29+
"dataStreamName": "availableMetrics",
30+
"dataSourceConfig": {
31+
"checkType": "API"
32+
}
33+
}
34+
}
35+
],
36+
"config": {
37+
"httpMethod": "get",
38+
"paging": {
39+
"mode": "none"
40+
},
41+
"expandInnerObjects": true,
42+
"endpointPath": "analytics/api-checks/{{object.checkId}}",
43+
"getArgs": [
44+
{
45+
"key": "metrics",
46+
"value": "{{metric}}"
47+
},
48+
{
49+
"key": "from",
50+
"value": "{{timeframe.unixStart}}"
51+
},
52+
{
53+
"key": "to",
54+
"value": "{{timeframe.unixEnd}}"
55+
},
56+
{
57+
"key": "limit",
58+
"value": "100"
59+
}
60+
],
61+
"postRequestScript": "analytics-post.js",
62+
"headers": []
63+
},
64+
"metadata": [
65+
{
66+
"shape": "string",
67+
"name": "name",
68+
"sourceId": "checkId",
69+
"sourceType": "check"
70+
},
71+
{
72+
"shape": "string",
73+
"name": "checkId"
74+
},
75+
{
76+
"shape": [
77+
"number",
78+
{
79+
"decimalPlaces": 0
80+
}
81+
],
82+
"name": "attempts"
83+
},
84+
{
85+
"shape": [
86+
"number",
87+
{
88+
"decimalPlaces": 0
89+
}
90+
],
91+
"name": "statusCode"
92+
},
93+
{
94+
"pattern": ".*"
95+
}
96+
],
97+
"timeframes": true
98+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"name": "analyticsBrowserChecks",
3+
"displayName": "Analytics – Browser Check",
4+
"baseDataSourceName": "httpRequestScopedSingle",
5+
"matches": {
6+
"sourceType": {
7+
"type": "equals",
8+
"value": "check"
9+
},
10+
"checkType": {
11+
"type": "equals",
12+
"value": "BROWSER"
13+
}
14+
},
15+
"tags": [
16+
"Analytics"
17+
],
18+
"ui": [
19+
{
20+
"type": "autocomplete",
21+
"name": "metric",
22+
"label": "Metric",
23+
"validation": {
24+
"required": true
25+
},
26+
"isMulti": false,
27+
"data": {
28+
"source": "dataStream",
29+
"dataStreamName": "availableMetrics",
30+
"dataSourceConfig": {
31+
"checkType": "BROWSER"
32+
}
33+
}
34+
}
35+
],
36+
"config": {
37+
"httpMethod": "get",
38+
"paging": {
39+
"mode": "none"
40+
},
41+
"expandInnerObjects": true,
42+
"endpointPath": "analytics/browser-checks/{{object.checkId}}",
43+
"getArgs": [
44+
{
45+
"key": "metrics",
46+
"value": "{{metric}}"
47+
},
48+
{
49+
"key": "from",
50+
"value": "{{timeframe.unixStart}}"
51+
},
52+
{
53+
"key": "to",
54+
"value": "{{timeframe.unixEnd}}"
55+
},
56+
{
57+
"key": "limit",
58+
"value": "100"
59+
}
60+
],
61+
"postRequestScript": "analytics-post.js",
62+
"headers": []
63+
},
64+
"metadata": [
65+
{
66+
"shape": "string",
67+
"name": "name",
68+
"sourceId": "checkId",
69+
"sourceType": "check"
70+
},
71+
{
72+
"shape": "string",
73+
"name": "checkId"
74+
},
75+
{
76+
"shape": [
77+
"number",
78+
{
79+
"decimalPlaces": 0
80+
}
81+
],
82+
"name": "attempts"
83+
},
84+
{
85+
"shape": [
86+
"number",
87+
{
88+
"decimalPlaces": 0
89+
}
90+
],
91+
"name": "statusCode"
92+
},
93+
{
94+
"pattern": ".*"
95+
}
96+
],
97+
"timeframes": true
98+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"name": "analyticsDns",
3+
"displayName": "Analytics – DNS Check",
4+
"baseDataSourceName": "httpRequestScopedSingle",
5+
"matches": {
6+
"sourceType": {
7+
"type": "equals",
8+
"value": "check"
9+
},
10+
"checkType": {
11+
"type": "equals",
12+
"value": "DNS"
13+
}
14+
},
15+
"tags": [
16+
"Analytics"
17+
],
18+
"ui": [
19+
{
20+
"type": "autocomplete",
21+
"name": "metric",
22+
"label": "Metric",
23+
"validation": {
24+
"required": true
25+
},
26+
"isMulti": false,
27+
"data": {
28+
"source": "dataStream",
29+
"dataStreamName": "availableMetrics",
30+
"dataSourceConfig": {
31+
"checkType": "DNS"
32+
}
33+
}
34+
}
35+
],
36+
"config": {
37+
"httpMethod": "get",
38+
"paging": {
39+
"mode": "none"
40+
},
41+
"expandInnerObjects": true,
42+
"endpointPath": "analytics/dns/{{object.checkId}}",
43+
"getArgs": [
44+
{
45+
"key": "metrics",
46+
"value": "{{metric}}"
47+
},
48+
{
49+
"key": "from",
50+
"value": "{{timeframe.unixStart}}"
51+
},
52+
{
53+
"key": "to",
54+
"value": "{{timeframe.unixEnd}}"
55+
},
56+
{
57+
"key": "limit",
58+
"value": "100"
59+
}
60+
],
61+
"postRequestScript": "analytics-post.js",
62+
"headers": []
63+
},
64+
"metadata": [
65+
{
66+
"shape": "string",
67+
"name": "name",
68+
"sourceId": "checkId",
69+
"sourceType": "check"
70+
},
71+
{
72+
"shape": "string",
73+
"name": "checkId"
74+
},
75+
{
76+
"shape": [
77+
"number",
78+
{
79+
"decimalPlaces": 0
80+
}
81+
],
82+
"name": "attempts"
83+
},
84+
{
85+
"shape": [
86+
"number",
87+
{
88+
"decimalPlaces": 0
89+
}
90+
],
91+
"name": "statusCode"
92+
},
93+
{
94+
"pattern": ".*"
95+
}
96+
],
97+
"timeframes": true
98+
}

0 commit comments

Comments
 (0)