/// <summary> /// Initializes a new instance of the Metric class. /// </summary> /// <param name="startTime">The start time for the metric (ISO-8601 /// format).</param> /// <param name="endTime">The end time for the metric (ISO-8601 /// format).</param> /// <param name="timeGrain">The time step to be used to summarize the /// metric values.</param> /// <param name="unit">The unit of the metric. Possible values include: /// 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', /// 'bytesPerSecond'</param> /// <param name="name">The name information for the metric.</param> /// <param name="metricValues">The metric values for the specified time /// window and timestep.</param> public Metric(System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), string timeGrain = default(string), string unit = default(string), MetricName name = default(MetricName), IList <MetricValue> metricValues = default(IList <MetricValue>)) { StartTime = startTime; EndTime = endTime; TimeGrain = timeGrain; Unit = unit; Name = name; MetricValues = metricValues; CustomInit(); }