Skip to content

Commit

Permalink
feat: add runParallel prop to CLI & TF docs [sc-00] (#953)
Browse files Browse the repository at this point in the history
* feat: add runParallel prop to CLI & TF docs [sc-00]

* feat: rename TF prop
  • Loading branch information
maxigimenez authored Dec 15, 2023
1 parent 485a0e4 commit ec57c43
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
32 changes: 17 additions & 15 deletions site/content/docs/cli/constructs-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,22 @@ The CLI currently supports four Check types: API, Browser, Heartbeat and Multist

These Check types share properties derived from the abstract class `Check`.

| Property | Description | Supported in |
|--------------------|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| `name` | A friendly name for your Check. | `API`, `Browser`, `Heartbeat` |
| `frequency` | How often to run your Check in minutes, i.e. `Frequency.EVERY_1H` for every hour. | `API`, `Browser` |
| `locations` | An array of location codes where to run your Checks, i.e. `['us-east-1', 'eu-west-1']`. | `API`, `Browser` |
| `privateLocations` | an array of [Private Locations](https://www.checklyhq.com/docs/private-locations/) slugs, i.e. `['datacenter-east-1']`. | `API`, `Browser` |
| `activated` | A boolean value if your Check is activated or not. | `API`, `Browser`, `Heartbeat` |
| `muted` | A boolean value if alert notifications from your Check are muted, i.e. not sent out. | `API`, `Browser`, `Heartbeat` |
| `group` | The `CheckGroup` object that this check is part of. | `API`, `Browser` |
| `alertChannels` | An array of `AlertChannel` objects to which to send alert notifications. | `API`, `Browser`, `Heartbeat` |
| `tags` | An array of tags to help you organize your Checks, i.e. `['product', 'api']`. | `API`, `Browser`, `Heartbeat` |
| `runtimeId` | The ID of which [runtime](https://www.checklyhq.com/docs/runtimes/specs/) to use for this Check. | `API`, `Browser` |
| `testOnly` | A boolean determining if the Check is available only when `test` runs and not included when `deploy` is executed. | `API`, `Browser` |
| `retryStrategy` | A [RetryStrategy](#retrystrategy) object configuring [retries](/docs/alerting-and-retries/) for failed check runs. | `API`, `Browser` |
| `doubleCheck` | (deprecated) A boolean value if Checkly should double check on failure. This option is deprecated in favor of `retryStrategy`. | `API`, `Browser` |
| Property | Description | Supported in |
|--------------------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| `name` | A friendly name for your Check. | `API`, `Browser`, `Heartbeat`, `Multistep` |
| `frequency` | How often to run your Check in minutes, i.e. `Frequency.EVERY_1H` for every hour. | `API`, `Browser`, `Multistep` |
| `locations` | An array of location codes where to run your Checks, i.e. `['us-east-1', 'eu-west-1']`. | `API`, `Browser`, `Multistep` |
| `privateLocations` | an array of [Private Locations](https://www.checklyhq.com/docs/private-locations/) slugs, i.e. `['datacenter-east-1']`. | `API`, `Browser`, `Multistep` |
| `activated` | A boolean value if your Check is activated or not. | `API`, `Browser`, `Heartbeat`, `Multistep` |
| `muted` | A boolean value if alert notifications from your Check are muted, i.e. not sent out. | `API`, `Browser`, `Heartbeat`, `Multistep` |
| `group` | The `CheckGroup` object that this check is part of. | `API`, `Browser`, `Multistep` |
| `alertChannels` | An array of `AlertChannel` objects to which to send alert notifications. | `API`, `Browser`, `Heartbeat`, `Multistep` |
| `tags` | An array of tags to help you organize your Checks, i.e. `['product', 'api']`. | `API`, `Browser`, `Heartbeat`, `Multistep` |
| `runtimeId` | The ID of which [runtime](https://www.checklyhq.com/docs/runtimes/specs/) to use for this Check. | `API`, `Browser`, `Multistep` |
| `testOnly` | A boolean determining if the Check is available only when `test` runs and not included when `deploy` is executed. | `API`, `Browser`, `Multistep` |
| `retryStrategy` | A [RetryStrategy](#retrystrategy) object configuring [retries](/docs/alerting-and-retries/) for failed check runs. | `API`, `Browser`, `Multistep` |
| `runParallel` | A boolean value if check should run in parallel (all locations at the same time) or round-robin. | `API`, `Browser`, `Multistep` |
| `doubleCheck` | (deprecated) A boolean value if Checkly should double check on failure. This option is deprecated in favor of `retryStrategy`. | `API`, `Browser`, `Multistep` |

> Note that most properties have sane default values and do not need to be specified.
Expand Down Expand Up @@ -361,6 +362,7 @@ new ApiCheck('check-group-api-check-1', {
- `retryStrategy`: A [RetryStrategy](#retrystrategy) object configuring [retries](/docs/alerting-and-retries/) for failed check runs.
- `apiCheckDefaults`: A set of defaults for API Checks. This should not be needed. Just compose shared defaults using JS/TS.
- `browserChecks`: A set of defaults for Browser Checks. This should not be needed. Just compose shared defaults using JS/TS.
- `runParallel`: A boolean value if check should run in parallel (all locations at the same time) or round-robin.

> When adding checks to a group using `testMatch`, the CLI searches for files using the corresponding [check file](/docs/cli/using-check-test-match/#checkscheckmatch) as a base path.
Expand Down
4 changes: 4 additions & 0 deletions site/content/docs/terraform-provider/checks-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "checkly_check" "e2e-login" {
double_check = true // Whether the check should be run once more on failure
ssl_check = true // Whether your SSL cert for the given domain should be checked too
use_global_alert_settings = true // Whether to use account level alert setting instead of the alert setting defined on this check
run_parallel = true // Whether the check would run in a single location at time (round-robin) or all locations on each run
locations = [ // Which locations the check should run from (if not in a group)
"us-west-1",
Expand Down Expand Up @@ -89,6 +90,7 @@ resource "checkly_check" "get-books" {
double_check = true // Whether the check should be run once more on failure
ssl_check = true // Whether your SSL cert for the given domain should be checked too
use_global_alert_settings = true // Whether to use account level alert setting instead of the alert setting defined on this check
run_parallel = true // Whether the check would run in a single location at time (round-robin) or all locations on each run
locations = [ // Which locations the check should run from (if not in a group)
"us-west-1",
Expand Down Expand Up @@ -181,6 +183,8 @@ resource "checkly_check_group" "key-shop-flows" {
concurrency = 3 // How many checks to run at once when triggering the group using CI/CD triggers
double_check = true // Whether to re-run a failed check from a different location
use_global_alert_settings = false // Whether to use global alert settings or group-specific ones
run_parallel = true // Whether the check would run in a single location at time (round-robin) or all locations on each run
}
```

Expand Down

1 comment on commit ec57c43

@vercel
Copy link

@vercel vercel bot commented on ec57c43 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.