From f7ef753d60cc1fd469abfaaec5cc3c9eeebba34f Mon Sep 17 00:00:00 2001 From: Gilbert Montague Date: Tue, 12 Aug 2025 11:32:12 -0700 Subject: [PATCH 1/2] feature: add disk writer status --- api/node.proto | 1 + api/nodes/disk_writer.proto | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/api/node.proto b/api/node.proto index e9a1b72..f3369c6 100644 --- a/api/node.proto +++ b/api/node.proto @@ -62,6 +62,7 @@ message NodeStatus { ElectricalStimulationStatus electrical_stimulation = 6; ApplicationNodeStatus application = 7; OpticalStimulationStatus optical_stimulation = 8; + DiskWriterStatus disk_writer = 10; } } diff --git a/api/nodes/disk_writer.proto b/api/nodes/disk_writer.proto index 245353a..fac5cd5 100644 --- a/api/nodes/disk_writer.proto +++ b/api/nodes/disk_writer.proto @@ -5,3 +5,20 @@ package synapse; message DiskWriterConfig { string filename = 1; } + +message DiskWriterStatus { + // The output path of the file on the path of the sftp directory + string output_path = 1; + + // How many bytes has been written for this file? + uint64 bytes_written = 2; + + // Are we currently writing or are we stopped? + bool is_writing = 3; + + // How many bytes are available for us to use + uint64 available_disk_space_bytes = 4; + + // Current write performance for this node, megabits/sec + float current_bitrate_mbps = 8; +} From 6118ed6a64f3a1dfa3f38c1379dcfc5532e7674a Mon Sep 17 00:00:00 2001 From: Gilbert Montague Date: Tue, 12 Aug 2025 11:33:45 -0700 Subject: [PATCH 2/2] typo --- api/nodes/disk_writer.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/nodes/disk_writer.proto b/api/nodes/disk_writer.proto index fac5cd5..08a4b2d 100644 --- a/api/nodes/disk_writer.proto +++ b/api/nodes/disk_writer.proto @@ -20,5 +20,5 @@ message DiskWriterStatus { uint64 available_disk_space_bytes = 4; // Current write performance for this node, megabits/sec - float current_bitrate_mbps = 8; + float current_bitrate_mbps = 5; }