INNER CODE UNIT · JavaScript

alarmStatements

ACloudGuru/serverless-plugin-aws-alerts · src/index.js:422

      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…