| OLD | NEW |
| 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 "google/protobuf/timestamp.proto"; | 9 import "google/protobuf/timestamp.proto"; |
| 10 | 10 |
| 11 // LogStreamState is a bidirectional state value used in UpdateStream calls. | 11 // LogStreamState is a bidirectional state value used in UpdateStream calls. |
| 12 // | 12 // |
| 13 // LogStreamState is embeddable in Endpoints request/response structs. | 13 // LogStreamState is embeddable in Endpoints request/response structs. |
| 14 message LogStreamState { | 14 message LogStreamState { |
| 15 // ProtoVersion is the protobuf version for this stream. | 15 // ProtoVersion is the protobuf version for this stream. |
| 16 string proto_version = 1; | 16 string proto_version = 1; |
| 17 | 17 |
| 18 // The time when the log stream was registered with the Coordinator. | 18 // The time when the log stream was registered with the Coordinator. |
| 19 google.protobuf.Timestamp created = 2; | 19 google.protobuf.Timestamp created = 2; |
| 20 // The time when the log stream's state was last updated. | |
| 21 google.protobuf.Timestamp updated = 3; | |
| 22 | 20 |
| 23 // The stream index of the log stream's terminal message. If the value i
s -1, | 21 // The stream index of the log stream's terminal message. If the value i
s -1, |
| 24 // the log is still streaming. | 22 // the log is still streaming. |
| 25 » int64 terminal_index = 4; | 23 » int64 terminal_index = 3; |
| 26 | 24 |
| 27 // ArchiveInfo contains archive details for the log stream. | 25 // ArchiveInfo contains archive details for the log stream. |
| 28 message ArchiveInfo { | 26 message ArchiveInfo { |
| 29 // The Google Storage URL where the log stream's index is archived. | 27 // The Google Storage URL where the log stream's index is archived. |
| 30 string index_url = 1; | 28 string index_url = 1; |
| 31 // The Google Storage URL where the log stream's raw stream data is archived
. | 29 // The Google Storage URL where the log stream's raw stream data is archived
. |
| 32 string stream_url = 2; | 30 string stream_url = 2; |
| 33 // The Google Storage URL where the log stream's assembled data is archived. | 31 // The Google Storage URL where the log stream's assembled data is archived. |
| 34 string data_url = 3; | 32 string data_url = 3; |
| 35 | 33 |
| 36 // If true, all log entries between 0 and terminal_index were archived. If | 34 // If true, all log entries between 0 and terminal_index were archived. If |
| 37 // false, this indicates that the log stream was not completely loaded into | 35 // false, this indicates that the log stream was not completely loaded into |
| 38 // intermediate storage when the archival interval expired. | 36 // intermediate storage when the archival interval expired. |
| 39 bool whole = 4; | 37 bool complete = 4; |
| 38 |
| 39 // The number of log |
| 40 int64 log_entry_count = 5; |
| 40 } | 41 } |
| 41 // If non-nil, the log stream is archived, and this field contains archival | 42 // If non-nil, the log stream is archived, and this field contains archival |
| 42 // details. | 43 // details. |
| 43 ArchiveInfo archive = 5; | 44 ArchiveInfo archive = 4; |
| 44 | 45 |
| 45 // Indicates the purged state of a log. A log that has been purged is on
ly | 46 // Indicates the purged state of a log. A log that has been purged is on
ly |
| 46 // acknowledged to administrative clients. | 47 // acknowledged to administrative clients. |
| 47 » bool purged = 6; | 48 » bool purged = 5; |
| 48 } | 49 } |
| OLD | NEW |