/// <summary> /// Initializes a new instance of the Metrics class. /// </summary> /// <param name="resourceId">The ID of metric source.</param> /// <param name="startTime">The start time of the metric data.</param> /// <param name="endTime">The end time of the metric data.</param> /// <param name="timeGrain">The time granularity of the metric /// data.</param> /// <param name="primaryAggregation">The metric aggregation type. /// Possible values include: 'Average', 'Last', 'Maximum', 'Minimum', /// 'None', 'Total'</param> /// <param name="name">The name of the metric.</param> /// <param name="dimensions">The metric dimensions.</param> /// <param name="unit">The unit of the metric data. Possible values /// include: 'Bytes', 'BytesPerSecond', 'Count', 'CountPerSecond', /// 'Percent', 'Seconds'</param> /// <param name="type">The type of the metric data.</param> /// <param name="values">The list of the metric data.</param> public Metrics(string resourceId = default(string), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), string timeGrain = default(string), MetricAggregationType?primaryAggregation = default(MetricAggregationType?), MetricName name = default(MetricName), IList <MetricDimension> dimensions = default(IList <MetricDimension>), MetricUnit?unit = default(MetricUnit?), string type = default(string), IList <MetricData> values = default(IList <MetricData>)) { ResourceId = resourceId; StartTime = startTime; EndTime = endTime; TimeGrain = timeGrain; PrimaryAggregation = primaryAggregation; Name = name; Dimensions = dimensions; Unit = unit; Type = type; Values = values; }