1.1.0 • Published 2 years ago

@bgcbrasil/usage-notifier-rds-plugin v1.1.0

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
2 years ago

bgc-usage-notifier-rds-plugin

Install

Install the module as a dependency

npm i @bgcbrasil/usage-notifier-rds-plugin

Use

Add @bgcbrasil/usage-notifier-rds-plugin to your plugins list on serverless.yml

plugins:
  - '@bgcbrasil/usage-notifier-rds-plugin'
  - ...
  - ...

Add following variables to custom params:

provider:
	environment:
		stage: dev

custom:
	stage: dev #required
	usageNotifierWebhookUrl:
		dev: https://google.com
		staging: https://google.com
		production: https://google.com
	usageNotifierRds:
		modelPath: Models  # path defined through aliases
		period: 1 day  # '1 day', '7 days' or '30 days'
		webhookUrl: ${self:custom.usageNotifierWebhookUrl.${self:custom.stage}}  # discord url to be notified
		useOnDev: true  # to use the plugin on dev environment
		useOnStaging: false  # to use the plugin on staging environment
		models:
			- searches:
				name: Search # model name
				requesterFilter: principalGroup # 'principalGroup' or 'clientId'
				description: All Searches # optional
				extraFilters: # optional
					status: done
			- candidates:
				name: Candidates
				requesterFilter: clientId
				description: Candidates

Observations

  • If you use webpack, you must forceInclude the module
1.1.0

2 years ago

1.1.0-beta.1

2 years ago

1.1.0-dev.2

2 years ago

1.1.0-dev.1

2 years ago

1.0.0

2 years ago

1.0.0-dev.5

2 years ago

1.0.0-dev.4

2 years ago

1.0.0-dev.3

2 years ago

1.0.0-dev.2

2 years ago