Class: Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb

Overview

Class representing Diagnostic Metric

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#is_aggregatedBoolean

or not

Returns:

  • (Boolean)

    Whether the values are aggregates across all workers



39
40
41
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb', line 39

def is_aggregated
  @is_aggregated
end

#maximumFloat

Returns Maximum of the metric sampled during the time period.

Returns:

  • (Float)

    Maximum of the metric sampled during the time period



32
33
34
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb', line 32

def maximum
  @maximum
end

#minimumFloat

Returns Minimum of the metric sampled during the time period.

Returns:

  • (Float)

    Minimum of the metric sampled during the time period



35
36
37
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb', line 35

def minimum
  @minimum
end

#role_instanceString

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

Returns:

  • (String)

    Role Instance. Null if this counter is not per



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

def role_instance
  @role_instance
end

#timestampDateTime

Returns Time at which metric is measured.

Returns:

  • (DateTime)

    Time at which metric is measured



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

def timestamp
  @timestamp
end

#totalFloat

made this will have sum of all.

Returns:

  • (Float)

    Total value of the metric. If multiple measurements are



29
30
31
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/diagnostic_metric_sample.rb', line 29

def total
  @total
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-02-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