QueryDatasetAutoGenerated Class

The definition of data present in the query.

Inheritance
QueryDatasetAutoGenerated

Constructor

QueryDatasetAutoGenerated(*, granularity: Optional[Union[str, azure.mgmt.costmanagement.models._cost_management_client_enums.GranularityType]] = None, configuration: Optional[azure.mgmt.costmanagement.models._models_py3.QueryDatasetConfiguration] = None, aggregation: Optional[Dict[str, azure.mgmt.costmanagement.models._models_py3.QueryAggregation]] = None, grouping: Optional[List[azure.mgmt.costmanagement.models._models_py3.QueryGrouping]] = None, filter: Optional[azure.mgmt.costmanagement.models._models_py3.QueryFilterAutoGenerated] = None, **kwargs)

Parameters

granularity
str or GranularityType
Required

The granularity of rows in the query. Possible values include: "Daily".

configuration
QueryDatasetConfiguration
Required

Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.

aggregation
dict[str, QueryAggregation]
Required

Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.

grouping
list[QueryGrouping]
Required

Array of group by expression to use in the query. Query can have up to 2 group by clauses.

filter
QueryFilterAutoGenerated
Required

The filter expression to use in the query. Please reference our Query API REST documentation for how to properly format the filter.