Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ message NodeStatus {
ElectricalStimulationStatus electrical_stimulation = 6;
ApplicationNodeStatus application = 7;
OpticalStimulationStatus optical_stimulation = 8;
DiskWriterStatus disk_writer = 10;
}
}

Expand Down
17 changes: 17 additions & 0 deletions api/nodes/disk_writer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 5;
}