CarbonEmission 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 basic response for different query report, all query report result will have these information Please note CarbonEmission 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 CarbonEmissionItemDetail, CarbonEmissionMonthlySummary, CarbonEmissionOverallSummary, ResourceGroupCarbonEmissionItemDetail, ResourceGroupCarbonEmissionTopItemMonthlySummary, ResourceGroupCarbonEmissionTopItemsSummary, ResourceCarbonEmissionItemDetail, ResourceCarbonEmissionTopItemMonthlySummary, ResourceCarbonEmissionTopItemsSummary, CarbonEmissionTopItemMonthlySummary and CarbonEmissionTopItemsSummary.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.CarbonOptimization.Models.UnknownCarbonEmission))]
public abstract class CarbonEmission : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmission>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CarbonOptimization.Models.CarbonEmission>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.CarbonOptimization.Models.UnknownCarbonEmission))>]
type CarbonEmission = class
interface IJsonModel<CarbonEmission>
interface IPersistableModel<CarbonEmission>
Public MustInherit Class CarbonEmission
Implements IJsonModel(Of CarbonEmission), IPersistableModel(Of CarbonEmission)
- Inheritance
-
CarbonEmission
- Derived
- Attributes
- Implements
Constructors
CarbonEmission(Double, Double) |
Initializes a new instance of CarbonEmission. |
Properties
LatestMonthEmissions |
Total carbon emissions for the specified query parameters, measured in kgCO2E. This value represents total emissions over the specified date range (e.g., March-June). |
MonthlyEmissionsChangeValue |
The change in carbon emissions between the current and previous period, calculated as: latestMonthEmissions - previousMonthEmissions. |
MonthOverMonthEmissionsChangeRatio |
The percentage change in carbon emissions between the current and previous DateRange. This is calculated as: (latestMonthEmissions - previousMonthEmissions) / previousMonthEmissions. |
PreviousMonthEmissions |
Total carbon emissions for the previous month’s date range, which is the same period as the specified date range but shifted left by one month (e.g., if the specified range is March - June, the previous month’s range will be Feb - May). The value is measured in kgCO2E. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<CarbonEmission>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<CarbonEmission>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<CarbonEmission>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<CarbonEmission>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<CarbonEmission>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |