Class: Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSet

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb

Overview

Class representing Diagnostic Metric information

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_timeDateTime

Returns End time of the period.

Returns:

  • (DateTime)

    End time of the period



25
26
27
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 25

def end_time
  @end_time
end

#nameString

Returns Name of the metric.

Returns:

  • (String)

    Name of the metric



16
17
18
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 16

def name
  @name
end

#start_timeDateTime

Returns Start time of the period.

Returns:

  • (DateTime)

    Start time of the period



22
23
24
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 22

def start_time
  @start_time
end

#time_grainString

are PT1M, PT1H, P1D

Returns:

  • (String)

    Presented time grain. Supported grains at the moment



29
30
31
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 29

def time_grain
  @time_grain
end

#unitString

Returns Metric’s unit.

Returns:

  • (String)

    Metric’s unit



19
20
21
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 19

def unit
  @unit
end

#valuesArray<DiagnosticMetricSample>

the selected period based on the Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain

Returns:



34
35
36
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 34

def values
  @values
end

Class Method Details

.mapperObject

Mapper for DiagnosticMetricSet 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
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/diagnostic_metric_set.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiagnosticMetricSet',
    type: {
      name: 'Composite',
      class_name: 'DiagnosticMetricSet',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        },
        time_grain: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeGrain',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          serialized_name: 'values',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DiagnosticMetricSampleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'DiagnosticMetricSample'
                }
            }
          }
        }
      }
    }
  }
end