Class: Azure::SQL::Mgmt::V2014_04_01::Models::Metric

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb

Overview

Database metrics.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_timeDateTime

Returns The end time for the metric (ISO-8601 format).

Returns:

  • (DateTime)

    The end time for the metric (ISO-8601 format).



19
20
21
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 19

def end_time
  @end_time
end

#metric_valuesArray<MetricValue>

window and timestep.

Returns:

  • (Array<MetricValue>)

    The metric values for the specified time



35
36
37
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 35

def metric_values
  @metric_values
end

#nameMetricName

Returns The name information for the metric.

Returns:

  • (MetricName)

    The name information for the metric.



31
32
33
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 31

def name
  @name
end

#start_timeDateTime

Returns The start time for the metric (ISO-8601 format).

Returns:

  • (DateTime)

    The start time for the metric (ISO-8601 format).



16
17
18
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 16

def start_time
  @start_time
end

#time_grainString

values.

Returns:

  • (String)

    The time step to be used to summarize the metric



23
24
25
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 23

def time_grain
  @time_grain
end

#unitUnitType

‘count’, ‘bytes’, ‘seconds’, ‘percent’, ‘countPerSecond’, ‘bytesPerSecond’

Returns:

  • (UnitType)

    The unit of the metric. Possible values include:



28
29
30
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 28

def unit
  @unit
end

Class Method Details

.mapperObject

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



42
43
44
45
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
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Metric',
    type: {
      name: 'Composite',
      class_name: 'Metric',
      model_properties: {
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        },
        time_grain: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'timeGrain',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'MetricName'
          }
        },
        metric_values: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'metricValues',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricValueElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricValue'
                }
            }
          }
        }
      }
    }
  }
end