你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QueryDefinition Class

Definition

The definition of a query.

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

Constructors

Name Description
QueryDefinition(ExportType, TimeframeType, QueryDataset)

Initializes a new instance of QueryDefinition.

Properties

Name Description
Dataset

Has definition for data in this query.

ExportType

The type of the query.

Timeframe

The time frame for pulling data for the query. If custom, then a specific time period must be provided.

TimePeriod

Has time period for pulling data for the query.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<QueryDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<QueryDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<QueryDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<QueryDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<QueryDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to