ArmCostManagementModelFactory.BenefitRecommendationProperties 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 BenefitRecommendationProperties.
public static Azure.ResourceManager.CostManagement.Models.BenefitRecommendationProperties BenefitRecommendationProperties (DateTimeOffset? firstConsumptionOn = default, DateTimeOffset? lastConsumptionOn = default, Azure.ResourceManager.CostManagement.Models.LookBackPeriod? lookBackPeriod = default, int? totalHours = default, Azure.ResourceManager.CostManagement.Models.RecommendationUsageDetails usage = default, string armSkuName = default, Azure.ResourceManager.CostManagement.Models.BenefitRecommendationPeriodTerm? term = default, Azure.ResourceManager.CostManagement.Models.BenefitRecommendationUsageGrain? commitmentGranularity = default, string currencyCode = default, decimal? costWithoutBenefit = default, Azure.ResourceManager.CostManagement.Models.AllSavingsBenefitDetails recommendationDetails = default, Azure.ResourceManager.CostManagement.Models.AllSavingsList allRecommendationDetails = default, string scope = "Unknown");
static member BenefitRecommendationProperties : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.CostManagement.Models.LookBackPeriod> * Nullable<int> * Azure.ResourceManager.CostManagement.Models.RecommendationUsageDetails * string * Nullable<Azure.ResourceManager.CostManagement.Models.BenefitRecommendationPeriodTerm> * Nullable<Azure.ResourceManager.CostManagement.Models.BenefitRecommendationUsageGrain> * string * Nullable<decimal> * Azure.ResourceManager.CostManagement.Models.AllSavingsBenefitDetails * Azure.ResourceManager.CostManagement.Models.AllSavingsList * string -> Azure.ResourceManager.CostManagement.Models.BenefitRecommendationProperties
Public Shared Function BenefitRecommendationProperties (Optional firstConsumptionOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastConsumptionOn As Nullable(Of DateTimeOffset) = Nothing, Optional lookBackPeriod As Nullable(Of LookBackPeriod) = Nothing, Optional totalHours As Nullable(Of Integer) = Nothing, Optional usage As RecommendationUsageDetails = Nothing, Optional armSkuName As String = Nothing, Optional term As Nullable(Of BenefitRecommendationPeriodTerm) = Nothing, Optional commitmentGranularity As Nullable(Of BenefitRecommendationUsageGrain) = Nothing, Optional currencyCode As String = Nothing, Optional costWithoutBenefit As Nullable(Of Decimal) = Nothing, Optional recommendationDetails As AllSavingsBenefitDetails = Nothing, Optional allRecommendationDetails As AllSavingsList = Nothing, Optional scope As String = "Unknown") As BenefitRecommendationProperties
Parameters
- firstConsumptionOn
- Nullable<DateTimeOffset>
The first usage date used for looking back for computing the recommendations.
- lastConsumptionOn
- Nullable<DateTimeOffset>
The last usage date used for looking back for computing the recommendations.
- lookBackPeriod
- Nullable<LookBackPeriod>
The number of days of usage evaluated for computing the recommendations.
The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'.
On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations.
- armSkuName
- String
ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan.
Term period of the benefit. For example, P1Y or P3Y.
- commitmentGranularity
- Nullable<BenefitRecommendationUsageGrain>
Grain of the proposed commitment amount. Supported values: 'Hourly'.
- currencyCode
- String
An ISO 4217 currency code identifier for the costs and savings amounts.
The current cost without benefit, corresponds to 'totalHours' in the look-back period.
- recommendationDetails
- AllSavingsBenefitDetails
The details of the proposed recommendation.
- allRecommendationDetails
- AllSavingsList
The list of all benefit recommendations with the recommendation details.
- scope
- String
Benefit scope. For example, Single or Shared.
Returns
A new BenefitRecommendationProperties instance for mocking.
Applies to
Azure SDK for .NET