diff --git a/go/types/v1/query_metrics.pb.go b/go/types/v1/query_metrics.pb.go index de55554..b5502b8 100644 --- a/go/types/v1/query_metrics.pb.go +++ b/go/types/v1/query_metrics.pb.go @@ -25,12 +25,11 @@ const ( type QueryMetrics struct { state protoimpl.MessageState `protogen:"open.v1"` QueryText string `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"` - GeneratedSql string `protobuf:"bytes,2,opt,name=generated_sql,json=generatedSql,proto3" json:"generated_sql,omitempty"` - TotalLatency *durationpb.Duration `protobuf:"bytes,3,opt,name=total_latency,json=totalLatency,proto3" json:"total_latency,omitempty"` - RowsReturned int64 `protobuf:"varint,4,opt,name=rows_returned,json=rowsReturned,proto3" json:"rows_returned,omitempty"` - RowsScanned int64 `protobuf:"varint,5,opt,name=rows_scanned,json=rowsScanned,proto3" json:"rows_scanned,omitempty"` - BytesReturned int64 `protobuf:"varint,6,opt,name=bytes_returned,json=bytesReturned,proto3" json:"bytes_returned,omitempty"` - BytesScanned int64 `protobuf:"varint,7,opt,name=bytes_scanned,json=bytesScanned,proto3" json:"bytes_scanned,omitempty"` + TotalLatency *durationpb.Duration `protobuf:"bytes,2,opt,name=total_latency,json=totalLatency,proto3" json:"total_latency,omitempty"` + RowsReturned int64 `protobuf:"varint,3,opt,name=rows_returned,json=rowsReturned,proto3" json:"rows_returned,omitempty"` + RowsScanned int64 `protobuf:"varint,4,opt,name=rows_scanned,json=rowsScanned,proto3" json:"rows_scanned,omitempty"` + BytesReturned int64 `protobuf:"varint,5,opt,name=bytes_returned,json=bytesReturned,proto3" json:"bytes_returned,omitempty"` + BytesScanned int64 `protobuf:"varint,6,opt,name=bytes_scanned,json=bytesScanned,proto3" json:"bytes_scanned,omitempty"` // Detailed metrics (only included if profiling enabled) Detailed *QueryMetrics_Detailed `protobuf:"bytes,8,opt,name=detailed,proto3" json:"detailed,omitempty"` unknownFields protoimpl.UnknownFields @@ -74,13 +73,6 @@ func (x *QueryMetrics) GetQueryText() string { return "" } -func (x *QueryMetrics) GetGeneratedSql() string { - if x != nil { - return x.GeneratedSql - } - return "" -} - func (x *QueryMetrics) GetTotalLatency() *durationpb.Duration { if x != nil { return x.TotalLatency @@ -187,16 +179,15 @@ var File_types_v1_query_metrics_proto protoreflect.FileDescriptor const file_types_v1_query_metrics_proto_rawDesc = "" + "\n" + - "\x1ctypes/v1/query_metrics.proto\x12\btypes.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x14types/v1/types.proto\"\xf9\x03\n" + + "\x1ctypes/v1/query_metrics.proto\x12\btypes.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x14types/v1/types.proto\"\xd4\x03\n" + "\fQueryMetrics\x12\x1d\n" + "\n" + - "query_text\x18\x01 \x01(\tR\tqueryText\x12#\n" + - "\rgenerated_sql\x18\x02 \x01(\tR\fgeneratedSql\x12>\n" + - "\rtotal_latency\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\ftotalLatency\x12#\n" + - "\rrows_returned\x18\x04 \x01(\x03R\frowsReturned\x12!\n" + - "\frows_scanned\x18\x05 \x01(\x03R\vrowsScanned\x12%\n" + - "\x0ebytes_returned\x18\x06 \x01(\x03R\rbytesReturned\x12#\n" + - "\rbytes_scanned\x18\a \x01(\x03R\fbytesScanned\x12;\n" + + "query_text\x18\x01 \x01(\tR\tqueryText\x12>\n" + + "\rtotal_latency\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\ftotalLatency\x12#\n" + + "\rrows_returned\x18\x03 \x01(\x03R\frowsReturned\x12!\n" + + "\frows_scanned\x18\x04 \x01(\x03R\vrowsScanned\x12%\n" + + "\x0ebytes_returned\x18\x05 \x01(\x03R\rbytesReturned\x12#\n" + + "\rbytes_scanned\x18\x06 \x01(\x03R\fbytesScanned\x12;\n" + "\bdetailed\x18\b \x01(\v2\x1f.types.v1.QueryMetrics.DetailedR\bdetailed\x1a\x93\x01\n" + "\bDetailed\x12%\n" + "\x0eexecution_plan\x18\x01 \x01(\fR\rexecutionPlan\x124\n" + diff --git a/js/types/v1/query_metrics_pb.ts b/js/types/v1/query_metrics_pb.ts index 98a8421..f2ee2a4 100644 --- a/js/types/v1/query_metrics_pb.ts +++ b/js/types/v1/query_metrics_pb.ts @@ -13,7 +13,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file types/v1/query_metrics.proto. */ export const file_types_v1_query_metrics: GenFile = /*@__PURE__*/ - fileDesc("Chx0eXBlcy92MS9xdWVyeV9tZXRyaWNzLnByb3RvEgh0eXBlcy52MSLmAgoMUXVlcnlNZXRyaWNzEhIKCnF1ZXJ5X3RleHQYASABKAkSFQoNZ2VuZXJhdGVkX3NxbBgCIAEoCRIwCg10b3RhbF9sYXRlbmN5GAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhUKDXJvd3NfcmV0dXJuZWQYBCABKAMSFAoMcm93c19zY2FubmVkGAUgASgDEhYKDmJ5dGVzX3JldHVybmVkGAYgASgDEhUKDWJ5dGVzX3NjYW5uZWQYByABKAMSMQoIZGV0YWlsZWQYCCABKAsyHy50eXBlcy52MS5RdWVyeU1ldHJpY3MuRGV0YWlsZWQaagoIRGV0YWlsZWQSFgoOZXhlY3V0aW9uX3BsYW4YASABKAwSKwoIY3B1X3RpbWUYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SGQoRbWVtb3J5X3BlYWtfYnl0ZXMYAyABKANCkQEKDGNvbS50eXBlcy52MUIRUXVlcnlNZXRyaWNzUHJvdG9QAVotZ2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby90eXBlcy92MTt0eXBlc3YxogIDVFhYqgIIVHlwZXMuVjHKAghUeXBlc1xWMeICFFR5cGVzXFYxXEdQQk1ldGFkYXRh6gIJVHlwZXM6OlYxYgZwcm90bzM", [file_google_protobuf_duration, file_types_v1_types]); + fileDesc("Chx0eXBlcy92MS9xdWVyeV9tZXRyaWNzLnByb3RvEgh0eXBlcy52MSLPAgoMUXVlcnlNZXRyaWNzEhIKCnF1ZXJ5X3RleHQYASABKAkSMAoNdG90YWxfbGF0ZW5jeRgCIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIVCg1yb3dzX3JldHVybmVkGAMgASgDEhQKDHJvd3Nfc2Nhbm5lZBgEIAEoAxIWCg5ieXRlc19yZXR1cm5lZBgFIAEoAxIVCg1ieXRlc19zY2FubmVkGAYgASgDEjEKCGRldGFpbGVkGAggASgLMh8udHlwZXMudjEuUXVlcnlNZXRyaWNzLkRldGFpbGVkGmoKCERldGFpbGVkEhYKDmV4ZWN1dGlvbl9wbGFuGAEgASgMEisKCGNwdV90aW1lGAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhkKEW1lbW9yeV9wZWFrX2J5dGVzGAMgASgDQpEBCgxjb20udHlwZXMudjFCEVF1ZXJ5TWV0cmljc1Byb3RvUAFaLWdpdGh1Yi5jb20vaHVtYW5sb2dpby9hcGkvZ28vdHlwZXMvdjE7dHlwZXN2MaICA1RYWKoCCFR5cGVzLlYxygIIVHlwZXNcVjHiAhRUeXBlc1xWMVxHUEJNZXRhZGF0YeoCCVR5cGVzOjpWMWIGcHJvdG8z", [file_google_protobuf_duration, file_types_v1_types]); /** * @generated from message types.v1.QueryMetrics @@ -25,32 +25,27 @@ export type QueryMetrics = Message<"types.v1.QueryMetrics"> & { queryText: string; /** - * @generated from field: string generated_sql = 2; - */ - generatedSql: string; - - /** - * @generated from field: google.protobuf.Duration total_latency = 3; + * @generated from field: google.protobuf.Duration total_latency = 2; */ totalLatency?: Duration; /** - * @generated from field: int64 rows_returned = 4; + * @generated from field: int64 rows_returned = 3; */ rowsReturned: bigint; /** - * @generated from field: int64 rows_scanned = 5; + * @generated from field: int64 rows_scanned = 4; */ rowsScanned: bigint; /** - * @generated from field: int64 bytes_returned = 6; + * @generated from field: int64 bytes_returned = 5; */ bytesReturned: bigint; /** - * @generated from field: int64 bytes_scanned = 7; + * @generated from field: int64 bytes_scanned = 6; */ bytesScanned: bigint; diff --git a/proto/types/v1/query_metrics.proto b/proto/types/v1/query_metrics.proto index 2e75242..99fc752 100644 --- a/proto/types/v1/query_metrics.proto +++ b/proto/types/v1/query_metrics.proto @@ -9,13 +9,13 @@ option go_package = "types/v1;typesv1"; message QueryMetrics { string query_text = 1; - string generated_sql = 2; - google.protobuf.Duration total_latency = 3; - int64 rows_returned = 4; - int64 rows_scanned = 5; - int64 bytes_returned = 6; - int64 bytes_scanned = 7; + google.protobuf.Duration total_latency = 2; + + int64 rows_returned = 3; + int64 rows_scanned = 4; + int64 bytes_returned = 5; + int64 bytes_scanned = 6; message Detailed { bytes execution_plan = 1;