Share via


ArmConsumptionModelFactory.ConsumptionReservationSummary Method

Definition

Initializes a new instance of ConsumptionReservationSummary.

public static Azure.ResourceManager.Consumption.Models.ConsumptionReservationSummary ConsumptionReservationSummary (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string reservationOrderId = default, string reservationId = default, string skuName = default, decimal? reservedHours = default, DateTimeOffset? useOn = default, decimal? usedHours = default, decimal? minUtilizationPercentage = default, decimal? avgUtilizationPercentage = default, decimal? maxUtilizationPercentage = default, string kind = default, decimal? purchasedQuantity = default, decimal? remainingQuantity = default, decimal? totalReservedQuantity = default, decimal? usedQuantity = default, decimal? utilizedPercentage = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default);
static member ConsumptionReservationSummary : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * Nullable<decimal> * Nullable<DateTimeOffset> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * string * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Consumption.Models.ConsumptionReservationSummary
Public Shared Function ConsumptionReservationSummary (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional reservationOrderId As String = Nothing, Optional reservationId As String = Nothing, Optional skuName As String = Nothing, Optional reservedHours As Nullable(Of Decimal) = Nothing, Optional useOn As Nullable(Of DateTimeOffset) = Nothing, Optional usedHours As Nullable(Of Decimal) = Nothing, Optional minUtilizationPercentage As Nullable(Of Decimal) = Nothing, Optional avgUtilizationPercentage As Nullable(Of Decimal) = Nothing, Optional maxUtilizationPercentage As Nullable(Of Decimal) = Nothing, Optional kind As String = Nothing, Optional purchasedQuantity As Nullable(Of Decimal) = Nothing, Optional remainingQuantity As Nullable(Of Decimal) = Nothing, Optional totalReservedQuantity As Nullable(Of Decimal) = Nothing, Optional usedQuantity As Nullable(Of Decimal) = Nothing, Optional utilizedPercentage As Nullable(Of Decimal) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing) As ConsumptionReservationSummary

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

reservationOrderId
String

The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.

reservationId
String

The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.

skuName
String

This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.

reservedHours
Nullable<Decimal>

This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.

useOn
Nullable<DateTimeOffset>

Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month.

usedHours
Nullable<Decimal>

Total used hours by the reservation.

minUtilizationPercentage
Nullable<Decimal>

This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day.

avgUtilizationPercentage
Nullable<Decimal>

This is average utilization for the entire time range. (day or month depending on the grain).

maxUtilizationPercentage
Nullable<Decimal>

This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day.

kind
String

The reservation kind.

purchasedQuantity
Nullable<Decimal>

This is the purchased quantity for the reservationId.

remainingQuantity
Nullable<Decimal>

This is the remaining quantity for the reservationId.

totalReservedQuantity
Nullable<Decimal>

This is the total count of instances that are reserved for the reservationId.

usedQuantity
Nullable<Decimal>

This is the used quantity for the reservationId.

utilizedPercentage
Nullable<Decimal>

This is the utilized percentage for the reservation Id.

etag
Nullable<ETag>

The etag for the resource.

tags
IReadOnlyDictionary<String,String>

Resource tags.

Returns

A new ConsumptionReservationSummary instance for mocking.

Applies to