Class: Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition

Inherits:
ProxyOnlyResource show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb

Overview

Metadata for a metric.

Instance Attribute Summary collapse

Attributes inherited from ProxyOnlyResource

#id, #kind, #name, #type

Class Method Summary collapse

Instance Attribute Details

#display_nameString

Returns Friendly name shown in the UI.

Returns:

  • (String)

    Friendly name shown in the UI.



26
27
28
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb', line 26

def display_name
  @display_name
end

#metric_availabilitiesArray<MetricAvailabilily>

the metric together with retention period.

Returns:



23
24
25
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb', line 23

def metric_availabilities
  @metric_availabilities
end

#primary_aggregation_typeString

Returns Primary aggregation type.

Returns:

  • (String)

    Primary aggregation type.



19
20
21
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb', line 19

def primary_aggregation_type
  @primary_aggregation_type
end

#unitString

Returns Unit of the metric.

Returns:

  • (String)

    Unit of the metric.



16
17
18
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb', line 16

def unit
  @unit
end

Class Method Details

.mapperObject

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



33
34
35
36
37
38
39
40
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/metric_definition.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricDefinition',
    type: {
      name: 'Composite',
      class_name: 'MetricDefinition',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unit',
          type: {
            name: 'String'
          }
        },
        primary_aggregation_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.primaryAggregationType',
          type: {
            name: 'String'
          }
        },
        metric_availabilities: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.metricAvailabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricAvailabililyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricAvailabilily'
                }
            }
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.displayName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end