-
Notifications
You must be signed in to change notification settings - Fork 20
Update checkly rules and TS Docs reference docs #1179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
40d0bae
ad07889
bdae244
8e42823
8544b9e
16a7584
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,66 +136,8 @@ export interface ApiCheckProps extends RuntimeCheckProps { | |
| * }) | ||
| * ``` | ||
| * | ||
| * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation} | ||
| */ | ||
| /** | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This entire section was a duplicate of the above. |
||
| * Creates an API Check to monitor HTTP endpoints and APIs. | ||
| * | ||
| * API checks allow you to monitor REST APIs, GraphQL endpoints, and any HTTP-based service. | ||
| * You can validate response status codes, response times, headers, and response body content. | ||
| * | ||
| * @example | ||
| * ```typescript | ||
| * // Basic API check | ||
| * new ApiCheck('hello-api', { | ||
| * name: 'Hello API', | ||
| * request: { | ||
| * method: 'GET', | ||
| * url: 'https://api.example.com/hello', | ||
| * assertions: [ | ||
| * AssertionBuilder.statusCode().equals(200) | ||
| * ] | ||
| * } | ||
| * }) | ||
| * | ||
| * // Advanced API check with POST request | ||
| * new ApiCheck('user-api', { | ||
| * name: 'User API Check', | ||
| * frequency: Frequency.EVERY_5M, | ||
| * locations: ['us-east-1', 'eu-west-1'], | ||
| * request: { | ||
| * method: 'POST', | ||
| * url: 'https://api.example.com/users', | ||
| * headers: [{ key: 'Content-Type', value: 'application/json' }], | ||
| * body: JSON.stringify({ name: 'test-user' }), | ||
| * bodyType: 'JSON', | ||
| * assertions: [ | ||
| * AssertionBuilder.statusCode().equals(201), | ||
| * AssertionBuilder.jsonBody('$.id').isNotNull(), | ||
| * AssertionBuilder.responseTime().lessThan(1000) | ||
| * ] | ||
| * }, | ||
| * maxResponseTime: 5000, | ||
| * degradedResponseTime: 2000 | ||
| * }) | ||
| * | ||
| * // Error validation check (shouldFail required for error status checks) | ||
| * new ApiCheck('not-found-check', { | ||
| * name: 'Not Found Check', | ||
| * shouldFail: true, | ||
| * request: { | ||
| * method: 'GET', | ||
| * url: 'https://api.example.com/nonexistent', | ||
| * assertions: [ | ||
| * AssertionBuilder.statusCode().equals(404) | ||
| * ] | ||
| * } | ||
| * }) | ||
| * ``` | ||
| * | ||
| * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation} | ||
| * @see {@link https://www.checklyhq.com/docs/constructs/api-check/ | ApiCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/ | API Checks Documentation} | ||
| */ | ||
| export class ApiCheck extends RuntimeCheck { | ||
| readonly request: Request | ||
|
|
@@ -212,7 +154,7 @@ export class ApiCheck extends RuntimeCheck { | |
| * @param logicalId unique project-scoped resource name identification | ||
| * @param props check configuration properties | ||
| * | ||
| * {@link https://checklyhq.com/docs/cli/constructs-reference/#apicheck Read more in the docs} | ||
| * {@link https://www.checklyhq.com/docs/constructs/api-check/ Read more in the docs} | ||
| */ | ||
|
|
||
| constructor (logicalId: string, props: ApiCheckProps) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,8 @@ export interface OpsgenieAlertChannelProps extends AlertChannelProps { | |
| name: string | ||
| /** | ||
| * An API key for your Opsgenie account. See our | ||
| * {@link https://www.checklyhq.com/docs/integrations/opsgenie/ docs} on where to create this API key | ||
| * {@link https://www.checklyhq.com/docs/integrations/incident-management/opsgenie/ | ||
| * docs on where to create this API key} | ||
|
||
| */ | ||
| apiKey: string | ||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,8 +28,8 @@ export class PhoneCallAlertChannel extends AlertChannel { | |
| * @param logicalId unique project-scoped resource name identification | ||
| * @param props Phone Call alert channel configuration properties | ||
| * | ||
| * {@link https://checklyhq.com/docs/cli/constructs-reference/#phonecallalertchannel Read more in the docs} | ||
| * {@link https://checklyhq.com/docs/alerting/phone-calls/#supported-countries-and-regions | ||
| * {@link https://www.checklyhq.com/docs/constructs/phone-call-alert-channel/ Read more in the docs} | ||
| * {@link https://www.checklyhq.com/docs/integrations/alerts/phone-calls/#supported-countries-and-regions | ||
| * List of supported countries} | ||
|
||
| */ | ||
| constructor (logicalId: string, props: PhoneCallAlertChannelProps) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,8 +119,9 @@ export interface PlaywrightCheckProps extends Omit<RuntimeCheckProps, 'retryStra | |
| * }) | ||
| * ``` | ||
| * | ||
| * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#playwrightcheck | PlaywrightCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/playwright-checks/ | Playwright Checks Documentation} | ||
| * @see {@link https://www.checklyhq.com/docs/constructs/playwright-check/ | PlaywrightCheck API Reference} | ||
| * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/overview/ | ||
| * Playwright Checks Documentation} | ||
|
||
| * @see {@link https://playwright.dev/ | Playwright Documentation} | ||
| */ | ||
| export class PlaywrightCheck extends RuntimeCheck { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no general
alertChannelconstruct docs page anymore.