Class PipelineElapsedTimeMetricPolicy

java.lang.Object
com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy

public final class PipelineElapsedTimeMetricPolicy extends Object
Pipeline ElapsedTime Metric Policy.
  • Constructor Details

    • PipelineElapsedTimeMetricPolicy

      public PipelineElapsedTimeMetricPolicy()
      Creates an instance of PipelineElapsedTimeMetricPolicy class.
  • Method Details

    • duration

      public Object duration()
      Get the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired.
      Returns:
      the duration value.
    • withDuration

      public PipelineElapsedTimeMetricPolicy withDuration(Object duration)
      Set the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired.
      Parameters:
      duration - the duration value to set.
      Returns:
      the PipelineElapsedTimeMetricPolicy object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.