Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: common/api/logdog_coordinator/services/v1/service.proto

Issue 1863973002: LogDog: Update to archival V2. (Closed) Base URL: https://github.com/luci/luci-go@grpcutil-errors
Patch Set: Minor fixes, works in dev now. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto3"; 5 syntax = "proto3";
6 6
7 package logdog; 7 package logdog;
8 8
9 import "state.proto"; 9 import "state.proto";
10 import "github.com/luci/luci-go/common/proto/logdog/logpb/log.proto"; 10 import "github.com/luci/luci-go/common/proto/logdog/logpb/log.proto";
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 // TerminateStreamRequest is the set of caller-supplied data for the 73 // TerminateStreamRequest is the set of caller-supplied data for the
74 // TerminateStream service endpoint. 74 // TerminateStream service endpoint.
75 message TerminateStreamRequest { 75 message TerminateStreamRequest {
76 // The log stream's path. 76 // The log stream's path.
77 string path = 1; 77 string path = 1;
78 // The log stream's secret. 78 // The log stream's secret.
79 bytes secret = 2; 79 bytes secret = 2;
80 80
81 // The terminal index of the stream. 81 // The number of entries in the log stream.
Vadim Sh. 2016/04/07 01:21:32 in LogStreamState it is "index", here it is "numbe
dnj 2016/04/11 17:20:04 Sorry I was considering changing this, then revert
82 int64 terminal_index = 3; 82 int64 terminal_index = 3;
83 } 83 }
84 84
85 // ArchiveStreamRequest is the set of caller-supplied data for the ArchiveStream 85 // ArchiveStreamRequest is the set of caller-supplied data for the ArchiveStream
86 // service endpoint. 86 // service endpoint.
87 message ArchiveStreamRequest { 87 message ArchiveStreamRequest {
88 // The path of the log stream that was archived. 88 // The path of the log stream that was archived.
89 string path = 1; 89 string path = 1;
90 // If true, the archive includes the full set of log stream entries between 90 // The number of log entries that were archived.
91 // [0..terminal_index]. 91 int64 log_entry_count = 2;
92 bool complete = 2;
93 // The highest log stream index that was archived. 92 // The highest log stream index that was archived.
94 int64 terminal_index = 3; 93 int64 terminal_index = 3;
94 // If true, there was an archival error, and the referenced streams should be
95 // considered invalid.
96 bool error = 4;
Vadim Sh. 2016/04/07 01:21:32 maybe "string error" // if not empty, there was an
dnj 2016/04/11 17:20:04 I don't want to retain the error in datastore, so
95 97
96 // The archive URL of the log stream's stream data. 98 // The archive URL of the log stream's stream data.
97 string stream_url = 10; 99 string stream_url = 10;
98 // The size of the log stream's stream data. 100 // The size of the log stream's stream data.
99 int64 stream_size = 11; 101 int64 stream_size = 11;
100 102
101 // The archive URL of the log stream's index data. 103 // The archive URL of the log stream's index data.
102 string index_url = 20; 104 string index_url = 20;
103 // The size of the log stream's index data. 105 // The size of the log stream's index data.
104 int64 index_size = 21; 106 int64 index_size = 21;
(...skipping 19 matching lines...) Expand all
124 126
125 // TerminateStream is an idempotent operation to update the stream's terminal 127 // TerminateStream is an idempotent operation to update the stream's terminal
126 // index. 128 // index.
127 rpc TerminateStream(TerminateStreamRequest) returns (google.protobuf.Empty); 129 rpc TerminateStream(TerminateStreamRequest) returns (google.protobuf.Empty);
128 130
129 // ArchiveStream is an idempotent operation to record a log stream's archival 131 // ArchiveStream is an idempotent operation to record a log stream's archival
130 // parameters. It is used by the Archivist service upon successful stream 132 // parameters. It is used by the Archivist service upon successful stream
131 // archival. 133 // archival.
132 rpc ArchiveStream(ArchiveStreamRequest) returns (google.protobuf.Empty); 134 rpc ArchiveStream(ArchiveStreamRequest) returns (google.protobuf.Empty);
133 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698