Class CloudwatchEventMonitor

    • Method Detail

      • pushMetric

        protected void pushMetric​(ChangeEvent event)
        We want to control the lifecycle of an Ingestion Pipeline. We will push metrics for: 1. eventType "entityCreated": log when a pipeline was first created. Push the FQN and timestamp 2. eventType "entityUpdated": log when there is a `pipelineStatus` change with the status type 3. eventType "entityDeleted": log when an ingestionPipeline is removed
        Specified by:
        pushMetric in class EventMonitor
      • buildMetricRequest

        protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest> buildMetricRequest​(ChangeEvent event)
      • logPipelineCreated

        protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineCreated​(String fqn,
                                                                                                           String pipelineType,
                                                                                                           Long timestamp)
      • logPipelineDeleted

        protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineDeleted​(String fqn,
                                                                                                           String pipelineType,
                                                                                                           Long timestamp)
      • logPipelineUpdated

        protected List<software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest> logPipelineUpdated​(String fqn,
                                                                                                                 String pipelineType,
                                                                                                                 Long timestamp,
                                                                                                                 ChangeDescription changeDescription)
      • logPipelineStatus

        protected software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest logPipelineStatus​(String fqn,
                                                                                                          String pipelineType,
                                                                                                          Long timestamp,
                                                                                                          String metricName)