def sandesh_sending_params_status_handle_request(self, sandesh_req):
     # Return the sending params
     sandesh_sending_resp = SandeshSendingParams(
         system_logs_rate_limit=SandeshSystem.get_sandesh_send_rate_limit(),
         disable_object_logs= \
             self._sandesh.is_sending_object_logs_disabled(),
         disable_all_logs=self._sandesh.is_sending_all_messages_disabled(),
         dscp=self.sandesh_get_dscp())
     sandesh_sending_resp.response(sandesh_req.context(),
                                   sandesh=self._sandesh)
Esempio n. 2
0
 def sandesh_sending_params_status_handle_request(self, sandesh_req):
     # Return the sending params
     sandesh_sending_resp = SandeshSendingParams(
         system_logs_rate_limit=SandeshSystem.get_sandesh_send_rate_limit(),
         disable_object_logs= \
             self._sandesh.is_sending_object_logs_disabled(),
         disable_all_logs=self._sandesh.is_sending_all_messages_disabled(),
         dscp=self.sandesh_get_dscp())
     sandesh_sending_resp.response(sandesh_req.context(),
                                   sandesh=self._sandesh)
 def sandesh_sending_params_set_handle_request(self, sandesh_req):
     # Set the sending params
     if sandesh_req.system_logs_rate_limit is not None:
         SandeshSystem.set_sandesh_send_rate_limit(
             sandesh_req.system_logs_rate_limit)
     if sandesh_req.disable_object_logs is not None:
         self._sandesh.disable_sending_object_logs(
             sandesh_req.disable_object_logs)
     if sandesh_req.disable_all_logs is not None:
         self._sandesh.disable_sending_all_messages(
             sandesh_req.disable_all_logs)
     # Return the sending params
     sandesh_sending_resp = SandeshSendingParams(
         system_logs_rate_limit=SandeshSystem.get_sandesh_send_rate_limit(),
         disable_object_logs= \
             self._sandesh.is_sending_object_logs_disabled(),
         disable_all_logs=self._sandesh.is_sending_all_messages_disabled(),
         dscp=self.sandesh_get_dscp())
     sandesh_sending_resp.response(sandesh_req.context(),
                                   sandesh=self._sandesh)
Esempio n. 4
0
 def sandesh_sending_params_set_handle_request(self, sandesh_req):
     # Set the sending params
     if sandesh_req.system_logs_rate_limit is not None:
         SandeshSystem.set_sandesh_send_rate_limit(
             sandesh_req.system_logs_rate_limit)
     if sandesh_req.disable_object_logs is not None:
         self._sandesh.disable_sending_object_logs(
             sandesh_req.disable_object_logs)
     if sandesh_req.disable_all_logs is not None:
         self._sandesh.disable_sending_all_messages(
             sandesh_req.disable_all_logs)
     # Return the sending params
     sandesh_sending_resp = SandeshSendingParams(
         system_logs_rate_limit=SandeshSystem.get_sandesh_send_rate_limit(),
         disable_object_logs= \
             self._sandesh.is_sending_object_logs_disabled(),
         disable_all_logs=self._sandesh.is_sending_all_messages_disabled(),
         dscp=self.sandesh_get_dscp())
     sandesh_sending_resp.response(sandesh_req.context(),
                                   sandesh=self._sandesh)