diff --git a/go/types/v1/query_metrics.pb.go b/go/types/v1/query_metrics.pb.go index 1c10d08..ba3c342 100644 --- a/go/types/v1/query_metrics.pb.go +++ b/go/types/v1/query_metrics.pb.go @@ -23,17 +23,20 @@ const ( ) type QueryMetrics struct { - state protoimpl.MessageState `protogen:"open.v1"` - QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` - QueryText string `protobuf:"bytes,2,opt,name=query_text,json=queryText,proto3" json:"query_text,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,oneof" json:"bytes_returned,omitempty"` - BytesScanned *int64 `protobuf:"varint,7,opt,name=bytes_scanned,json=bytesScanned,proto3,oneof" json:"bytes_scanned,omitempty"` - Detailed *QueryMetrics_Detailed `protobuf:"bytes,8,opt,name=detailed,proto3" json:"detailed,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + QueryText string `protobuf:"bytes,2,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"` + QuerySentLatency *durationpb.Duration `protobuf:"bytes,300,opt,name=query_sent_latency,json=querySentLatency,proto3" json:"query_sent_latency,omitempty"` + FirstResultLatency *durationpb.Duration `protobuf:"bytes,301,opt,name=first_result_latency,json=firstResultLatency,proto3" json:"first_result_latency,omitempty"` + FinalResultLatency *durationpb.Duration `protobuf:"bytes,302,opt,name=final_result_latency,json=finalResultLatency,proto3" json:"final_result_latency,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,oneof" json:"bytes_returned,omitempty"` + BytesScanned *int64 `protobuf:"varint,7,opt,name=bytes_scanned,json=bytesScanned,proto3,oneof" json:"bytes_scanned,omitempty"` + Detailed *QueryMetrics_Detailed `protobuf:"bytes,8,opt,name=detailed,proto3" json:"detailed,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *QueryMetrics) Reset() { @@ -80,6 +83,27 @@ func (x *QueryMetrics) GetQueryText() string { return "" } +func (x *QueryMetrics) GetQuerySentLatency() *durationpb.Duration { + if x != nil { + return x.QuerySentLatency + } + return nil +} + +func (x *QueryMetrics) GetFirstResultLatency() *durationpb.Duration { + if x != nil { + return x.FirstResultLatency + } + return nil +} + +func (x *QueryMetrics) GetFinalResultLatency() *durationpb.Duration { + if x != nil { + return x.FinalResultLatency + } + return nil +} + func (x *QueryMetrics) GetTotalLatency() *durationpb.Duration { if x != nil { return x.TotalLatency @@ -186,11 +210,14 @@ 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\"\x9e\x04\n" + + "\x1ctypes/v1/query_metrics.proto\x12\btypes.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x14types/v1/types.proto\"\x84\x06\n" + "\fQueryMetrics\x12\x19\n" + "\bquery_id\x18\x01 \x01(\tR\aqueryId\x12\x1d\n" + "\n" + - "query_text\x18\x02 \x01(\tR\tqueryText\x12>\n" + + "query_text\x18\x02 \x01(\tR\tqueryText\x12H\n" + + "\x12query_sent_latency\x18\xac\x02 \x01(\v2\x19.google.protobuf.DurationR\x10querySentLatency\x12L\n" + + "\x14first_result_latency\x18\xad\x02 \x01(\v2\x19.google.protobuf.DurationR\x12firstResultLatency\x12L\n" + + "\x14final_result_latency\x18\xae\x02 \x01(\v2\x19.google.protobuf.DurationR\x12finalResultLatency\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" + @@ -224,14 +251,17 @@ var file_types_v1_query_metrics_proto_goTypes = []any{ (*durationpb.Duration)(nil), // 2: google.protobuf.Duration } var file_types_v1_query_metrics_proto_depIdxs = []int32{ - 2, // 0: types.v1.QueryMetrics.total_latency:type_name -> google.protobuf.Duration - 1, // 1: types.v1.QueryMetrics.detailed:type_name -> types.v1.QueryMetrics.Detailed - 2, // 2: types.v1.QueryMetrics.Detailed.cpu_time:type_name -> google.protobuf.Duration - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 2, // 0: types.v1.QueryMetrics.query_sent_latency:type_name -> google.protobuf.Duration + 2, // 1: types.v1.QueryMetrics.first_result_latency:type_name -> google.protobuf.Duration + 2, // 2: types.v1.QueryMetrics.final_result_latency:type_name -> google.protobuf.Duration + 2, // 3: types.v1.QueryMetrics.total_latency:type_name -> google.protobuf.Duration + 1, // 4: types.v1.QueryMetrics.detailed:type_name -> types.v1.QueryMetrics.Detailed + 2, // 5: types.v1.QueryMetrics.Detailed.cpu_time:type_name -> google.protobuf.Duration + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_types_v1_query_metrics_proto_init() } diff --git a/js/types/v1/query_metrics_pb.ts b/js/types/v1/query_metrics_pb.ts index 9114fe3..df9a087 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("Chx0eXBlcy92MS9xdWVyeV9tZXRyaWNzLnByb3RvEgh0eXBlcy52MSKQAwoMUXVlcnlNZXRyaWNzEhAKCHF1ZXJ5X2lkGAEgASgJEhIKCnF1ZXJ5X3RleHQYAiABKAkSMAoNdG90YWxfbGF0ZW5jeRgDIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIVCg1yb3dzX3JldHVybmVkGAQgASgDEhQKDHJvd3Nfc2Nhbm5lZBgFIAEoAxIbCg5ieXRlc19yZXR1cm5lZBgGIAEoA0gAiAEBEhoKDWJ5dGVzX3NjYW5uZWQYByABKANIAYgBARIxCghkZXRhaWxlZBgIIAEoCzIfLnR5cGVzLnYxLlF1ZXJ5TWV0cmljcy5EZXRhaWxlZBpqCghEZXRhaWxlZBIWCg5leGVjdXRpb25fcGxhbhgBIAEoDBIrCghjcHVfdGltZRgCIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIZChFtZW1vcnlfcGVha19ieXRlcxgDIAEoA0IRCg9fYnl0ZXNfcmV0dXJuZWRCEAoOX2J5dGVzX3NjYW5uZWRCkQEKDGNvbS50eXBlcy52MUIRUXVlcnlNZXRyaWNzUHJvdG9QAVotZ2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby90eXBlcy92MTt0eXBlc3YxogIDVFhYqgIIVHlwZXMuVjHKAghUeXBlc1xWMeICFFR5cGVzXFYxXEdQQk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CCVR5cGVzOjpWMWIGcHJvdG8z", [file_google_protobuf_duration, file_types_v1_types]); /** * @generated from message types.v1.QueryMetrics @@ -29,6 +29,21 @@ export type QueryMetrics = Message<"types.v1.QueryMetrics"> & { */ queryText: string; + /** + * @generated from field: google.protobuf.Duration query_sent_latency = 300; + */ + querySentLatency?: Duration; + + /** + * @generated from field: google.protobuf.Duration first_result_latency = 301; + */ + firstResultLatency?: Duration; + + /** + * @generated from field: google.protobuf.Duration final_result_latency = 302; + */ + finalResultLatency?: Duration; + /** * @generated from field: google.protobuf.Duration total_latency = 3; */ diff --git a/proto/types/v1/query_metrics.proto b/proto/types/v1/query_metrics.proto index 8fe598a..403d9f3 100644 --- a/proto/types/v1/query_metrics.proto +++ b/proto/types/v1/query_metrics.proto @@ -11,6 +11,9 @@ message QueryMetrics { string query_id = 1; string query_text = 2; + google.protobuf.Duration query_sent_latency = 300; + google.protobuf.Duration first_result_latency = 301; + google.protobuf.Duration final_result_latency = 302; google.protobuf.Duration total_latency = 3; int64 rows_returned = 4;