Show / Hide Table of Contents

Class UsageCarbonEmissionsReportQuery

The request of the generated carbon emissions usage report.

Inheritance
object
UsageCarbonEmissionsReportQuery
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 UsageCarbonEmissionsReportQuery

Properties

CompartmentDepth

Declaration
[JsonProperty(PropertyName = "compartmentDepth")]
public int? CompartmentDepth { get; set; }
Property Value
Type Description
int?

The compartment depth level.

DateRangeName

Declaration
[JsonProperty(PropertyName = "dateRangeName")]
[JsonConverter(typeof(ResponseEnumConverter))]
public UsageCarbonEmissionsReportQuery.DateRangeNameEnum? DateRangeName { get; set; }
Property Value
Type Description
UsageCarbonEmissionsReportQuery.DateRangeNameEnum?

The user interface date range, for example, LAST_THREE_MONTHS. Overrides the timeUsageStarted and timeUsageEnded properties.

EmissionCalculationMethod

Declaration
[JsonProperty(PropertyName = "emissionCalculationMethod")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RequestUsageCarbonEmissionsDetails.EmissionCalculationMethodEnum? EmissionCalculationMethod { get; set; }
Property Value
Type Description
RequestUsageCarbonEmissionsDetails.EmissionCalculationMethodEnum?

Specifies the method used for emission calculation, such as POWER_BASED or SPEND_BASED

EmissionType

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

Specifies the type of emission, such as MARKET_BASED or LOCATION_BASED.

Filter

Declaration
[JsonProperty(PropertyName = "filter")]
public Filter Filter { get; set; }
Property Value
Type Description
Filter

Granularity

Declaration
[JsonProperty(PropertyName = "granularity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RequestUsageCarbonEmissionsDetails.GranularityEnum? Granularity { get; set; }
Property Value
Type Description
RequestUsageCarbonEmissionsDetails.GranularityEnum?

The carbon emission granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation.

GroupBy

Declaration
[JsonProperty(PropertyName = "groupBy")]
public List<string> GroupBy { get; set; }
Property Value
Type Description
List<string>

Specifies what to aggregate the result by. For Example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]

GroupByTag

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

GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For Example: [{"namespace":"oracle", "key":"createdBy"]

IsAggregateByTime

Declaration
[JsonProperty(PropertyName = "isAggregateByTime")]
public bool? IsAggregateByTime { get; set; }
Property Value
Type Description
bool?

Specifies whether aggregated by time. If isAggregateByTime is true, all usage or costs over the query time period are summed.

TenantId

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

Tenant ID.

Remarks

Required

TimeUsageEnded

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

The usage end time.

TimeUsageStarted

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

The usage start time.

In this article
Back to top