class Azure::CostManagement::Mgmt::V2018_05_31::Models::ReportConfigDataset

The definition of data present in the report.

Attributes

aggregation[RW]

@return [Hash{String => ReportConfigAggregation}] Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.

configuration[RW]

@return [ReportConfigDatasetConfiguration] Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.

filter[RW]

@return [ReportConfigFilter] Has filter expression to use in the report.

granularity[RW]

@return [GranularityType] The granularity of rows in the report. Possible values include: 'Daily'

grouping[RW]

@return [Array<ReportConfigGrouping>] Array of group by expression to use in the report. Report can have up to 2 group by clauses.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-05-31/generated/azure_mgmt_cost_management/models/report_config_dataset.rb, line 43
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReportConfigDataset',
    type: {
      name: 'Composite',
      class_name: 'ReportConfigDataset',
      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: 'ReportConfigDatasetConfiguration'
          }
        },
        aggregation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aggregation',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ReportConfigAggregationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigAggregation'
                }
            }
          }
        },
        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: 'ReportConfigGroupingElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ReportConfigGrouping'
                }
            }
          }
        },
        filter: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filter',
          type: {
            name: 'Composite',
            class_name: 'ReportConfigFilter'
          }
        }
      }
    }
  }
end