Share via


ConsumptionUsageProperties Class

Definition

Details about historical usage data that has been used for computing the recommendation.

public class ConsumptionUsageProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Consumption.Models.ConsumptionUsageProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Consumption.Models.ConsumptionUsageProperties>
type ConsumptionUsageProperties = class
    interface IJsonModel<ConsumptionUsageProperties>
    interface IPersistableModel<ConsumptionUsageProperties>
Public Class ConsumptionUsageProperties
Implements IJsonModel(Of ConsumptionUsageProperties), IPersistableModel(Of ConsumptionUsageProperties)
Inheritance
ConsumptionUsageProperties
Implements

Properties

FirstConsumptionDate

The first usage date used for looking back for computing the recommendation.

LastConsumptionDate

The last usage date used for looking back for computing the recommendation.

LookBackUnitType

What the usage data values represent ex: virtual machine instance.

UsageData

The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate.

UsageGrain

The grain of the values represented in the usage data ex: hourly.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ConsumptionUsageProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ConsumptionUsageProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ConsumptionUsageProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ConsumptionUsageProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ConsumptionUsageProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to