class Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionMetricInfo

Contains time series of various impacted metrics for an Azure SQL Database, Server or Elastic Pool Recommended Action.

Attributes

metric_name[RW]

@return [String] Gets the name of the metric. e.g., CPU, Number of Queries.

start_time[RW]

@return [DateTime] Gets the start time of time interval given by this MetricInfo.

time_grain[RW]

@return [String] Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)

unit[RW]

@return [String] Gets the unit in which metric is measured. e.g., DTU, Frequency

value[RW]

@return [Float] Gets the value of the metric in the time interval given by this MetricInfo.

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RecommendedActionMetricInfo',
    type: {
      name: 'Composite',
      class_name: 'RecommendedActionMetricInfo',
      model_properties: {
        metric_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'metricName',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        time_grain: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'timeGrain',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'value',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end