ReservationRecommendationDetailsUsageProperties Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. ReservationRecommendationDetailsUsageProperties
- com.
Implements
public final class ReservationRecommendationDetailsUsageProperties
implements JsonSerializable<ReservationRecommendationDetailsUsageProperties>
Details about historical usage data that has been used for computing the recommendation.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationRecommendationDetailsUsageProperties() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
firstConsumptionDate()
Get the first |
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| String |
lastConsumptionDate()
Get the last |
| String |
lookBackUnitType()
Get the look |
|
Json |
toJson(JsonWriter jsonWriter) |
| List<Float> |
usageData()
Get the usage |
| String |
usageGrain()
Get the usage |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
ReservationRecommendationDetailsUsageProperties
public ReservationRecommendationDetailsUsageProperties()
Creates an instance of ReservationRecommendationDetailsUsageProperties class.
Method Details
firstConsumptionDate
public String firstConsumptionDate()
Get the firstConsumptionDate property: The first usage date used for looking back for computing the recommendation.
Returns:
fromJson
public static ReservationRecommendationDetailsUsageProperties fromJson(JsonReader jsonReader)
Reads an instance of ReservationRecommendationDetailsUsageProperties from the JsonReader.
Parameters:
Returns:
Throws:
lastConsumptionDate
public String lastConsumptionDate()
Get the lastConsumptionDate property: The last usage date used for looking back for computing the recommendation.
Returns:
lookBackUnitType
public String lookBackUnitType()
Get the lookBackUnitType property: What the usage data values represent ex: virtual machine instance.
Returns:
toJson
usageData
public List<Float> usageData()
Get the usageData property: The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate.
Returns:
usageGrain
public String usageGrain()
Get the usageGrain property: The grain of the values represented in the usage data ex: hourly.
Returns:
validate
public void validate()
Validates the instance.