Method: Verizon::AnomalySettingsController#list_anomaly_detection_settings
- Defined in:
- lib/verizon/controllers/anomaly_settings_controller.rb
#list_anomaly_detection_settings(account_name) ⇒ AnomalyDetectionSettings
Retrieves the current anomaly detection settings for an account. subscribed account.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/verizon/controllers/anomaly_settings_controller.rb', line 38 def list_anomaly_detection_settings(account_name) new_api_call_builder .request(new_request_builder(HttpMethodEnum::GET, '/m2m/v1/intelligence/{accountName}/anomaly/settings', Server::THINGSPACE) .template_param(new_parameter(account_name, key: 'accountName') .should_encode(true)) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('thingspace_oauth'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(AnomalyDetectionSettings.method(:from_hash)) .is_api_response(true) .local_error('default', 'An error occurred.', IntelligenceResultException)) .execute end |