Share via


ResourceCarbonEmissionTopItemMonthlySummary Class

Definition

Response for top items carbon emissions by month for resource.

public class ResourceCarbonEmissionTopItemMonthlySummary : Azure.ResourceManager.CarbonOptimization.Models.CarbonEmission, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CarbonOptimization.Models.ResourceCarbonEmissionTopItemMonthlySummary>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CarbonOptimization.Models.ResourceCarbonEmissionTopItemMonthlySummary>
type ResourceCarbonEmissionTopItemMonthlySummary = class
    inherit CarbonEmission
    interface IJsonModel<ResourceCarbonEmissionTopItemMonthlySummary>
    interface IPersistableModel<ResourceCarbonEmissionTopItemMonthlySummary>
Public Class ResourceCarbonEmissionTopItemMonthlySummary
Inherits CarbonEmission
Implements IJsonModel(Of ResourceCarbonEmissionTopItemMonthlySummary), IPersistableModel(Of ResourceCarbonEmissionTopItemMonthlySummary)
Inheritance
ResourceCarbonEmissionTopItemMonthlySummary
Implements

Properties

CategoryType

Resource Item category.

Date

Monthly date string, format is yyyy-MM-dd.

ItemName

The resource name of resource for Resource Category.

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).

(Inherited from CarbonEmission)
MonthlyEmissionsChangeValue

The change in carbon emissions between the current and previous period, calculated as: latestMonthEmissions - previousMonthEmissions.

(Inherited from CarbonEmission)
MonthOverMonthEmissionsChangeRatio

The percentage change in carbon emissions between the current and previous DateRange. This is calculated as: (latestMonthEmissions - previousMonthEmissions) / previousMonthEmissions.

(Inherited from CarbonEmission)
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.

(Inherited from CarbonEmission)
ResourceGroup

Resource Group.

ResourceId

The fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

SubscriptionId

Subscription Id.

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.

(Inherited from CarbonEmission)
IJsonModel<CarbonEmission>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from CarbonEmission)
IJsonModel<ResourceCarbonEmissionTopItemMonthlySummary>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ResourceCarbonEmissionTopItemMonthlySummary>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CarbonEmission>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from CarbonEmission)
IPersistableModel<CarbonEmission>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from CarbonEmission)
IPersistableModel<CarbonEmission>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from CarbonEmission)
IPersistableModel<ResourceCarbonEmissionTopItemMonthlySummary>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResourceCarbonEmissionTopItemMonthlySummary>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ResourceCarbonEmissionTopItemMonthlySummary>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to