forked from nanoporetech/minknow_lims_interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstance.proto
277 lines (218 loc) · 9.57 KB
/
instance.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
syntax="proto3";
import "minknow/rpc/acquisition.proto";
import "minknow/rpc/device.proto";
import "minknow/rpc/protocol.proto";
package ont.rpc.instance;
service InstanceService {
// Current version information includes:
// - Minknow version
// - Protocols version
// - Distribution version
rpc get_version_info (GetVersionInfoRequest) returns (GetVersionInfoResponse) {}
// Returns various directory locations where minknow is outputting data. The paths are absolute paths,
// local to the machine where minknow is installed
//
// the `output` base directory can be changed internally
// the `logs` directory will not be changed and can be stored
// the `reads` directory is determined by the read writer config
rpc get_output_directories (GetOutputDirectoriesRequest) returns (OutputDirectories) {}
// See `get_output_directories`, but this will always return the paths that are defined in the config when the instance
// of minknow has started
//
// Since 1.11
rpc get_default_output_directories(GetDefaultOutputDirectoriesRequest) returns (OutputDirectories) {}
// Set the base directory to where all data will be output. Must be an absolute directory
//
// Fails with INVALID_ARGUMENT if `value` is not absolute.
// Fails with FAILED_PRECONDITION if this is called during acquisition
//
// Since 1.11
rpc set_output_directory (SetOutputDirectoryRequest) returns (SetOutputDirectoryResponse) {}
// Set the reads directory where read files (hdf5, fastq, protobuf) will be output
//
// Fails with INVALID_ARGUMENT if `value` is not absolute.
// Fails with FAILED_PRECONDITION if this is called during acquisition
//
// Since 1.12
rpc set_reads_directory (SetReadsDirectoryRequest) returns (SetReadsDirectoryResponse) {}
// Returns information about the amount of disk space available, how much
// space is needed to stop an experiment cleanly and if MinKNOW thinks
// that the free disk-space is approaching or past this limit
//
// Since 1.11
rpc get_disk_space_info(GetDiskSpaceInfoRequest) returns (GetDiskSpaceInfoResponse) {}
// Find the machine id MinKNOW uses for this machine.
//
// This is expected to be a descriptive string for the machine, MinKNOW currently uses the network hostname.
//
// note: This is the identifier used when sending telemetry data for this instance.
//
// Since 1.11
rpc get_machine_id(GetMachineIdRequest) returns (GetMachineIdResponse) {}
// Find the host type MinKNOW is running on.
//
// This data describes the type of machine which MinKNOW is running on.
//
// Since 1.14
rpc get_host_type(GetHostTypeRequest) returns (GetHostTypeResponse) {}
// Find a summary of activity on the instance.
//
// The information available from this request is also available from other rpc's - this call is intended
// as a performance improvement for users who watch a large number of streams (specifically over
// web socket transport).
//
// Use this request to find information about the current device, flow cell, protocol and acquisition state.
//
// Since 3.2
rpc stream_instance_activity(StreamInstanceActivityRequest) returns (stream StreamInstanceActivityResponse) {}
}
message GetVersionInfoRequest {
}
message GetVersionInfoResponse {
message MinknowVersion {
int32 major = 1;
int32 minor = 2;
int32 patch = 3;
string full = 4;
}
// What minknow version is installed. Split into major, minor and patch versions
// Also includes the full version as a string, which contain the major, minor and patch numbers
// as well as if the version is pre-release version (-pre), whether it is a release candidate (-rc#)
// or whether it is a variant version (i.e. for conferences) (-variant). For non-release builds it also
// includes the hash of the commit it is based on, and whether the working copy is different from that has (-dirty)
MinknowVersion minknow = 1;
// The protocols version specifies what version of bream is installed.
// By default is set to '0.0.0.0', but will otherwise be set to a Bream release version.
string protocols = 2;
// Describes the distribution that this MinKNOW installation is part of, ususally
// this will be the Metapackage version number/identity, this will be "unknown"
// if the distribution-version hasn't been set. This information is also communicated
// in the Manager's DaemonMessage in daemon.proto
string distribution_version = 3;
enum DistributionStatus {
UNKNOWN = 0; // The distribution status is unknown or can not be determined
STABLE = 1; // Released software in that same configuration in which
// it was distributed.
UNSTABLE = 2; // Pre-release or release-candidate software that has not
// been fully tested, but has not been modified from how it
// was distributed.
MODIFIED = 3; // Some or all components have been replaced after distribution
}
// Indicates if the MinKNOW distribution including components such as Bream
// are stable, unstable or have been modified.
DistributionStatus distribution_status = 4;
// The configuration version specifies what version of ont-configuration (wanda) is installed.
// By default is set to '0.0.0.0', but will otherwise be set to a Wanda release version.
//
// Since 3.6
string configuration = 5;
}
message GetOutputDirectoriesRequest {
}
message OutputDirectories {
// The base output directory. Anything that is output to files is branched from this directory.
string output = 1;
// Directory where logs will be stored.
string log = 2;
// Base directory where reads will be outputted.
string reads = 3;
}
message GetDefaultOutputDirectoriesRequest {
}
message SetOutputDirectoryRequest {
string path = 1;
}
message SetOutputDirectoryResponse {
}
message SetReadsDirectoryRequest {
string path = 1;
}
message SetReadsDirectoryResponse {
}
// disk-usage information for one file-system
message FilesystemDiskSpaceInfo {
// The name of the file-system
string filesystem_id = 1;
// How much space is left on the file-system
uint64 bytes_available = 2;
// The total capacity of the file-system when empty.
uint64 bytes_capacity = 3;
// A list of what MinKNOW stores on this file-system, eg: reads, logs,
// intermediate-files
repeated string what = 4;
// MinKNOW needs this much space to stop an experiment. If bytes_available
// goes below this number, data could be lost!
uint64 bytes_to_stop_cleanly = 5;
// The amount of space left on the file-system when recommend_alert
// was set true.
uint64 bytes_when_alert_issued = 6;
// MinKNOW recommends that you alert someone about the disk-usage
bool recommend_alert = 7;
// MinKNOW recommends that you stop the experiment due to disk-usage
// concerns
bool recommend_stop = 8;
}
message GetDiskSpaceInfoRequest {
}
message GetDiskSpaceInfoResponse {
repeated FilesystemDiskSpaceInfo filesystem_disk_space_info = 1;
}
message GetMachineIdRequest {
}
message GetMachineIdResponse {
// The machine_id MinKNOW uses for this host.
string machine_id = 1;
}
message GetHostTypeRequest {
}
message GetHostTypeResponse {
enum HostType {
PC = 0;
PROMETHION_ALPHA = 1; // Deprecated - will never be returned by minknow
GRIDION = 2;
PROMETHION_BETA = 3;
MINIT = 4;
MINION_MK1C = 5;
}
HostType host_type = 1;
}
message StreamInstanceActivityRequest {}
message DeviceInfo {
// The current state of the device
device.GetDeviceStateResponse.DeviceState device_state = 1;
// Information about the connected device (or no content if disconnected see: device_state)
device.GetDeviceInfoResponse device_info = 2;
}
message StreamInstanceActivityResponse {
message FlowCellHealth {
// Map between channel state name and a percentage of how much time that state has been active with respect to all other channel states
//
// This is over one minute of time this is calculated over
map<string, float> channel_state_percentages = 1;
}
oneof stream_value {
// Information about whether the device is connected or not, and if it is, gives
// information about the connected device
DeviceInfo device_info = 1;
// Information about the currently conected flow cell
//
// Note: if no flow cell is connected this [flow_cell_info.has_flow_cell] will be false
device.GetFlowCellInfoResponse flow_cell_info = 2;
// Information about the in progress protocol.
//
// Note if no protocol is active this message will not be present.
protocol.ProtocolRunInfo protocol_run_info = 3;
// Information about the current acquisition run
//
// Note if no acquisition is active the message will not be present.
acquisition.AcquisitionRunInfo acquisition_run_info = 4;
// Information about the health of the flow cell within the current run
//
// Note: only available if a run is in progress
FlowCellHealth flow_cell_health = 5;
// Acquisition yield information. Describes information such as number of reads,
// what number of those reads have passed or failed basecalling etc. Rate
// limited to 1 second per update
acquisition.AcquisitionYieldSummary yield_summary = 6;
}
}