forked from hove-io/navitia-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stat.proto
128 lines (115 loc) · 4.1 KB
/
stat.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
syntax = "proto2";
import "type.proto";
package pbnavitia;
message StatParameter {
optional string key = 1;
optional string value = 2;
}
message Filter{
optional string object = 1;
optional string attribute = 2;
optional string operator = 3;
optional string value = 4;
};
message InterpretedParameter {
optional string key = 1;
optional string value = 2;
repeated Filter filters = 3;
}
message StatError {
optional string id = 1;
optional string message = 2;
}
message StatCoverage{
optional string region_id = 1;
}
message StatRequest {
//POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC)
optional uint64 request_date = 1;
optional int32 user_id = 2;
optional string user_name = 3;
optional int32 application_id = 4;
optional string application_name = 5;
optional int32 request_duration = 6;
optional string api = 7;
optional string path = 8;
optional string host = 10;
optional int32 response_size = 11;
optional string client = 12;
repeated StatCoverage coverages = 13;
repeated StatParameter parameters = 14;
optional StatError error = 15;
repeated StatJourneyResponse journeys = 16;
repeated InterpretedParameter interpreted_parameters = 17;
optional JourneyRequest journey_request = 18;
optional int32 end_point_id = 19;
optional string end_point_name = 20;
optional StatInfoResponse info_response = 21;
optional string token = 22;
}
message JourneyRequest {
//POSIX time (i.e., number of seconds since January 1st 1970 00:00:00 UTC)
required uint64 requested_date_time = 1;
required bool clockwise = 2;
optional string departure_insee = 3;
optional string departure_admin = 4;
optional string arrival_insee = 5;
optional string arrival_admin = 6;
optional string departure_admin_name = 7;
optional string arrival_admin_name = 8;
}
message StatJourneyResponse {
optional uint64 requested_date_time = 1;
optional uint64 departure_date_time = 2;
optional uint64 arrival_date_time = 3;
optional int32 duration = 4;
optional int32 nb_transfers = 5;
optional string type = 6;
repeated StatJourneySection sections = 7;
optional string first_pt_id = 8;
optional string first_pt_name = 9;
optional GeographicalCoord first_pt_coord = 10;
optional string first_pt_admin_id = 11;
optional string first_pt_admin_name = 12;
optional string first_pt_admin_insee = 13;
optional string last_pt_id = 14;
optional string last_pt_name = 15;
optional GeographicalCoord last_pt_coord = 16;
optional string last_pt_admin_id = 17;
optional string last_pt_admin_name = 18;
optional string last_pt_admin_insee = 19;
}
message StatJourneySection {
optional uint64 departure_date_time = 1;
optional uint64 arrival_date_time = 2;
optional int32 duration = 3;
optional string type = 4;
optional string mode = 5;
optional string from_embedded_type = 6;
optional string from_id = 7;
optional string from_name = 8;
optional GeographicalCoord from_coord = 9;
optional string from_admin_id = 10;
optional string from_admin_name = 11;
optional string to_embedded_type = 12;
optional string to_id = 13;
optional string to_name = 14;
optional GeographicalCoord to_coord = 15;
optional string to_admin_id = 16;
optional string to_admin_name = 17;
optional string vehicle_journey_id = 18;
optional string line_id = 19;
optional string line_code = 20;
optional string route_id = 21;
optional string network_id = 22;
optional string network_name = 23;
optional string physical_mode_id = 24;
optional string physical_mode_name = 25;
optional string commercial_mode_id = 26;
optional string commercial_mode_name = 27;
optional string from_admin_insee = 28;
optional string to_admin_insee = 29;
}
message StatInfoResponse {
optional int32 object_count = 1;
}