Example #1
0
 /// <summary>
 /// Initializes a new instance of the Usage class.
 /// </summary>
 /// <param name="unit">Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'</param>
 /// <param name="currentValue">Gets the current count of the allocated resources in the subscription.</param>
 /// <param name="limit">Gets the maximum count of the resources that can be allocated in the subscription.</param>
 /// <param name="name">Gets the name of the type of usage.</param>
 public Usage(UsageUnit unit, int currentValue, int limit, UsageName name)
 {
     Unit = unit;
     CurrentValue = currentValue;
     Limit = limit;
     Name = name;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the Usage class.
 /// </summary>
 /// <param name="unit">Gets the unit of measurement. Possible values
 /// include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
 /// 'BytesPerSecond'</param>
 /// <param name="currentValue">Gets the current count of the allocated
 /// resources in the subscription.</param>
 /// <param name="limit">Gets the maximum count of the resources that
 /// can be allocated in the subscription.</param>
 /// <param name="name">Gets the name of the type of usage.</param>
 public Usage(UsageUnit unit, int currentValue, int limit, UsageName name)
 {
     Unit         = unit;
     CurrentValue = currentValue;
     Limit        = limit;
     Name         = name;
 }