level1prc.proto 1.36 KB
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
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
syntax = "proto3";

package dfs.facility.level1prc;
option go_package = "cnlab.net/csst/proto/facility/level1prc";
import "common/error.proto";

service Level1PrcSrv {
        rpc Find(FindLevel1PrcReq) returns (FindLevel1PrcResp) {}
        rpc Write(WriteLevel1PrcReq) returns (WriteLevel1PrcResp) {}
        rpc UpdateProcStatus(UpdateProcStatusReq) returns (UpdateProcStatusResp) {}
}
message Level1PrcRecord {
        int64 id = 1;
        int64 level1_id = 2;
        string pipeline_id = 3;
        string prc_module = 4;
        string params_file_path = 5;
        int32 prc_status = 6;
        string prc_time = 7;
        string result_file_path = 8;
}

message FindLevel1PrcReq {
        int64 level1_id = 1;
        string pipeline_id = 2;
        string prc_module = 3;
        int32 prc_status = 4;
        map<string,string> other_conditions = 5;
}

message FindLevel1PrcResp {
        bool success = 1;
        int32 totalCount = 2;
        common.Error error = 3;
        repeated Level1PrcRecord records = 4;
}

message WriteLevel1PrcReq {
        Level1PrcRecord record = 1;
}

message WriteLevel1PrcResp {
        bool success = 1;
        common.Error error = 2;
        Level1PrcRecord record = 3;
}

message UpdateProcStatusReq {
        int64 id = 1;
        int32 status = 2;
}

message UpdateProcStatusResp {
        bool success = 1;
        common.Error error = 2;
}