Skip to content

Commit 69d1944

Browse files
authored
feature: add disk writer status (#71)
* feature: add disk writer status * typo
1 parent d8cb99c commit 69d1944

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

api/node.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ message NodeStatus {
6262
ElectricalStimulationStatus electrical_stimulation = 6;
6363
ApplicationNodeStatus application = 7;
6464
OpticalStimulationStatus optical_stimulation = 8;
65+
DiskWriterStatus disk_writer = 10;
6566
}
6667
}
6768

api/nodes/disk_writer.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,20 @@ package synapse;
55
message DiskWriterConfig {
66
string filename = 1;
77
}
8+
9+
message DiskWriterStatus {
10+
// The output path of the file on the path of the sftp directory
11+
string output_path = 1;
12+
13+
// How many bytes has been written for this file?
14+
uint64 bytes_written = 2;
15+
16+
// Are we currently writing or are we stopped?
17+
bool is_writing = 3;
18+
19+
// How many bytes are available for us to use
20+
uint64 available_disk_space_bytes = 4;
21+
22+
// Current write performance for this node, megabits/sec
23+
float current_bitrate_mbps = 5;
24+
}

0 commit comments

Comments
 (0)