// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.DataFactory.Models
{
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// Pipeline ElapsedTime Metric Policy.
    /// </summary>
    public partial class PipelineElapsedTimeMetricPolicy
    {
        /// <summary>
        /// Initializes a new instance of the PipelineElapsedTimeMetricPolicy
        /// class.
        /// </summary>
        public PipelineElapsedTimeMetricPolicy()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the PipelineElapsedTimeMetricPolicy
        /// class.
        /// </summary>
        /// <param name="duration">TimeSpan value, after which an Azure
        /// Monitoring Metric is fired.</param>
        public PipelineElapsedTimeMetricPolicy(object duration = default(object))
        {
            Duration = duration;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets timeSpan value, after which an Azure Monitoring Metric
        /// is fired.
        /// </summary>
        [JsonProperty(PropertyName = "duration")]
        public object Duration { get; set; }

    }
}
