Show / Hide Table of Contents

Class UsageCarbonEmissionSummary

The carbon emission usage store result.

Inheritance
object
UsageCarbonEmissionSummary
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.UsageapiService.Models
Assembly: OCI.DotNetSDK.Usageapi.dll
Syntax
public class UsageCarbonEmissionSummary

Properties

Ad

Declaration
[JsonProperty(PropertyName = "ad")]
public string Ad { get; set; }
Property Value
Type Description
string

The availability domain of the usage.

CompartmentId

Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The compartment OCID.

CompartmentName

Declaration
[JsonProperty(PropertyName = "compartmentName")]
public string CompartmentName { get; set; }
Property Value
Type Description
string

The compartment name.

CompartmentPath

Declaration
[JsonProperty(PropertyName = "compartmentPath")]
public string CompartmentPath { get; set; }
Property Value
Type Description
string

The compartment path, starting from root.

ComputedCarbonEmission

Declaration
[Required(ErrorMessage = "ComputedCarbonEmission is required.")]
[JsonProperty(PropertyName = "computedCarbonEmission")]
public double ComputedCarbonEmission { get; set; }
Property Value
Type Description
double

The carbon emission usage in MTCO2 units.

Remarks

Required

EmissionCalculationMethod

Declaration
[Required(ErrorMessage = "EmissionCalculationMethod is required.")]
[JsonProperty(PropertyName = "emissionCalculationMethod")]
public string EmissionCalculationMethod { get; set; }
Property Value
Type Description
string

Specifies the approach for calculating carbon emissions, supports both SPEND_BASED (based on expenditure data) and POWER_BASED (based on power consumption, newly introduced in the metering pipeline)

Remarks

Required

EmissionType

Declaration
[JsonProperty(PropertyName = "emissionType")]
[JsonConverter(typeof(StringEnumConverter))]
public RequestUsageCarbonEmissionsDetails.EmissionTypeEnum? EmissionType { get; set; }
Property Value
Type Description
RequestUsageCarbonEmissionsDetails.EmissionTypeEnum?

The emission type, such as MARKET_BASED or LOCATION_BASED.

Platform

Declaration
[JsonProperty(PropertyName = "platform")]
public string Platform { get; set; }
Property Value
Type Description
string

Platform for the cost.

Region

Declaration
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
Property Value
Type Description
string

The region of the usage.

ResourceId

Declaration
[JsonProperty(PropertyName = "resourceId")]
public string ResourceId { get; set; }
Property Value
Type Description
string

The resource OCID that is incurring the cost.

ResourceName

Declaration
[JsonProperty(PropertyName = "resourceName")]
public string ResourceName { get; set; }
Property Value
Type Description
string

The resource name that is incurring the cost.

Service

Declaration
[JsonProperty(PropertyName = "service")]
public string Service { get; set; }
Property Value
Type Description
string

The service name that is incurring the cost.

SkuName

Declaration
[JsonProperty(PropertyName = "skuName")]
public string SkuName { get; set; }
Property Value
Type Description
string

The SKU friendly name.

SkuPartNumber

Declaration
[JsonProperty(PropertyName = "skuPartNumber")]
public string SkuPartNumber { get; set; }
Property Value
Type Description
string

The SKU part number.

SubscriptionId

Declaration
[JsonProperty(PropertyName = "subscriptionId")]
public string SubscriptionId { get; set; }
Property Value
Type Description
string

The subscription ID.

Tags

Declaration
[JsonProperty(PropertyName = "tags")]
public List<Tag> Tags { get; set; }
Property Value
Type Description
List<Tag>

For grouping, a tag definition. For filtering, a definition and key.

TenantId

Declaration
[JsonProperty(PropertyName = "tenantId")]
public string TenantId { get; set; }
Property Value
Type Description
string

The tenancy OCID.

TenantName

Declaration
[JsonProperty(PropertyName = "tenantName")]
public string TenantName { get; set; }
Property Value
Type Description
string

The tenancy name.

TimeUsageEnded

Declaration
[Required(ErrorMessage = "TimeUsageEnded is required.")]
[JsonProperty(PropertyName = "timeUsageEnded")]
public DateTime? TimeUsageEnded { get; set; }
Property Value
Type Description
DateTime?

The usage end time.

Remarks

Required

TimeUsageStarted

Declaration
[Required(ErrorMessage = "TimeUsageStarted is required.")]
[JsonProperty(PropertyName = "timeUsageStarted")]
public DateTime? TimeUsageStarted { get; set; }
Property Value
Type Description
DateTime?

The usage start time.

Remarks

Required

In this article
Back to top