QueryDefinition¶
- class oci.usage_api.models.QueryDefinition(**kwargs)¶
Bases:
objectThe common fields for queries.
Methods:
__init__(**kwargs)Initializes a new QueryDefinition object with values from keyword arguments.
Attributes:
[Required] Gets the cost_analysis_ui of this QueryDefinition.
[Required] Gets the display_name of this QueryDefinition.
[Required] Gets the report_query of this QueryDefinition.
[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.
- property cost_analysis_ui¶
[Required] Gets the cost_analysis_ui of this QueryDefinition.
- Returns
The cost_analysis_ui of this QueryDefinition.
- Return type
- property 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
- property report_query¶
[Required] Gets the report_query of this QueryDefinition.
- Returns
The report_query of this QueryDefinition.
- Return type
- property version¶
[Required] Gets the version of this QueryDefinition. The saved query version.
- Returns
The version of this QueryDefinition.
- Return type
float