Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
719 B
1
Indexable
Never
const firmCrmReportStack = new FirmCrmReportStack(
      this,
      "FirmCrmReportStack",
      {
        stage: this.stage,
        dbConfig: {
          auroraCredentialsArn: credentials.secretArn,
          auroraRdsArn: cluster.clusterArn,
          auroraDbName: this.rdsName,
          cluster,
        },
        faFirmReportConfig: this.generateFaFirmReportConfig,
      }
    );

    alarmStack?.createAlarmAndAssignToTopic("FirmCrmReportAlarm", {
      ...singleMetricThresholdAlarmProperties,
      alarmName: "FirmCrmReportAlarm",
      treatMissingData: cloudwatch.TreatMissingData.NOT_BREACHING,
      metric:
        firmCrmReportStack.deadLetterQueue.metricApproximateNumberOfMessagesVisible(),
    });