Class: Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample
- 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
-
#is_aggregated ⇒ Boolean
or not.
-
#maximum ⇒ Float
Maximum of the metric sampled during the time period.
-
#minimum ⇒ Float
Minimum of the metric sampled during the time period.
-
#role_instance ⇒ String
instance This is returned and should be whichever instance name we desire to be returned i.e.
-
#timestamp ⇒ DateTime
Time at which metric is measured.
-
#total ⇒ Float
made this will have sum of all.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DiagnosticMetricSample class as Ruby Hash.
Instance Attribute Details
#is_aggregated ⇒ Boolean
or not
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 |
#maximum ⇒ Float
Returns 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 |
#minimum ⇒ Float
Returns 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_instance ⇒ String
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
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 |
#timestamp ⇒ DateTime
Returns 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 end |
#total ⇒ Float
made this will have sum of all.
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
.mapper ⇒ Object
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 |