-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathservice.proto
48 lines (39 loc) · 1.3 KB
/
service.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
syntax = "proto3";
package nighthawk.client;
import "google/protobuf/duration.proto";
import "google/rpc/status.proto";
import "validate/validate.proto";
import "api/client/options.proto";
import "api/client/output.proto";
message StartRequest {
CommandLineOptions options = 1;
}
// TODO(oschaaf): Not implemented yet.
message UpdateRequest {
}
// TODO(oschaaf): Not implemented yet.
message CancellationRequest {
}
message ExecutionRequest {
oneof command_specific_options {
option (validate.required) = true;
StartRequest start_request = 1;
UpdateRequest update_request = 2;
CancellationRequest cancellation_request = 3;
}
}
message ExecutionResponse {
Output output = 1;
google.rpc.Status error_detail = 7;
// Opaque identifier for lookup purposes. This will be taken from CommandLineOptions if set,
// if it is not set there it will be auto-generated. The format used for auto-generated
// identifiers may change at any time.
string execution_id = 8;
}
service NighthawkService {
// Accepts a stream of ExecutionRequests, which can be used to initiate, update, or cancel a
// test. Returns a stream of ExecutionResponse objects which will contain results for all
// Nighthawk runs.
rpc ExecutionStream(stream ExecutionRequest) returns (stream ExecutionResponse) {
}
}