INNER CODE UNIT · JavaScript

alarmStatements

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

      const alarmStatements = alarms.reduce((statements, alarm) => {
        const key = this.naming.getAlarmCloudFormationRef(
          alarm.name,
          functionName,
        )
        if (alarm.enabled) {
          const cf = this.getAlarmCloudFormation(
            alertTopics,
            alarm,
            functionName,
            normalizedFunctionName,
          )

          statements[key] = cf

          const logMetricCF = this.getLogMetricCloudFormation(
            alarm,
            functionName,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…