UsageCarbonEmissionsQuery

class oci.usage_api.models.UsageCarbonEmissionsQuery(**kwargs)

Bases: object

The usage carbon emissions saved query to filter and aggregate.

Methods

__init__(**kwargs) Initializes a new UsageCarbonEmissionsQuery object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this UsageCarbonEmissionsQuery.
id [Required] Gets the id of this UsageCarbonEmissionsQuery.
query_definition [Required] Gets the query_definition of this UsageCarbonEmissionsQuery.
__init__(**kwargs)

Initializes a new UsageCarbonEmissionsQuery object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this UsageCarbonEmissionsQuery.
  • compartment_id (str) – The value to assign to the compartment_id property of this UsageCarbonEmissionsQuery.
  • query_definition (oci.usage_api.models.UsageCarbonEmissionsQueryDefinition) – The value to assign to the query_definition property of this UsageCarbonEmissionsQuery.
compartment_id

[Required] Gets the compartment_id of this UsageCarbonEmissionsQuery. The compartment OCID.

Returns:The compartment_id of this UsageCarbonEmissionsQuery.
Return type:str
id

[Required] Gets the id of this UsageCarbonEmissionsQuery. The query OCID.

Returns:The id of this UsageCarbonEmissionsQuery.
Return type:str
query_definition

[Required] Gets the query_definition of this UsageCarbonEmissionsQuery.

Returns:The query_definition of this UsageCarbonEmissionsQuery.
Return type:oci.usage_api.models.UsageCarbonEmissionsQueryDefinition