databricks-cli/libs/telemetry/api.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
563 B
Go
Raw Permalink Normal View History

2024-11-29 00:57:48 +00:00
package telemetry
// RequestBody is the request body type bindings for the /telemetry-ext API endpoint.
type RequestBody struct {
UploadTime int64 `json:"uploadTime"`
Items []string `json:"items"`
ProtoLogs []string `json:"protoLogs"`
}
// ResponseBody is the response body type bindings for the /telemetry-ext API endpoint.
type ResponseBody struct {
Errors []LogError `json:"errors"`
NumProtoSuccess int64 `json:"numProtoSuccess"`
}
type LogError struct {
2024-11-29 01:01:03 +00:00
Message string `json:"message"`
2024-11-29 00:57:48 +00:00
ErrorType string `json:"ErrorType"`
}