INNER CODE UNIT · JavaScript

AlertsPlugin

serverless/serverless · packages/serverless/lib/plugins/aws/alerts/index.js:8

class AlertsPlugin {
  constructor(serverless, options) {
    this.serverless = serverless
    this.options = options

    serverless.configSchemaHandler.defineFunctionProperties('aws', {
      properties: {
        alarms: {
          description: `CloudWatch alarm definitions to attach to this function via the alerts plugin.
@see https://www.serverless.com/framework/docs/providers/aws/guide/alerts
@example
alarms:
  - functionErrors
  - functionThrottles`,
          type: 'array',
        },
      },
    })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…