diff --git a/src/bitdrift_public/protobuf/bdtail/v1/bdtail_api.proto b/src/bitdrift_public/protobuf/bdtail/v1/bdtail_api.proto deleted file mode 100644 index 9fbf55d..0000000 --- a/src/bitdrift_public/protobuf/bdtail/v1/bdtail_api.proto +++ /dev/null @@ -1,51 +0,0 @@ -// api - bitdrift's client/server API definitions -// Copyright Bitdrift, Inc. All rights reserved. -// -// Use of this source code and APIs are governed by a source available license that can be found in -// the LICENSE file or at: -// https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt - -syntax = "proto3"; - -package bitdrift_public.protobuf.bdtail.v1; - -import "bitdrift_public/protobuf/logging/v1/payload.proto"; -import "validate/validate.proto"; - -message TailLogsRequest { - // A DSL expression that is used to target clients and filter logs. This is parsed and validated - // by the server. - string dsl_expression = 1; - - // 0: old clients that do not support the new proto structured logs. - // 1: switched to proto structured logs. - uint32 config_version = 2; -} - -message Logs { - // A single batch of logs tailed via the tail API. Encoded as flatbuffer `Log`s. - // This is deprecated in place of proto logs below. This will be removed once we fully roll out - // proto logs. - repeated bytes logs = 1; - - // A single batch of logs tailed via the tail API. Encoded as proto `Log`s. - repeated logging.v1.Log proto_logs = 2; -} - -message InvalidRequest { - string error_message = 1 [(validate.rules).string.min_len = 1]; -} - -message TailLogsResponse { - oneof response { - // Logs are streamed based on the most recently seen request. - Logs logs = 1; - - // The most recently seen request was invalid. This will be followed by a stream close. - InvalidRequest invalid_request = 2; - } -} - -service BDTail { - rpc TailLogs(TailLogsRequest) returns (stream TailLogsResponse); -}