Class CloudwatchEventMonitor

java.lang.Object
org.openmetadata.service.monitoring.EventMonitor
org.openmetadata.service.monitoring.CloudwatchEventMonitor

public class CloudwatchEventMonitor extends EventMonitor
  • Field Details

  • Constructor Details

  • Method Details

    • 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)
    • close

      protected void close()
      Specified by:
      close in class EventMonitor