Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the PartitionMetric 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 grain 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', 'Milliseconds'</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>
 /// <param name="partitionId">The parition id (GUID identifier) of the
 /// metric values.</param>
 /// <param name="partitionKeyRangeId">The partition key range id
 /// (integer identifier) of the metric values.</param>
 public PartitionMetric(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>), string partitionId = default(string), string partitionKeyRangeId = default(string))
     : base(startTime, endTime, timeGrain, unit, name, metricValues)
 {
     PartitionId         = partitionId;
     PartitionKeyRangeId = partitionKeyRangeId;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MetricDefinition class.
 /// </summary>
 /// <param name="metricAvailabilities">The list of metric
 /// availabilities for the account.</param>
 /// <param name="primaryAggregationType">The primary aggregation type
 /// of the metric. Possible values include: 'None', 'Average', 'Total',
 /// 'Minimimum', 'Maximum', 'Last'</param>
 /// <param name="unit">The unit of the metric. Possible values include:
 /// 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond',
 /// 'BytesPerSecond', 'Milliseconds'</param>
 /// <param name="resourceUri">The resource uri of the database.</param>
 /// <param name="name">The name information for the metric.</param>
 public MetricDefinition(IList <MetricAvailability> metricAvailabilities = default(IList <MetricAvailability>), string primaryAggregationType = default(string), string unit = default(string), string resourceUri = default(string), MetricName name = default(MetricName))
 {
     MetricAvailabilities   = metricAvailabilities;
     PrimaryAggregationType = primaryAggregationType;
     Unit        = unit;
     ResourceUri = resourceUri;
     Name        = name;
     CustomInit();
 }
Ejemplo n.º 3
0
 /// <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 grain 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', 'Milliseconds'</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();
 }