Class RequestUsageCarbonEmissionsDetails
Details for the '/usageCarbonEmissions' query.
Inherited Members
Namespace: Oci.UsageapiService.Models
Assembly: OCI.DotNetSDK.Usageapi.dll
Syntax
public class RequestUsageCarbonEmissionsDetails
Properties
CompartmentDepth
Declaration
[JsonProperty(PropertyName = "compartmentDepth")]
public int? CompartmentDepth { get; set; }
Property Value
Type | Description |
---|---|
int? | The compartment depth level. |
Filter
Declaration
[JsonProperty(PropertyName = "filter")]
public Filter Filter { get; set; }
Property Value
Type | Description |
---|---|
Filter |
GroupBy
Declaration
[JsonProperty(PropertyName = "groupBy")]
public List<string> GroupBy { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Aggregate the result by. For Example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "resourceName", "tenantId", "tenantName", "subscriptionId"] |
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 carbon emissions over the query time period will be added up. |
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
[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