Поделиться через


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

QueryDefinition(ExportType, TimeframeType, QueryDataset)

Initializes a new instance of QueryDefinition.

Properties

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

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

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