Query

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

Bases: object

The query to filter and aggregate.

Methods

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

Attributes

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

Initializes a new Query 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 Query.
  • compartment_id (str) – The value to assign to the compartment_id property of this Query.
  • query_definition (oci.usage_api.models.QueryDefinition) – The value to assign to the query_definition property of this Query.
compartment_id

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

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

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

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

[Required] Gets the query_definition of this Query.

Returns:The query_definition of this Query.
Return type:oci.usage_api.models.QueryDefinition