Share via


QueryDataset Class

Definition

The definition of data present in the query.

public class QueryDataset : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CostManagement.Models.QueryDataset>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CostManagement.Models.QueryDataset>
type QueryDataset = class
    interface IJsonModel<QueryDataset>
    interface IPersistableModel<QueryDataset>
Public Class QueryDataset
Implements IJsonModel(Of QueryDataset), IPersistableModel(Of QueryDataset)
Inheritance
QueryDataset
Implements

Constructors

QueryDataset()

Initializes a new instance of QueryDataset.

Properties

Aggregation

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.

Columns

Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.

Filter

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

Granularity

The granularity of rows in the query.

Grouping

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<QueryDataset>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<QueryDataset>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<QueryDataset>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<QueryDataset>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<QueryDataset>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to