Class: Verizon::WirelessNetworkPerformanceController
- Inherits:
-
BaseController
- Object
- BaseController
- Verizon::WirelessNetworkPerformanceController
- Defined in:
- lib/verizon/controllers/wireless_network_performance_controller.rb
Overview
WirelessNetworkPerformanceController
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#device_experience30days_history(body) ⇒ ApiResponse
A report of a specific device’s service scores over a 30 day period.
-
#device_experience_bulk_latest(body) ⇒ ApiResponse
Run a report to view the latest device experience score for specific devices.
-
#domestic4g_and_5g_nationwide_network_coverage(body) ⇒ ApiResponse
Run a report to determine network types available and available coverage.
-
#near_real_time_network_conditions(body) ⇒ ApiResponse
WNP Query for current network condition.
-
#site_proximity(body) ⇒ ApiResponse
Identify the direction and general distance of nearby cell sites and the technology supported by the equipment.
Methods inherited from BaseController
#initialize, #new_api_call_builder, #new_parameter, #new_request_builder, #new_response_handler, user_agent
Constructor Details
This class inherits a constructor from Verizon::BaseController
Instance Method Details
#device_experience30days_history(body) ⇒ ApiResponse
A report of a specific device’s service scores over a 30 day period. Request for a device’s 30 day experience.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/verizon/controllers/wireless_network_performance_controller.rb', line 88 def device_experience30days_history(body) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/m2m/v1/intelligence/device-experience/history/30-days', Server::THINGSPACE) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(And.new('thingspace_oauth', 'VZ-M2M-Token'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(WNPRequestResponse.method(:from_hash)) .is_api_response(true) .local_error('default', 'Error response', WNPRestErrorResponseException)) .execute end |
#device_experience_bulk_latest(body) ⇒ ApiResponse
Run a report to view the latest device experience score for specific devices. Request for bulk latest history details.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/verizon/controllers/wireless_network_performance_controller.rb', line 113 def device_experience_bulk_latest(body) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/m2m/v1/intelligence/device-experience/bulk/latest', Server::THINGSPACE) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(And.new('thingspace_oauth', 'VZ-M2M-Token'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(WNPRequestResponse.method(:from_hash)) .is_api_response(true) .local_error('default', 'Error response', WNPRestErrorResponseException)) .execute end |
#domestic4g_and_5g_nationwide_network_coverage(body) ⇒ ApiResponse
Run a report to determine network types available and available coverage. Network types covered include: CAT-M, NB-IOT, LTE, LTE-AWS, 5GNW and C-BAND. network coverage details.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/verizon/controllers/wireless_network_performance_controller.rb', line 39 def domestic4g_and_5g_nationwide_network_coverage(body) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/m2m/v1/intelligence/wireless-coverage', Server::THINGSPACE) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(And.new('thingspace_oauth', 'VZ-M2M-Token'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(WNPRequestResponse.method(:from_hash)) .is_api_response(true) .local_error('default', 'Error response', WNPRestErrorResponseException)) .execute end |
#near_real_time_network_conditions(body) ⇒ ApiResponse
WNP Query for current network condition. current network health.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/verizon/controllers/wireless_network_performance_controller.rb', line 13 def near_real_time_network_conditions(body) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/m2m/v1/intelligence/network-conditions', Server::THINGSPACE) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(And.new('thingspace_oauth', 'VZ-M2M-Token'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(WNPRequestResponse.method(:from_hash)) .is_api_response(true) .local_error('default', 'Error response', WNPRestErrorResponseException)) .execute end |
#site_proximity(body) ⇒ ApiResponse
Identify the direction and general distance of nearby cell sites and the technology supported by the equipment. cell site proximity.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/verizon/controllers/wireless_network_performance_controller.rb', line 64 def site_proximity(body) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/m2m/v1/intelligence/site-proximity/action/list', Server::THINGSPACE) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(And.new('thingspace_oauth', 'VZ-M2M-Token'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(WNPRequestResponse.method(:from_hash)) .is_api_response(true) .local_error('default', 'Error response', WNPRestErrorResponseException)) .execute end |