Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionMetricInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#metric_nameString

Queries.

Returns:

  • (String)

    Gets the name of the metric. e.g., CPU, Number of



18
19
20
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb', line 18

def metric_name
  @metric_name
end

#start_timeDateTime

MetricInfo.

Returns:

  • (DateTime)

    Gets the start time of time interval given by this



30
31
32
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb', line 30

def start_time
  @start_time
end

#time_grainString

by this MetricInfo. e.g., PT1H (1 hour)

Returns:

  • (String)

    Gets the duration of time interval for the value given



26
27
28
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb', line 26

def time_grain
  @time_grain
end

#unitString

Frequency

Returns:

  • (String)

    Gets the unit in which metric is measured. e.g., DTU,



22
23
24
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb', line 22

def unit
  @unit
end

#valueFloat

by this MetricInfo.

Returns:

  • (Float)

    Gets the value of the metric in the time interval given



34
35
36
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_metric_info.rb', line 34

def value
  @value
end

Class Method Details

.mapperObject

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



41
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
# 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