Class CloudwatchServiceImpl

  • All Implemented Interfaces:
    EventListener, CloudwatchService, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    @Component
    public class CloudwatchServiceImpl
    extends Object
    implements CloudwatchService, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    • Field Detail

      • _log

        protected static final org.slf4j.Logger _log
    • Constructor Detail

      • CloudwatchServiceImpl

        public CloudwatchServiceImpl()
    • Method Detail

      • setup

        public void setup()
      • publishMetrics

        public void publishMetrics​(List<com.amazonaws.services.cloudwatch.model.MetricDatum> data)
        Specified by:
        publishMetrics in interface CloudwatchService
      • publishAlarm

        public void publishAlarm​(com.amazonaws.services.cloudwatch.model.PutMetricAlarmRequest putMetricAlarmRequest)
        Specified by:
        publishAlarm in interface CloudwatchService
      • onApplicationEvent

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