class Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSample

Class representing Diagnostic Metric

Attributes

is_aggregated[RW]

@return [Boolean] Whether the values are aggregates across all workers or not

maximum[RW]

@return [Float] Maximum of the metric sampled during the time period

minimum[RW]

@return [Float] Minimum of the metric sampled during the time period

role_instance[RW]

@return [String] Role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed…_IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis

timestamp[RW]

@return [DateTime] Time at which metric is measured

total[RW]

@return [Float] Total value of the metric. If multiple measurements are made this will have sum of all.

Private Class Methods

mapper() click to toggle source

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

# File lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb, line 46
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiagnosticMetricSample',
    type: {
      name: 'Composite',
      class_name: 'DiagnosticMetricSample',
      model_properties: {
        timestamp: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timestamp',
          type: {
            name: 'DateTime'
          }
        },
        role_instance: {
          client_side_validation: true,
          required: false,
          serialized_name: 'roleInstance',
          type: {
            name: 'String'
          }
        },
        total: {
          client_side_validation: true,
          required: false,
          serialized_name: 'total',
          type: {
            name: 'Double'
          }
        },
        maximum: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maximum',
          type: {
            name: 'Double'
          }
        },
        minimum: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minimum',
          type: {
            name: 'Double'
          }
        },
        is_aggregated: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isAggregated',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end