Пример #1
0
 /// <summary>
 /// Initializes a new instance of the ResourceMetric class.
 /// </summary>
 public ResourceMetric(ResourceMetricName name = default(ResourceMetricName), string unit = default(string), string timeGrain = default(string), DateTime?startTime = default(DateTime?), DateTime?endTime = default(DateTime?), string resourceId = default(string), IList <ResourceMetricValue> metricValues = default(IList <ResourceMetricValue>), IList <KeyValuePairStringString> properties = default(IList <KeyValuePairStringString>))
 {
     Name         = name;
     Unit         = unit;
     TimeGrain    = timeGrain;
     StartTime    = startTime;
     EndTime      = endTime;
     ResourceId   = resourceId;
     MetricValues = metricValues;
     Properties   = properties;
 }
 /// <summary>
 /// Initializes a new instance of the ResourceMetric class.
 /// </summary>
 /// <param name="name">Name of metric.</param>
 /// <param name="unit">Metric unit.</param>
 /// <param name="timeGrain">Metric granularity. E.g PT1H, PT5M,
 /// P1D</param>
 /// <param name="startTime">Metric start time.</param>
 /// <param name="endTime">Metric end time.</param>
 /// <param name="resourceId">Metric resource Id.</param>
 /// <param name="id">Resource Id.</param>
 /// <param name="metricValues">Metric values.</param>
 /// <param name="properties">Resource metric properties
 /// collection.</param>
 public ResourceMetric(ResourceMetricName name = default(ResourceMetricName), string unit = default(string), string timeGrain = default(string), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), string resourceId = default(string), string id = default(string), IList <ResourceMetricValue> metricValues = default(IList <ResourceMetricValue>), IList <ResourceMetricProperty> properties = default(IList <ResourceMetricProperty>))
 {
     Name         = name;
     Unit         = unit;
     TimeGrain    = timeGrain;
     StartTime    = startTime;
     EndTime      = endTime;
     ResourceId   = resourceId;
     Id           = id;
     MetricValues = metricValues;
     Properties   = properties;
     CustomInit();
 }