/// <summary> /// Initializes a new instance of the Metrics class. /// </summary> /// <param name="resourceId">The id of metric source</param> /// <param name="startTime">The metric start time</param> /// <param name="endTime">The metric end time</param> /// <param name="timeGrain">The time grain, time grain indicates /// frequency 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 metrics</param> /// <param name="dimensions">The Metric dimension which indicates the /// source of the metric</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 metric data</param> public Metrics(string resourceId, System.DateTime startTime, System.DateTime endTime, string timeGrain, MetricAggregationType primaryAggregation, MetricName name, IList <MetricDimension> dimensions, MetricUnit unit, string type, IList <MetricData> values) { ResourceId = resourceId; StartTime = startTime; EndTime = endTime; TimeGrain = timeGrain; PrimaryAggregation = primaryAggregation; Name = name; Dimensions = dimensions; Unit = unit; Type = type; Values = values; CustomInit(); }