Skip to content

DataMonitor can receive commands

Guillaume Baulieu requested to merge pipeline_optimization into preprod

The DataMonitor subscribes to a 'datamonitor_commands' channel and can receive commands :

  • set_frequency : Set the period between 2 monitor messages
  • set_variable_on : The variable is reset and monitored
  • set_variable_off : The variable is not monitored
  • get_configuration : The DataMonitor will send its configuration (name, frequency, list and state of variables) in JSON format on the 'datamonitor_answers' channel

Example of configuration sent :

{
   "name": "SQM2ADF",
   "frequency": 2000,
   "variables": [
      {
         "name": "nb_block_frames",
         "active": true
      },
      {
         "name": "nb_block_out_frames",
         "active": true
      },
      {
         "name": "nb_block_void_frames",
         "active": true
      },
      {
         "name": "nb_block_idle_frames",
         "active": true
      },
      {
         "name": "nb_block_missing_frames",
         "active": true
      },
      {
         "name": "nb_block_long_frames",
         "active": true
      },
      {
         "name": "bytes_in",
         "active": true
      },
      {
         "name": "bytes_out",
         "active": true
      },
      {
         "name": "process_time",
         "active": true
      },
      {
         "name": "in_frames",
         "active": true
      },
      {
         "name": "bytes_in",
         "active": true
      },
      {
         "name": "in_process_block",
         "active": true
      }
   ]
}

Merge request reports

Loading