Class: Azure::ARM::Insights::Models::TimeWindow

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/time_window.rb

Overview

A specific date-time for the profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_propertyDateTime

Returns the end time for the profile in ISO 8601 format.

Returns:

  • (DateTime)

    the end time for the profile in ISO 8601 format.



24
25
26
# File 'lib/generated/azure_mgmt_insights/models/time_window.rb', line 24

def end_property
  @end_property
end

#startDateTime

Returns the start time for the profile in ISO 8601 format.

Returns:

  • (DateTime)

    the start time for the profile in ISO 8601 format.



21
22
23
# File 'lib/generated/azure_mgmt_insights/models/time_window.rb', line 21

def start
  @start
end

#time_zoneString

profile. See examples of valid timezone ids over here: msdn.microsoft.com/en-us/library/azure/dn931928.aspx

Returns:

  • (String)

    the time zone of the start and end times for the



18
19
20
# File 'lib/generated/azure_mgmt_insights/models/time_window.rb', line 18

def time_zone
  @time_zone
end

Class Method Details

.mapperObject

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



31
32
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
# File 'lib/generated/azure_mgmt_insights/models/time_window.rb', line 31

def self.mapper()
  {
    required: false,
    serialized_name: 'TimeWindow',
    type: {
      name: 'Composite',
      class_name: 'TimeWindow',
      model_properties: {
        time_zone: {
          required: false,
          serialized_name: 'timeZone',
          type: {
            name: 'String'
          }
        },
        start: {
          required: true,
          serialized_name: 'start',
          type: {
            name: 'DateTime'
          }
        },
        end_property: {
          required: true,
          serialized_name: 'end',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end