Freigeben über


ArmCarbonOptimizationModelFactory.CarbonEmissionMonthlySummary Method

Definition

Initializes a new instance of CarbonEmissionMonthlySummary.

public static Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionMonthlySummary CarbonEmissionMonthlySummary(double latestMonthEmissions = 0, double previousMonthEmissions = 0, double? monthOverMonthEmissionsChangeRatio = default, double? monthlyEmissionsChangeValue = default, string date = default, double carbonIntensity = 0);
static member CarbonEmissionMonthlySummary : double * double * Nullable<double> * Nullable<double> * string * double -> Azure.ResourceManager.CarbonOptimization.Models.CarbonEmissionMonthlySummary
Public Shared Function CarbonEmissionMonthlySummary (Optional latestMonthEmissions As Double = 0, Optional previousMonthEmissions As Double = 0, Optional monthOverMonthEmissionsChangeRatio As Nullable(Of Double) = Nothing, Optional monthlyEmissionsChangeValue As Nullable(Of Double) = Nothing, Optional date As String = Nothing, Optional carbonIntensity As Double = 0) As CarbonEmissionMonthlySummary

Parameters

latestMonthEmissions
Double

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

previousMonthEmissions
Double

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.

monthOverMonthEmissionsChangeRatio
Nullable<Double>

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

monthlyEmissionsChangeValue
Nullable<Double>

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

date
String

The date, representing the month, for which the emissions data is reported, formatted as yyyy-MM-dd (e.g., 2024-03-01).

carbonIntensity
Double

Carbon intensity for the specified month, typically in units of kgCO2E per unit of normalized usage.

Returns

A new CarbonEmissionMonthlySummary instance for mocking.

Applies to