Class: Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficFlow

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb

Overview

Class representing a Traffic Manager HeatMap traffic flow properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#latitudeFloat

from.

Returns:

  • (Float)

    The approximate latitude that these queries originated



21
22
23
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb', line 21

def latitude
  @latitude
end

#longitudeFloat

from.

Returns:

  • (Float)

    The approximate longitude that these queries originated



25
26
27
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb', line 25

def longitude
  @longitude
end

#query_experiencesArray<QueryExperience>

HeatMap calculation.

Returns:



29
30
31
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb', line 29

def query_experiences
  @query_experiences
end

#source_ipString

from.

Returns:

  • (String)

    The IP address that this query experience originated



17
18
19
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb', line 17

def source_ip
  @source_ip
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TrafficFlow',
    type: {
      name: 'Composite',
      class_name: 'TrafficFlow',
      model_properties: {
        source_ip: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceIp',
          type: {
            name: 'String'
          }
        },
        latitude: {
          client_side_validation: true,
          required: false,
          serialized_name: 'latitude',
          type: {
            name: 'Double'
          }
        },
        longitude: {
          client_side_validation: true,
          required: false,
          serialized_name: 'longitude',
          type: {
            name: 'Double'
          }
        },
        query_experiences: {
          client_side_validation: true,
          required: false,
          serialized_name: 'queryExperiences',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'QueryExperienceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'QueryExperience'
                }
            }
          }
        }
      }
    }
  }
end