ArmConsumptionModelFactory.ConsumptionUsageProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ConsumptionUsageProperties.
public static Azure.ResourceManager.Consumption.Models.ConsumptionUsageProperties ConsumptionUsageProperties (string firstConsumptionDate = default, string lastConsumptionDate = default, string lookBackUnitType = default, System.Collections.Generic.IEnumerable<float> usageData = default, string usageGrain = default);
static member ConsumptionUsageProperties : string * string * string * seq<single> * string -> Azure.ResourceManager.Consumption.Models.ConsumptionUsageProperties
Public Shared Function ConsumptionUsageProperties (Optional firstConsumptionDate As String = Nothing, Optional lastConsumptionDate As String = Nothing, Optional lookBackUnitType As String = Nothing, Optional usageData As IEnumerable(Of Single) = Nothing, Optional usageGrain As String = Nothing) As ConsumptionUsageProperties
Parameters
- firstConsumptionDate
- String
The first usage date used for looking back for computing the recommendation.
- lastConsumptionDate
- String
The last usage date used for looking back for computing the recommendation.
- lookBackUnitType
- String
What the usage data values represent ex: virtual machine instance.
- usageData
- IEnumerable<Single>
The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate.
- usageGrain
- String
The grain of the values represented in the usage data ex: hourly.
Returns
A new ConsumptionUsageProperties instance for mocking.