你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmConsumptionModelFactory.ConsumptionModernReservationRecommendation 方法

定义

初始化 ConsumptionModernReservationRecommendation 的新实例。

public static Azure.ResourceManager.Consumption.Models.ConsumptionModernReservationRecommendation ConsumptionModernReservationRecommendation (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, Azure.Core.AzureLocation? location = default, string sku = default, string locationPropertiesLocation = default, int? lookBackPeriod = default, float? instanceFlexibilityRatio = default, string instanceFlexibilityGroup = default, string normalizedSize = default, float? recommendedQuantityNormalized = default, Guid? meterId = default, string term = default, Azure.ResourceManager.Consumption.Models.ConsumptionAmount costWithNoReservedInstances = default, decimal? recommendedQuantity = default, Azure.ResourceManager.Consumption.Models.ConsumptionAmount totalCostWithReservedInstances = default, Azure.ResourceManager.Consumption.Models.ConsumptionAmount netSavings = default, DateTimeOffset? firstUsageOn = default, string scope = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Consumption.Models.ConsumptionSkuProperty> skuProperties = default, string skuName = default);
static member ConsumptionModernReservationRecommendation : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> * Nullable<Azure.Core.AzureLocation> * string * string * Nullable<int> * Nullable<single> * string * string * Nullable<single> * Nullable<Guid> * string * Azure.ResourceManager.Consumption.Models.ConsumptionAmount * Nullable<decimal> * Azure.ResourceManager.Consumption.Models.ConsumptionAmount * Azure.ResourceManager.Consumption.Models.ConsumptionAmount * Nullable<DateTimeOffset> * string * seq<Azure.ResourceManager.Consumption.Models.ConsumptionSkuProperty> * string -> Azure.ResourceManager.Consumption.Models.ConsumptionModernReservationRecommendation
Public Shared Function ConsumptionModernReservationRecommendation (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional sku As String = Nothing, Optional locationPropertiesLocation As String = Nothing, Optional lookBackPeriod As Nullable(Of Integer) = Nothing, Optional instanceFlexibilityRatio As Nullable(Of Single) = Nothing, Optional instanceFlexibilityGroup As String = Nothing, Optional normalizedSize As String = Nothing, Optional recommendedQuantityNormalized As Nullable(Of Single) = Nothing, Optional meterId As Nullable(Of Guid) = Nothing, Optional term As String = Nothing, Optional costWithNoReservedInstances As ConsumptionAmount = Nothing, Optional recommendedQuantity As Nullable(Of Decimal) = Nothing, Optional totalCostWithReservedInstances As ConsumptionAmount = Nothing, Optional netSavings As ConsumptionAmount = Nothing, Optional firstUsageOn As Nullable(Of DateTimeOffset) = Nothing, Optional scope As String = Nothing, Optional skuProperties As IEnumerable(Of ConsumptionSkuProperty) = Nothing, Optional skuName As String = Nothing) As ConsumptionModernReservationRecommendation

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

etag
Nullable<ETag>

资源的 etag。 序列化名称:Resource.etag

tags
IReadOnlyDictionary<String,String>

资源标记。 序列化名称:Resource.tags

location
Nullable<AzureLocation>

资源位置序列化名称:ResourceAttributes.location

sku
String

资源 SKU 序列化名称:ResourceAttributes.sku

locationPropertiesLocation
String

资源位置。 序列化名称:ModernReservationRecommendation.properties.location

lookBackPeriod
Nullable<Int32>

要回头查找建议的使用情况天数。 序列化名称:ModernReservationRecommendation.properties.lookBackPeriod

instanceFlexibilityRatio
Nullable<Single>

实例灵活性比率。 序列化名称:ModernReservationRecommendation.properties.instanceFlexibilityRatio

instanceFlexibilityGroup
String

实例灵活性组。 序列化名称:ModernReservationRecommendation.properties.instanceFlexibilityGroup

normalizedSize
String

规范化的大小。 序列化名称:ModernReservationRecommendation.properties.normalizedSize

recommendedQuantityNormalized
Nullable<Single>

建议的数量规范化。 序列化名称:ModernReservationRecommendation.properties.recommendedQuantityNormalized

meterId
Nullable<Guid>

计量 ID (GUID) 序列化名称:ModernReservationRecommendation.properties.meterId

term
String

一年或三年的 RI 建议。 序列化名称:ModernReservationRecommendation.properties.term

costWithNoReservedInstances
ConsumptionAmount

不带预留实例的总成本。 序列化名称:ModernReservationRecommendation.properties.costWithNoReservedInstances

recommendedQuantity
Nullable<Decimal>

预留实例的建议质量。 序列化名称:ModernReservationRecommendation.properties.recommendedQuantity

totalCostWithReservedInstances
ConsumptionAmount

预留实例的总成本。 序列化名称:ModernReservationRecommendation.properties.totalCostWithReservedInstances

netSavings
ConsumptionAmount

预留实例估计的总节省成本。 序列化名称:ModernReservationRecommendation.properties.netSavings

firstUsageOn
Nullable<DateTimeOffset>

用于回溯的使用日期。 序列化名称:ModernReservationRecommendation.properties.firstUsageDate

scope
String

共享或单一建议。 序列化名称:ModernReservationRecommendation.properties.scope

skuProperties
IEnumerable<ConsumptionSkuProperty>

Sku 属性序列化名称列表:ModernReservationRecommendation.properties.skuProperties

skuName
String

这是 ARM SKU 名称。 序列化名称:ModernReservationRecommendation.properties.skuName

返回

用于模拟的新 ConsumptionModernReservationRecommendation 实例。

适用于