Class PipelineElapsedTimeMetricPolicy


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

      • PipelineElapsedTimeMetricPolicy

        public PipelineElapsedTimeMetricPolicy()
    • Method Detail

      • 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.