RequestUsageCarbonEmissionsDetails¶
-
class
oci.usage_api.models.
RequestUsageCarbonEmissionsDetails
(**kwargs)¶ Bases:
object
Details for the ‘/usageCarbonEmissions’ query.
Methods
__init__
(**kwargs)Initializes a new RequestUsageCarbonEmissionsDetails object with values from keyword arguments. Attributes
compartment_depth
Gets the compartment_depth of this RequestUsageCarbonEmissionsDetails. filter
Gets the filter of this RequestUsageCarbonEmissionsDetails. group_by
Gets the group_by of this RequestUsageCarbonEmissionsDetails. group_by_tag
Gets the group_by_tag of this RequestUsageCarbonEmissionsDetails. is_aggregate_by_time
Gets the is_aggregate_by_time of this RequestUsageCarbonEmissionsDetails. tenant_id
[Required] Gets the tenant_id of this RequestUsageCarbonEmissionsDetails. time_usage_ended
[Required] Gets the time_usage_ended of this RequestUsageCarbonEmissionsDetails. time_usage_started
[Required] Gets the time_usage_started of this RequestUsageCarbonEmissionsDetails. -
__init__
(**kwargs)¶ Initializes a new RequestUsageCarbonEmissionsDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - tenant_id (str) – The value to assign to the tenant_id property of this RequestUsageCarbonEmissionsDetails.
- time_usage_started (datetime) – The value to assign to the time_usage_started property of this RequestUsageCarbonEmissionsDetails.
- time_usage_ended (datetime) – The value to assign to the time_usage_ended property of this RequestUsageCarbonEmissionsDetails.
- is_aggregate_by_time (bool) – The value to assign to the is_aggregate_by_time property of this RequestUsageCarbonEmissionsDetails.
- group_by (list[str]) – The value to assign to the group_by property of this RequestUsageCarbonEmissionsDetails.
- group_by_tag (list[oci.usage_api.models.Tag]) – The value to assign to the group_by_tag property of this RequestUsageCarbonEmissionsDetails.
- compartment_depth (int) – The value to assign to the compartment_depth property of this RequestUsageCarbonEmissionsDetails.
- filter (oci.usage_api.models.Filter) – The value to assign to the filter property of this RequestUsageCarbonEmissionsDetails.
-
compartment_depth
¶ Gets the compartment_depth of this RequestUsageCarbonEmissionsDetails. The compartment depth level.
Returns: The compartment_depth of this RequestUsageCarbonEmissionsDetails. Return type: int
-
filter
¶ Gets the filter of this RequestUsageCarbonEmissionsDetails.
Returns: The filter of this RequestUsageCarbonEmissionsDetails. Return type: oci.usage_api.models.Filter
-
group_by
¶ Gets the group_by of this RequestUsageCarbonEmissionsDetails. Aggregate the result by. For example:
- `[“tagNamespace”, “tagKey”, “tagValue”, “service”, “skuName”, “skuPartNumber”, “unit”,
- “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “resourceName”, “tenantId”, “tenantName”, “subscriptionId”]`
Returns: The group_by of this RequestUsageCarbonEmissionsDetails. Return type: list[str]
-
group_by_tag
¶ Gets the group_by_tag of this RequestUsageCarbonEmissionsDetails. 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”]Returns: The group_by_tag of this RequestUsageCarbonEmissionsDetails. Return type: list[oci.usage_api.models.Tag]
-
is_aggregate_by_time
¶ Gets the is_aggregate_by_time of this RequestUsageCarbonEmissionsDetails. Specifies whether aggregated by time. If isAggregateByTime is true, all usage carbon emissions over the query time period will be added up.
Returns: The is_aggregate_by_time of this RequestUsageCarbonEmissionsDetails. Return type: bool
-
tenant_id
¶ [Required] Gets the tenant_id of this RequestUsageCarbonEmissionsDetails. Tenant ID.
Returns: The tenant_id of this RequestUsageCarbonEmissionsDetails. Return type: str
-
time_usage_ended
¶ [Required] Gets the time_usage_ended of this RequestUsageCarbonEmissionsDetails. The usage end time.
Returns: The time_usage_ended of this RequestUsageCarbonEmissionsDetails. Return type: datetime
-
time_usage_started
¶ [Required] Gets the time_usage_started of this RequestUsageCarbonEmissionsDetails. The usage start time.
Returns: The time_usage_started of this RequestUsageCarbonEmissionsDetails. Return type: datetime
-