From f092e215949a86b7abc2a7162eca05345d1967bd Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Wed, 29 Jan 2025 16:45:21 +0100 Subject: [PATCH] add back worker input --- libs/telemetry/api.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/telemetry/api.go b/libs/telemetry/api.go index 4e3f6c861..c9346ccf9 100644 --- a/libs/telemetry/api.go +++ b/libs/telemetry/api.go @@ -1,5 +1,10 @@ package telemetry +import ( + "github.com/databricks/cli/libs/telemetry/protos" + "github.com/databricks/databricks-sdk-go/config" +) + // RequestBody is the request body type bindings for the /telemetry-ext API endpoint. type RequestBody struct { // Timestamp in millis for when the log was uploaded. @@ -29,3 +34,8 @@ type LogError struct { Message string `json:"message"` ErrorType string `json:"errorType"` } + +type WorkerInput struct { + AuthConfig *config.Config `json:"authConfig"` + Logs []protos.FrontendLog `json:"logs"` +}