Skip to content

Commit 0d53b16

Browse files
author
Michal Tichák
committed
fixup! [core] Added timestamp to all gRPC calls
1 parent fb32d65 commit 0d53b16

File tree

3 files changed

+102
-76
lines changed

3 files changed

+102
-76
lines changed

core/protos/o2control.proto

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ message GetFrameworkInfoReply {
100100
repeated string detectorsInInstance = 9;
101101
repeated string activeDetectors = 10;
102102
repeated string availableDetectors = 11;
103-
int64 timestamp = 12;
103+
int64 timestamp = 12; // timestamp of when this object was sent in unix milliseconds
104104
}
105105

106106
// Not implemented yet
@@ -119,7 +119,7 @@ message GetEnvironmentsRequest {
119119
message GetEnvironmentsReply {
120120
string frameworkId = 1;
121121
repeated EnvironmentInfo environments = 2;
122-
int64 timestamp = 3;
122+
int64 timestamp = 3; // timestamp of when this object was sent in unix milliseconds
123123
}
124124
message EnvironmentInfo {
125125
string id = 1;
@@ -152,7 +152,7 @@ message NewEnvironmentRequest {
152152
message NewEnvironmentReply {
153153
EnvironmentInfo environment = 1;
154154
bool public = 2;
155-
int64 timestamp = 3;
155+
int64 timestamp = 3; // timestamp of when this object was sent in unix milliseconds
156156
}
157157
message NewAutoEnvironmentRequest {
158158
string workflowTemplate = 1;
@@ -161,7 +161,7 @@ message NewAutoEnvironmentRequest {
161161
common.User requestUser = 4;
162162
}
163163
message NewAutoEnvironmentReply {
164-
int64 timestamp = 1;
164+
int64 timestamp = 1; // timestamp of when this object was sent in unix milliseconds
165165
}
166166

167167
message GetEnvironmentRequest {
@@ -172,7 +172,7 @@ message GetEnvironmentReply {
172172
EnvironmentInfo environment = 1;
173173
RoleInfo workflow = 2;
174174
bool public = 3;
175-
int64 timestamp = 4;
175+
int64 timestamp = 4; // timestamp of when this object was sent in unix milliseconds
176176
}
177177

178178
message ControlEnvironmentRequest {
@@ -197,7 +197,7 @@ message ControlEnvironmentReply {
197197
int64 startOfTransition = 4;
198198
int64 endOfTransition = 5;
199199
int64 transitionDuration = 6;
200-
int64 timestamp = 7;
200+
int64 timestamp = 7; // timestamp of when this object was sent in unix milliseconds
201201
}
202202

203203
message ModifyEnvironmentRequest {
@@ -229,17 +229,17 @@ message DestroyEnvironmentRequest {
229229
}
230230
message DestroyEnvironmentReply {
231231
CleanupTasksReply cleanupTasksReply = 1;
232-
int64 timestamp = 2;
232+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
233233
}
234234

235235
message GetActiveDetectorsReply {
236236
repeated string detectors = 1;
237-
int64 timestamp = 2;
237+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
238238
}
239239

240240
message GetAvailableDetectorsReply {
241241
repeated string detectors = 1;
242-
int64 timestamp = 2;
242+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
243243
}
244244

245245
////////////////////////////////////////
@@ -292,14 +292,14 @@ message TaskDeploymentInfo {
292292
message GetTasksRequest {}
293293
message GetTasksReply {
294294
repeated ShortTaskInfo tasks = 1;
295-
int64 timestamp = 2;
295+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
296296
}
297297
message GetTaskRequest {
298298
string taskId = 1;
299299
}
300300
message GetTaskReply {
301301
TaskInfo task = 1;
302-
int64 timestamp = 2;
302+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
303303
}
304304

305305
message CommandInfo {
@@ -331,7 +331,7 @@ message CleanupTasksRequest {
331331
message CleanupTasksReply {
332332
repeated ShortTaskInfo killedTasks = 1;
333333
repeated ShortTaskInfo runningTasks = 2;
334-
int64 timestamp = 3;
334+
int64 timestamp = 3; // timestamp of when this object was sent in unix milliseconds
335335
}
336336

337337
////////////////////////////////////////
@@ -358,7 +358,7 @@ message RoleInfo {
358358

359359
message GetRolesReply {
360360
repeated RoleInfo roles = 1;
361-
int64 timestamp = 2;
361+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
362362
}
363363

364364
message GetWorkflowTemplatesRequest{
@@ -411,7 +411,7 @@ message WorkflowTemplateInfo {
411411

412412
message GetWorkflowTemplatesReply{
413413
repeated WorkflowTemplateInfo workflowTemplates = 1;
414-
int64 timestamp = 2;
414+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
415415
}
416416

417417
////////////////////////////////////////
@@ -432,7 +432,7 @@ message RepoInfo {
432432
message ListReposReply {
433433
repeated RepoInfo repos = 1;
434434
string globalDefaultRevision = 2;
435-
int64 timestamp = 3;
435+
int64 timestamp = 3; // timestamp of when this object was sent in unix milliseconds
436436
}
437437

438438
message AddRepoRequest {
@@ -443,7 +443,7 @@ message AddRepoRequest {
443443
message AddRepoReply {
444444
string newDefaultRevision = 1;
445445
string info = 2;
446-
int64 timestamp = 3;
446+
int64 timestamp = 3; // timestamp of when this object was sent in unix milliseconds
447447
}
448448

449449
message RemoveRepoRequest {
@@ -452,7 +452,7 @@ message RemoveRepoRequest {
452452

453453
message RemoveRepoReply {
454454
string newDefaultRepo = 1;
455-
int64 timestamp = 2;
455+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
456456
}
457457

458458
message RefreshReposRequest {
@@ -474,7 +474,7 @@ message SetRepoDefaultRevisionRequest {
474474

475475
message SetRepoDefaultRevisionReply {
476476
string info = 1;
477-
int64 timestamp = 2;
477+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
478478
}
479479

480480
message Empty {
@@ -483,7 +483,7 @@ message Empty {
483483

484484
message ListIntegratedServicesReply {
485485
map<string, IntegratedServiceInfo> services = 1; // keys are IDs (e.g. "ddsched"), the service name should be displayed to users instead
486-
int64 timestamp = 2;
486+
int64 timestamp = 2; // timestamp of when this object was sent in unix milliseconds
487487
}
488488

489489
message IntegratedServiceInfo {

0 commit comments

Comments
 (0)