Class: Azure::CostManagement::Mgmt::V2019_01_01::Models::QueryDataset

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb

Overview

The definition of data present in the query.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregationHash{String => QueryAggregation}

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.

Returns:



28
29
30
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 28

def aggregation
  @aggregation
end

#configurationQueryDatasetConfiguration

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

Returns:



22
23
24
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 22

def configuration
  @configuration
end

#filterQueryFilter

Returns Has filter expression to use in the query.

Returns:

  • (QueryFilter)

    Has filter expression to use in the query.



39
40
41
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 39

def filter
  @filter
end

#granularityGranularityType

Possible values include: 'Daily', 'Hourly'

Returns:



17
18
19
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 17

def granularity
  @granularity
end

#groupingArray<QueryGrouping>

the query. Query can have up to 2 group by clauses.

Returns:

  • (Array<QueryGrouping>)

    Array of group by expression to use in



32
33
34
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 32

def grouping
  @grouping
end

#sortingArray<QuerySortingConfiguration>

in query.

Returns:



36
37
38
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 36

def sorting
  @sorting
end

Class Method Details

.mapperObject

Mapper for QueryDataset class as Ruby Hash. This will be used for serialization/deserialization.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/2019-01-01/generated/azure_mgmt_cost_management/models/query_dataset.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'QueryDataset',
    type: {
      name: 'Composite',
      class_name: 'QueryDataset',
      model_properties: {
        granularity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'granularity',
          type: {
            name: 'String'
          }
        },
        configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'configuration',
          type: {
            name: 'Composite',
            class_name: 'QueryDatasetConfiguration'
          }
        },
        aggregation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aggregation',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'QueryAggregationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'QueryAggregation'
                }
            }
          }
        },
        grouping: {
          client_side_validation: true,
          required: false,
          serialized_name: 'grouping',
          constraints: {
            MaxItems: 2
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'QueryGroupingElementType',
                type: {
                  name: 'Composite',
                  class_name: 'QueryGrouping'
                }
            }
          }
        },
        sorting: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sorting',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'QuerySortingConfigurationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'QuerySortingConfiguration'
                }
            }
          }
        },
        filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filter',
          type: {
            name: 'Composite',
            class_name: 'QueryFilter'
          }
        }
      }
    }
  }
end