Partager via


QueryDefinition Class

Definition

The definition of a query.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryDefinitionTypeConverter))]
public class QueryDefinition : Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryDefinition, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryDefinitionInternal
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.QueryDefinitionTypeConverter))>]
type QueryDefinition = class
    interface IQueryDefinition
    interface IJsonSerializable
    interface IQueryDefinitionInternal
Public Class QueryDefinition
Implements IQueryDefinition, IQueryDefinitionInternal
Inheritance
QueryDefinition
Attributes
Implements

Constructors

QueryDefinition()

Creates an new QueryDefinition instance.

Properties

ConfigurationColumn

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.

DatasetAggregation

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.

DatasetFilter

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

DatasetGranularity

The granularity of rows in the query.

DatasetGrouping

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

Timeframe

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

TimePeriodFrom

The start date to pull data from.

TimePeriodTo

The end date to pull data to.

Type

The type of the query.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of QueryDefinition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of QueryDefinition.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Models.Api20211001.IQueryDefinition.

FromJsonString(String)

Creates a new instance of QueryDefinition, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of QueryDefinition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Explicit Interface Implementations

IQueryDefinitionInternal.Dataset

Internal Acessors for Dataset

IQueryDefinitionInternal.DatasetConfiguration

Internal Acessors for DatasetConfiguration

IQueryDefinitionInternal.TimePeriod

Internal Acessors for TimePeriod

Applies to