/// <summary> /// Initializes a new instance of the Metric class. /// </summary> /// <param name="name">The metric name.</param> /// <param name="displayName">The metric display name.</param> /// <param name="displayDescription">The metric display /// description.</param> /// <param name="unit">The metric unit. Possible values include: /// 'Bytes', 'Count', 'Milliseconds'</param> /// <param name="aggregationType">The metric aggregation type. Possible /// values include: 'Average', 'Count', 'Total'</param> /// <param name="dimensions">The metric dimensions.</param> public Metric(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), IList <MetricDimension> dimensions = default(IList <MetricDimension>)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; Dimensions = dimensions; CustomInit(); }
/// <summary> /// Initializes a new instance of the MetricSpecification class. /// </summary> /// <param name="name">The metric name.</param> /// <param name="displayName">The metric display name.</param> /// <param name="displayDescription">The metric display /// description.</param> /// <param name="unit">The metric unit. Possible values include: /// 'Bytes', 'Count', 'Milliseconds'</param> /// <param name="aggregationType">The metric aggregation type. Possible /// values include: 'Average', 'Count', 'Total'</param> /// <param name="supportedAggregationTypes">Supported aggregation /// types.</param> /// <param name="dimensions">The metric dimensions.</param> public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), IList <string> supportedAggregationTypes = default(IList <string>), IList <MetricDimension> dimensions = default(IList <MetricDimension>)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; SupportedAggregationTypes = supportedAggregationTypes; Dimensions = dimensions; CustomInit(); }
/// <summary> /// Initializes a new instance of the MetricSpecification class. /// </summary> /// <param name="name">The metric name.</param> /// <param name="displayName">The metric display name.</param> /// <param name="displayDescription">The metric display /// description.</param> /// <param name="unit">The metric unit. Possible values include: /// 'Bytes', 'Count', 'Milliseconds'</param> /// <param name="aggregationType">The metric aggregation type. Possible /// values include: 'Average', 'Count', 'Total'</param> /// <param name="lockAggregationType">The metric lock aggregation type. /// Possible values include: 'Average', 'Count', 'Total'</param> /// <param name="supportedAggregationTypes">Supported aggregation /// types.</param> /// <param name="dimensions">The metric dimensions.</param> /// <param name="enableRegionalMdmAccount">Indicates whether regional /// MDM account is enabled.</param> /// <param name="sourceMdmAccount">The source MDM account.</param> /// <param name="sourceMdmNamespace">The source MDM namespace.</param> /// <param name="supportedTimeGrainTypes">The supported time grain /// types.</param> public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), MetricAggregationType?lockAggregationType = default(MetricAggregationType?), IList <string> supportedAggregationTypes = default(IList <string>), IList <MetricDimension> dimensions = default(IList <MetricDimension>), bool enableRegionalMdmAccount = default(bool), string sourceMdmAccount = default(string), string sourceMdmNamespace = default(string), IList <string> supportedTimeGrainTypes = default(IList <string>)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; LockAggregationType = lockAggregationType; SupportedAggregationTypes = supportedAggregationTypes; Dimensions = dimensions; EnableRegionalMdmAccount = enableRegionalMdmAccount; SourceMdmAccount = sourceMdmAccount; SourceMdmNamespace = sourceMdmNamespace; SupportedTimeGrainTypes = supportedTimeGrainTypes; CustomInit(); }