You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/check-groups/create-v1.mdx
+7-333Lines changed: 7 additions & 333 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,338 +8,12 @@ deprecated: true
8
8
9
9
## Overview
10
10
11
-
Create a new check group to organize related checks and apply shared settings. Check groups help you manage multiple checks efficiently by providing common configuration, environment variables, and alert channels.
"localSetupScript": "// Global setup for all checks in this group\nconst setupData = {\n timestamp: Date.now(),\n environment: 'production'\n};\nconsole.log('Setup completed:', setupData);",
36
-
"localTearDownScript": "// Global cleanup\nconsole.log('Teardown completed');",
"localSetupScript": "// Global setup for all checks in this group\nconst setupData = {\n timestamp: Date.now(),\n environment: 'production'\n};\nconsole.log('Setup completed:', setupData);",
92
-
"localTearDownScript": "// Global cleanup\nconsole.log('Teardown completed');",
93
-
"alertSettings": {
94
-
"escalationType": "RUN_BASED",
95
-
"runBasedEscalation": {
96
-
"failedRunThreshold": 1
97
-
},
98
-
"reminders": {
99
-
"amount": 2,
100
-
"interval": 5
101
-
},
102
-
"sslCertificates": {
103
-
"enabled": true,
104
-
"alertThreshold": 30
105
-
}
106
-
},
107
-
"useGlobalAlertSettings": false,
108
-
"alertChannelSubscriptions": [
109
-
{
110
-
"channelId": 123,
111
-
"activated": true
112
-
}
113
-
],
114
-
"checksCount": 0,
115
-
"createdAt": "2024-01-25T10:30:00.000Z",
116
-
"updatedAt": "2024-01-25T10:30:00.000Z"
117
-
}
118
-
```
119
-
120
-
## Configuration Options
121
-
122
-
<AccordionGroup>
123
-
124
-
<Accordiontitle="Basic Settings">
125
-
**Required Fields:**
126
-
-`name` (string): Display name for the check group
127
-
128
-
**Optional Fields:**
129
-
-`activated` (boolean): Whether checks in this group are active (default: true)
130
-
-`muted` (boolean): Whether alerts are muted (default: false)
131
-
-`tags` (array): Tags for organization and filtering
132
-
-`locations` (array): Default monitoring locations for checks
133
-
-`frequency` (integer): Default check frequency in minutes
134
-
</Accordion>
135
-
136
-
<Accordiontitle="Environment Variables">
137
-
Define shared environment variables for all checks in the group:
138
-
139
-
```json
140
-
{
141
-
"environmentVariables": [
142
-
{
143
-
"key": "API_URL",
144
-
"value": "https://api.example.com",
145
-
"locked": false
146
-
},
147
-
{
148
-
"key": "SECRET_KEY",
149
-
"value": "sensitive-value",
150
-
"locked": true
151
-
}
152
-
]
153
-
}
154
-
```
155
-
156
-
-`locked`: true means the value is encrypted and masked in responses
157
-
</Accordion>
158
-
159
-
<Accordiontitle="Setup and Teardown Scripts">
160
-
Define JavaScript code that runs before and after each check:
161
-
162
-
**Setup Script:**
163
-
- Runs before each check execution
164
-
- Can prepare test data or environment
165
-
- Available to all checks in the group
166
-
167
-
**Teardown Script:**
168
-
- Runs after each check execution
169
-
- Can clean up resources or log results
170
-
- Executes regardless of check success/failure
171
-
</Accordion>
172
-
173
-
<Accordiontitle="Alert Settings">
174
-
Configure how and when alerts are triggered:
175
-
176
-
**Escalation Types:**
177
-
-`RUN_BASED`: Alert after N failed runs
178
-
-`TIME_BASED`: Alert after failing for N minutes
179
-
180
-
**SSL Certificate Monitoring:**
181
-
- Monitor SSL certificates in the group
182
-
- Set days before expiration to alert
183
-
184
-
**Reminders:**
185
-
- Send follow-up alerts if issues persist
186
-
- Configure frequency and count
187
-
</Accordion>
188
-
189
-
</AccordionGroup>
190
-
191
-
## Code Examples
192
-
193
-
<CodeGroup>
194
-
195
-
```bash cURL
196
-
curl -X POST "https://api.checklyhq.com/v1/check-groups" \
- Use environment variables for URLs, API keys, and configuration
322
-
- Mark sensitive values as `locked: true`
323
-
- Use consistent naming conventions across groups
324
-
- Consider using different groups for different environments
325
-
</Accordion>
326
-
327
-
<Accordiontitle="Alert Configuration">
328
-
- Set appropriate escalation thresholds based on criticality
329
-
- Use different alert channels for different severity levels
330
-
- Configure reminders for persistent issues
331
-
- Enable SSL certificate monitoring for HTTPS endpoints
332
-
</Accordion>
333
-
334
-
<Accordiontitle="Setup and Teardown Scripts">
335
-
- Keep scripts focused and lightweight
336
-
- Use setup scripts for common test data preparation
337
-
- Use teardown scripts for cleanup and logging
338
-
- Test scripts thoroughly before deployment
339
-
</Accordion>
340
-
341
-
</AccordionGroup>
11
+
Create a new [check group](/platform/groups) to organize related checks and apply shared settings. Check groups help you manage multiple checks efficiently by providing common configuration, environment variables, and alert channels.
342
12
343
13
<Note>
344
-
After creating a check group, you can add checks to it and they will inherit the group's default settings. You can always override group settings at the individual check level when needed.
345
-
</Note>
14
+
You can add checks to a group by setting the "groupId" property of individual checks.
15
+
</Note>
16
+
17
+
<Warning>
18
+
Groups created with this endpoint will always override its member check settings (i.e. location, alerting, etc.). We recommend using the [V2 endpoint](/api-reference/check-groups/create/) instead for more flexibility.
Copy file name to clipboardExpand all lines: api-reference/check-groups/create.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,5 +7,8 @@ sidebarTitle: 'Create'
7
7
8
8
## Overview
9
9
10
-
Create a new check group to organize related checks and apply shared settings. Check groups help you manage multiple checks efficiently by providing common configuration, environment variables, and alert channels.
10
+
Create a new [check group](/platform/groups) to organize related checks and apply shared settings. Check groups help you manage multiple checks efficiently by providing common configuration, environment variables, and alert channels.
11
11
12
+
<Note>
13
+
You can add checks to a group by setting the `groupId` property of individual checks.
Copy file name to clipboardExpand all lines: api-reference/check-groups/delete-v1.mdx
+4-14Lines changed: 4 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,8 @@ sidebarTitle: 'Delete'
7
7
8
8
## Overview
9
9
10
-
The Delete Check Group endpoint permanently removes a check group from your account. This action deletes the group but preserves individual checks, which become ungrouped.
10
+
The Delete Check Group endpoint permanently removes a [check group](/platform/groups).
11
11
12
-
**Common Use Cases**:
13
-
- Group Cleanup
14
-
- Organization Restructuring
15
-
- Resource Management
16
-
- Group Decommissioning
17
-
18
-
<Warning>
19
-
Deleting check groups is permanent. Member checks will become ungrouped but remain active. Group-specific settings and configurations will be lost.
20
-
</Warning>
21
-
22
-
<Note>
23
-
Individual checks are preserved when deleting groups. Consider reassigning checks to other groups before deletion if group organization is important.
24
-
</Note>
12
+
<Danger>
13
+
All checks within the group will also be deleted. This action is permanent and irreversible.
0 commit comments