-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDE-4295 Add docs for throttle configuration
- Loading branch information
Showing
5 changed files
with
239 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const App = { | ||
version: require('./package.json').version, | ||
platformVersion: require('zapier-platform-core').version, | ||
|
||
// default throttle used for each action | ||
throttle: { | ||
window: 600, | ||
limit: 50, | ||
scope: ['account'], | ||
}, | ||
|
||
creates: { | ||
upload_video: { | ||
noun: 'Video', | ||
display: { | ||
label: 'Upload Video', | ||
description: 'Upload a video.', | ||
}, | ||
operation: { | ||
perform: () => {}, | ||
inputFields: [], | ||
// overwrites the default, for this action | ||
throttle: { | ||
window: 600, | ||
limit: 5, | ||
scope: ['account'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = App; |