Class AlarmsTemplate

    • Constructor Detail

      • AlarmsTemplate

        public AlarmsTemplate()
    • Method Detail

      • getEnv

        public String getEnv()
      • getSqsQueue

        public String getSqsQueue()
      • getCriticalAction

        public List<String> getCriticalAction()
      • getNonCriticalAction

        public List<String> getNonCriticalAction()
      • getMetricAlarmRequest

        protected com.amazonaws.services.cloudwatch.model.PutMetricAlarmRequest getMetricAlarmRequest​(MetricName metricName)
      • getRDSMetricAlarmRequest

        protected com.amazonaws.services.cloudwatch.model.PutMetricAlarmRequest getRDSMetricAlarmRequest​(MetricName metricName,
                                                                                                         String alarmName,
                                                                                                         String dbInstance)
      • getSQSMetricAlarmRequest

        protected com.amazonaws.services.cloudwatch.model.PutMetricAlarmRequest getSQSMetricAlarmRequest​(MetricName metricName,
                                                                                                         String sqsQueue)
      • getAlarmName

        protected String getAlarmName​(String metricName)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>