BenefitRecommendationProperties Class
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.
The properties of the benefit recommendations. Please note BenefitRecommendationProperties is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include SharedScopeBenefitRecommendationProperties and SingleScopeBenefitRecommendationProperties.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.CostManagement.Models.UnknownBenefitRecommendationProperties))]
public abstract class BenefitRecommendationProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CostManagement.Models.BenefitRecommendationProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CostManagement.Models.BenefitRecommendationProperties>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.CostManagement.Models.UnknownBenefitRecommendationProperties))>]
type BenefitRecommendationProperties = class
interface IJsonModel<BenefitRecommendationProperties>
interface IPersistableModel<BenefitRecommendationProperties>
Public MustInherit Class BenefitRecommendationProperties
Implements IJsonModel(Of BenefitRecommendationProperties), IPersistableModel(Of BenefitRecommendationProperties)
- Inheritance
-
BenefitRecommendationProperties
- Derived
- Attributes
- Implements
Constructors
BenefitRecommendationProperties() |
Initializes a new instance of BenefitRecommendationProperties. |
Properties
AllRecommendationDetails |
The list of all benefit recommendations with the recommendation details. |
ArmSkuName |
ARM SKU name. 'Compute_Savings_Plan' for SavingsPlan. |
CommitmentGranularity |
Grain of the proposed commitment amount. Supported values: 'Hourly'. |
CostWithoutBenefit |
The current cost without benefit, corresponds to 'totalHours' in the look-back period. |
CurrencyCode |
An ISO 4217 currency code identifier for the costs and savings amounts. |
FirstConsumptionOn |
The first usage date used for looking back for computing the recommendations. |
LastConsumptionOn |
The last usage date used for looking back for computing the recommendations. |
LookBackPeriod |
The number of days of usage evaluated for computing the recommendations. |
RecommendationDetails |
The details of the proposed recommendation. |
Term |
Term period of the benefit. For example, P1Y or P3Y. |
TotalHours |
The total hours for which the cost is covered. Its equal to number of records in a property 'properties/usage/charges'. |
Usage |
On-demand charges between firstConsumptionDate and lastConsumptionDate that were used for computing benefit recommendations. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<BenefitRecommendationProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<BenefitRecommendationProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<BenefitRecommendationProperties>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<BenefitRecommendationProperties>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<BenefitRecommendationProperties>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET