-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check-ins configuration api (#1241)
- Loading branch information
Showing
28 changed files
with
1,816 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/js/examples/checkins-manager/honeybadger.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
personalAuthToken: process.env.HONEYBADGER_PERSONAL_AUTH_TOKEN, | ||
checkins: [ | ||
{ | ||
name: 'Weekly Exports', | ||
slug: 'weekly-exports-custom-slug', | ||
projectId: process.env.HONEYBADGER_PROJECT_ID, | ||
scheduleType: 'simple', | ||
reportPeriod: '1 week', | ||
gracePeriod: '10 minutes' | ||
}, | ||
{ | ||
name: 'Hourly Notifications', | ||
projectId: process.env.HONEYBADGER_PROJECT_ID, | ||
scheduleType: 'simple', | ||
reportPeriod: '1 hour', | ||
gracePeriod: '5 minutes' | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Honeybadger from '@honeybadger-io/js' | ||
|
||
console.log('Hello from checkins-manager') | ||
console.log(Honeybadger.config) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "checkins-manager", | ||
"version": "1.0.0", | ||
"description": "an example that demonstrates checkins configuration api", | ||
"main": "index.mjs", | ||
"scripts": { | ||
"start": "node index.mjs", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"@honeybadger-io/js": "file:../.." | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
Oops, something went wrong.