QueryDefinition

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

Bases: object

The common fields for queries.

Methods

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

Attributes

cost_analysis_ui [Required] Gets the cost_analysis_ui of this QueryDefinition.
display_name [Required] Gets the display_name of this QueryDefinition.
report_query [Required] Gets the report_query of this QueryDefinition.
version [Required] Gets the version of this QueryDefinition.
__init__(**kwargs)

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

Parameters:
  • display_name (str) – The value to assign to the display_name property of this QueryDefinition.
  • report_query (oci.usage_api.models.ReportQuery) – The value to assign to the report_query property of this QueryDefinition.
  • cost_analysis_ui (oci.usage_api.models.CostAnalysisUI) – The value to assign to the cost_analysis_ui property of this QueryDefinition.
  • version (float) – The value to assign to the version property of this QueryDefinition.
cost_analysis_ui

[Required] Gets the cost_analysis_ui of this QueryDefinition.

Returns:The cost_analysis_ui of this QueryDefinition.
Return type:oci.usage_api.models.CostAnalysisUI
display_name

[Required] Gets the display_name of this QueryDefinition. The query display name. Avoid entering confidential information.

Returns:The display_name of this QueryDefinition.
Return type:str
report_query

[Required] Gets the report_query of this QueryDefinition.

Returns:The report_query of this QueryDefinition.
Return type:oci.usage_api.models.ReportQuery
version

[Required] Gets the version of this QueryDefinition. The saved query version.

Returns:The version of this QueryDefinition.
Return type:float