-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
service.proto
50 lines (39 loc) 路 942 Bytes
/
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
49
50
syntax = "proto3";
package service.v1;
import "common/v1/grpc_status.proto";
option go_package = "github.com/roadrunner-server/api/v4/build/service/v1;serviceV1";
option php_metadata_namespace = "RoadRunner\\Service\\DTO\\V1\\GPBMetadata";
option php_namespace = "RoadRunner\\Service\\DTO\\V1";
message Response {
string message = 1;
bool ok = 2;
}
message Create {
string name = 1;
string command = 2;
int64 process_num = 3;
int64 exec_timeout = 4;
bool remain_after_exit = 5;
map<string, string> env = 6;
uint64 restart_sec = 7;
// new in 2023.2
bool service_name_in_logs = 8;
uint64 timeout_stop_sec = 9;
}
message Statuses {
repeated Status status = 1;
}
message Status {
float cpu_percent = 1;
int32 pid = 2;
uint64 memory_usage = 3;
string command = 4;
// error state
common.v1.Status status = 5;
}
message Service {
string name = 1;
}
message List {
repeated string services = 1;
}