UsageAggregationInner Class
- java.
lang. Object - com.
azure. resourcemanager. commerce. fluent. models. UsageAggregationInner
- com.
Implements
public final class UsageAggregationInner
implements JsonSerializable<UsageAggregationInner>
Describes the usageAggregation.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Usage |
fromJson(JsonReader jsonReader)
Reads an instance of Usage |
| String |
id()
Get the id property: Unique Id for the usage aggregate. |
|
Binary |
infoFields()
Get the info |
| String |
instanceData()
Get the instance |
| String |
meterCategory()
Get the meter |
| String |
meterId()
Get the meter |
| String |
meterName()
Get the meter |
| String |
meterRegion()
Get the meter |
| String |
meterSubCategory()
Get the meter |
| String |
name()
Get the name property: Name of the usage aggregate. |
| Double |
quantity()
Get the quantity property: The amount of the resource consumption that occurred in this time frame. |
| String |
subscriptionId()
Get the subscription |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of the resource being returned. |
| String |
unit()
Get the unit property: The unit in which the usage for this resource is being counted, e. |
|
Offset |
usageEndTime()
Get the usage |
|
Offset |
usageStartTime()
Get the usage |
Methods inherited from java.lang.Object
Method Details
fromJson
public static UsageAggregationInner fromJson(JsonReader jsonReader)
Reads an instance of UsageAggregationInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Unique Id for the usage aggregate.
Returns:
infoFields
public BinaryData infoFields()
Get the infoFields property: Key-value pairs of instance details (legacy format).
Returns:
instanceData
public String instanceData()
Get the instanceData property: Key-value pairs of instance details represented as a string.
Returns:
meterCategory
public String meterCategory()
Get the meterCategory property: Category of the consumed resource.
Returns:
meterId
public String meterId()
Get the meterId property: Unique ID for the resource that was consumed (aka ResourceID).
Returns:
meterName
public String meterName()
Get the meterName property: Friendly name of the resource being consumed.
Returns:
meterRegion
public String meterRegion()
Get the meterRegion property: Region of the meterId used for billing purposes.
Returns:
meterSubCategory
public String meterSubCategory()
Get the meterSubCategory property: Sub-category of the consumed resource.
Returns:
name
public String name()
Get the name property: Name of the usage aggregate.
Returns:
quantity
public Double quantity()
Get the quantity property: The amount of the resource consumption that occurred in this time frame.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The subscription identifier for the Azure user.
Returns:
toJson
type
public String type()
Get the type property: Type of the resource being returned.
Returns:
unit
public String unit()
Get the unit property: The unit in which the usage for this resource is being counted, e.g. Hours, GB.
Returns:
usageEndTime
public OffsetDateTime usageEndTime()
Get the usageEndTime property: UTC end time for the usage bucket to which this usage aggregate belongs.
Returns:
usageStartTime
public OffsetDateTime usageStartTime()
Get the usageStartTime property: UTC start time for the usage bucket to which this usage aggregate belongs.
Returns: