Class: Azure::ARM::Web::Models::ResourceMetricValue

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_web/models/resource_metric_value.rb

Overview

Value of resource metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#averageFloat

Returns Value average.

Returns:

  • (Float)

    Value average.



20
21
22
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 20

def average
  @average
end

#countFloat

Returns Value count.

Returns:

  • (Float)

    Value count.



32
33
34
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 32

def count
  @count
end

#maximumFloat

Returns Value maximum.

Returns:

  • (Float)

    Value maximum.



26
27
28
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 26

def maximum
  @maximum
end

#minimumFloat

Returns Value minimum.

Returns:

  • (Float)

    Value minimum.



23
24
25
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 23

def minimum
  @minimum
end

#propertiesArray<ResourceMetricProperty>

Returns Properties.

Returns:



35
36
37
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 35

def properties
  @properties
end

#timestampString

Returns Value timestamp.

Returns:

  • (String)

    Value timestamp.



17
18
19
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 17

def timestamp
  @timestamp
end

#totalFloat

Returns Value total.

Returns:

  • (Float)

    Value total.



29
30
31
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 29

def total
  @total
end

Class Method Details

.mapperObject

Mapper for ResourceMetricValue 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
# File 'lib/generated/azure_mgmt_web/models/resource_metric_value.rb', line 42

def self.mapper()
  {
    required: false,
    serialized_name: 'ResourceMetricValue',
    type: {
      name: 'Composite',
      class_name: 'ResourceMetricValue',
      model_properties: {
        timestamp: {
          required: false,
          read_only: true,
          serialized_name: 'timestamp',
          type: {
            name: 'String'
          }
        },
        average: {
          required: false,
          read_only: true,
          serialized_name: 'average',
          type: {
            name: 'Double'
          }
        },
        minimum: {
          required: false,
          read_only: true,
          serialized_name: 'minimum',
          type: {
            name: 'Double'
          }
        },
        maximum: {
          required: false,
          read_only: true,
          serialized_name: 'maximum',
          type: {
            name: 'Double'
          }
        },
        total: {
          required: false,
          read_only: true,
          serialized_name: 'total',
          type: {
            name: 'Double'
          }
        },
        count: {
          required: false,
          read_only: true,
          serialized_name: 'count',
          type: {
            name: 'Double'
          }
        },
        properties: {
          required: false,
          read_only: true,
          serialized_name: 'properties',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'ResourceMetricPropertyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceMetricProperty'
                }
            }
          }
        }
      }
    }
  }
end