ArmCostManagementModelFactory.SharedScopeBenefitRecommendationProperties Method

Definition

Initializes a new instance of SharedScopeBenefitRecommendationProperties.

public static Azure.ResourceManager.CostManagement.Models.SharedScopeBenefitRecommendationProperties SharedScopeBenefitRecommendationProperties (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);
static member SharedScopeBenefitRecommendationProperties : 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 -> Azure.ResourceManager.CostManagement.Models.SharedScopeBenefitRecommendationProperties
Public Shared Function SharedScopeBenefitRecommendationProperties (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) As SharedScopeBenefitRecommendationProperties

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.

totalHours
Nullable<Int32>

The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'.

usage
RecommendationUsageDetails

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
Nullable<BenefitRecommendationPeriodTerm>

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.

costWithoutBenefit
Nullable<Decimal>

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.

Returns

A new SharedScopeBenefitRecommendationProperties instance for mocking.

Applies to