Class: Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::QueryExperience

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb

Overview

Class representing a Traffic Manager HeatMap query experience properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#endpoint_idInteger

which these queries were routed to.

Returns:

  • (Integer)

    The id of the endpoint from the ‘endpoints’ array



17
18
19
# File 'lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb', line 17

def endpoint_id
  @endpoint_id
end

#latencyFloat

this location.

Returns:

  • (Float)

    The latency experienced by queries originating from



24
25
26
# File 'lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb', line 24

def latency
  @latency
end

#query_countInteger

Returns The number of queries originating from this location.

Returns:

  • (Integer)

    The number of queries originating from this location.



20
21
22
# File 'lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb', line 20

def query_count
  @query_count
end

Class Method Details

.mapperObject

Mapper for QueryExperience 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
64
65
66
67
# File 'lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'QueryExperience',
    type: {
      name: 'Composite',
      class_name: 'QueryExperience',
      model_properties: {
        endpoint_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointId',
          type: {
            name: 'Number'
          }
        },
        query_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'queryCount',
          type: {
            name: 'Number'
          }
        },
        latency: {
          client_side_validation: true,
          required: false,
          serialized_name: 'latency',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end