Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/oclif/plugin-plugins…
Browse files Browse the repository at this point in the history
…-4.1.12
  • Loading branch information
ferrandiaz authored Jan 19, 2024
2 parents 2e46ce8 + c5af9b2 commit 8c87000
Show file tree
Hide file tree
Showing 30 changed files with 977 additions and 60 deletions.
4 changes: 3 additions & 1 deletion examples/advanced-project/checkly.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'checkly'
import { RetryStrategyBuilder } from 'checkly/constructs'
import { AlertEscalationBuilder, RetryStrategyBuilder } from 'checkly/constructs'

/**
* See https://www.checklyhq.com/docs/cli/project-structure/
Expand Down Expand Up @@ -27,6 +27,8 @@ const config = defineConfig({
runtimeId: '2023.09',
/* Failed check runs will be retried before triggering alerts */
retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }),
/* All checks will have this alert escalation policy defined */
alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1),
/* A glob pattern that matches the Checks inside your repo, see https://www.checklyhq.com/docs/cli/using-check-test-match/ */
checkMatch: '**/__checks__/**/*.check.ts',
browserChecks: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CheckGroup, RetryStrategyBuilder } from 'checkly/constructs'
import { AlertEscalationBuilder, CheckGroup, RetryStrategyBuilder } from 'checkly/constructs'
import { smsChannel, emailChannel } from '../alert-channels'
const alertChannels = [smsChannel, emailChannel]
/*
Expand All @@ -24,6 +24,8 @@ export const websiteGroup = new CheckGroup('website-check-group-1', {
apiCheckDefaults: {},
concurrency: 100,
alertChannels,
/* All checks on this check group will have this alert escalation policy */
alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1),
/*
* Failed check runs in this group will be retried before triggering alerts.
* The wait time between retries will increase linearly: 30 seconds, 60 seconds, and then 90 seconds between the retries.
Expand Down
Loading

0 comments on commit 8c87000

Please sign in to comment.