Class PipelineElapsedTimeMetricPolicy
java.lang.Object
com.azure.resourcemanager.datafactory.models.PipelineElapsedTimeMetricPolicy
Pipeline ElapsedTime Metric Policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PipelineElapsedTimeMetricPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionduration()
Get the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired.void
validate()
Validates the instance.withDuration
(Object duration) Set the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired.
-
Constructor Details
-
PipelineElapsedTimeMetricPolicy
public PipelineElapsedTimeMetricPolicy()Creates an instance of PipelineElapsedTimeMetricPolicy class.
-
-
Method Details
-
duration
Get the duration property: TimeSpan value, after which an Azure Monitoring Metric is fired.- Returns:
- the duration value.
-
withDuration
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.
-