Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update slow query proto for PostgreSQL (#5599)

rebelicedbfe2e186862
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index ae7b6172d4..9e9a417a2f 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -33,14 +33,14 @@ const (
// Support order by count, latest_log_time, average_query_time, nighty_fifth_percentile_query_time,
// average_rows_sent, nighty_fifth_percentile_rows_sent, average_rows_examined, nighty_fifth_percentile_rows_examined for now.
- orderByKeyCount = "count"
- orderByKeyLatestLogTime = "latest_log_time"
- orderByKeyAverageQueryTime = "average_query_time"
- orderByKeyNightyFifthPercentileQueryTime = "nighty_fifth_percentile_query_time"
- orderByKeyAverageRowsSent = "average_rows_sent"
- orderByKeyNightyFifthPercentileRowsSent = "nighty_fifth_percentile_rows_sent"
- orderByKeyAverageRowsExamined = "average_rows_examined"
- orderByKeyNightyFifthPercentileRowsExamined = "nighty_fifth_percentile_rows_examined"
+ orderByKeyCount = "count"
+ orderByKeyLatestLogTime = "latest_log_time"
+ orderByKeyAverageQueryTime = "average_query_time"
+ orderByKeyMaximumQueryTime = "maximum_query_time"
+ orderByKeyAverageRowsSent = "average_rows_sent"
+ orderByKeyMaximumRowsSent = "maximum_rows_sent"
+ orderByKeyAverageRowsExamined = "average_rows_examined"
+ orderByKeyMaximumRowsExamined = "maximum_rows_examined"
)
// DatabaseService implements the database service.
@@ -637,7 +637,7 @@ func sortSlowQueryLogResponse(response *v1pb.ListSlowQueriesResponse, orderByKey
if len(orderByKeys) == 0 {
orderByKeys = []orderByKey{
{
- key: orderByKeyNightyFifthPercentileQueryTime,
+ key: orderByKeyMaximumQueryTime,
isAscend: false,
},
}
@@ -651,60 +651,76 @@ func sortSlowQueryLogResponse(response *v1pb.ListSlowQueriesResponse, orderByKey
for _, key := range orderByKeys {
switch key.key {
case orderByKeyCount:
- if response.SlowQueryLogs[i].Statistics.Count != response.SlowQueryLogs[j].Statistics.Count {
+ lCount := response.SlowQueryLogs[i].Statistics.Count
+ rCount := response.SlowQueryLogs[j].Statistics.Count
+ if lCount != rCount {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.Count < response.SlowQueryLogs[j].Statistics.Count
+ return lCount < rCount
}
- return response.SlowQueryLogs[i].Statistics.Count > response.SlowQueryLogs[j].Statistics.Count
+ return lCount > rCount
}
case orderByKeyLatestLogTime:
- if response.SlowQueryLogs[i].Statistics.LatestLogTime != response.SlowQueryLogs[j].Statistics.LatestLogTime {
+ lTime := response.SlowQueryLogs[i].Statistics.LatestLogTime.AsTime()
+ rTime := response.SlowQueryLogs[j].Statistics.LatestLogTime.AsTime()
+ if !lTime.Equal(rTime) {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.LatestLogTime.AsTime().Before(response.SlowQueryLogs[j].Statistics.LatestLogTime.AsTime())
+ return lTime.Before(rTime)
}
- return response.SlowQueryLogs[i].Statistics.LatestLogTime.AsTime().After(response.SlowQueryLogs[j].Statistics.LatestLogTime.AsTime())
+ return lTime.After(rTime)
}
case orderByKeyAverageQueryTime:
- if response.SlowQueryLogs[i].Statistics.AverageQueryTime != response.SlowQueryLogs[j].Statistics.AverageQueryTime {
+ lTime := response.SlowQueryLogs[i].Statistics.AverageQueryTime.AsDuration()
+ rTime := response.SlowQueryLogs[j].Statistics.AverageQueryTime.AsDuration()
+ if lTime != rTime {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.AverageQueryTime.AsDuration() < response.SlowQueryLogs[j].Statistics.AverageQueryTime.AsDuration()
+ return lTime < rTime
}
- return response.SlowQueryLogs[i].Statistics.AverageQueryTime.AsDuration() > response.SlowQueryLogs[j].Statistics.AverageQueryTime.AsDuration()
+ return lTime > rTime
}
- case orderByKeyNightyFifthPercentileQueryTime:
- if response.SlowQueryLogs[i].Statistics.NightyFifthPercentileQueryTime != response.SlowQueryLogs[j].Statistics.NightyFifthPercentileQueryTime {
+ case orderByKeyMaximumQueryTime:
+ lDuration := response.SlowQueryLogs[i].Statistics.MaximumQueryTime.AsDuration()
+ rDuration := response.SlowQueryLogs[j].Statistics.MaximumQueryTime.AsDuration()
+ if lDuration != rDuration {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileQueryTime.AsDuration() < response.SlowQueryLogs[j].Statistics.NightyFifthPercentileQueryTime.AsDuration()
+ return lDuration < rDuration
}
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileQueryTime.AsDuration() > response.SlowQueryLogs[j].Statistics.NightyFifthPercentileQueryTime.AsDuration()
+ return lDuration > rDuration
}
case orderByKeyAverageRowsSent:
- if response.SlowQueryLogs[i].Statistics.AverageRowsSent != response.SlowQueryLogs[j].Statistics.AverageRowsSent {
+ lSent := response.SlowQueryLogs[i].Statistics.AverageRowsSent
+ rSent := response.SlowQueryLogs[j].Statistics.AverageRowsSent
+ if lSent != rSent {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.AverageRowsSent < response.SlowQueryLogs[j].Statistics.AverageRowsSent
+ return lSent < rSent
}
- return response.SlowQueryLogs[i].Statistics.AverageRowsSent > response.SlowQueryLogs[j].Statistics.AverageRowsSent
+ return lSent > rSent
}
- case orderByKeyNightyFifthPercentileRowsSent:
- if response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsSent != response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsSent {
+ case orderByKeyMaximumRowsSent:
+ lSent := response.SlowQueryLogs[i].Statistics.MaximumRowsSent
+ rSent := response.SlowQueryLogs[j].Statistics.MaximumRowsSent
+ if lSent != rSent {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsSent < response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsSent
+ return lSent < rSent
}
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsSent > response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsSent
+ return lSent > rSent
}
case orderByKeyAverageRowsExamined:
- if response.SlowQueryLogs[i].Statistics.AverageRowsExamined != response.SlowQueryLogs[j].Statistics.AverageRowsExamined {
+ lExamined := response.SlowQueryLogs[i].Statistics.AverageRowsExamined
+ rExamined := response.SlowQueryLogs[j].Statistics.AverageRowsExamined
+ if lExamined != rExamined {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.AverageRowsExamined < response.SlowQueryLogs[j].Statistics.AverageRowsExamined
+ return lExamined < rExamined
}
- return response.SlowQueryLogs[i].Statistics.AverageRowsExamined > response.SlowQueryLogs[j].Statistics.AverageRowsExamined
+ return lExamined > rExamined
}
- case orderByKeyNightyFifthPercentileRowsExamined:
- if response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsExamined != response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsExamined {
+ case orderByKeyMaximumRowsExamined:
+ lExamined := response.SlowQueryLogs[i].Statistics.MaximumRowsExamined
+ rExamined := response.SlowQueryLogs[j].Statistics.MaximumRowsExamined
+ if lExamined != rExamined {
if key.isAscend {
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsExamined < response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsExamined
+ return lExamined < rExamined
}
- return response.SlowQueryLogs[i].Statistics.NightyFifthPercentileRowsExamined > response.SlowQueryLogs[j].Statistics.NightyFifthPercentileRowsExamined
+ return lExamined > rExamined
}
}
}
@@ -719,8 +735,8 @@ func validSlowQueryOrderByKey(keys []orderByKey) error {
switch key.key {
// Support order by count, latest_log_time, average_query_time, nighty_fifth_percentile_query_time,
// average_rows_sent, nighty_fifth_percentile_rows_sent, average_rows_examined, nighty_fifth_percentile_rows_examined for now.
- case orderByKeyCount, orderByKeyLatestLogTime, orderByKeyAverageQueryTime, orderByKeyNightyFifthPercentileQueryTime,
- orderByKeyAverageRowsSent, orderByKeyNightyFifthPercentileRowsSent, orderByKeyAverageRowsExamined, orderByKeyNightyFifthPercentileRowsExamined:
+ case orderByKeyCount, orderByKeyLatestLogTime, orderByKeyAverageQueryTime, orderByKeyMaximumQueryTime,
+ orderByKeyAverageRowsSent, orderByKeyMaximumRowsSent, orderByKeyAverageRowsExamined, orderByKeyMaximumRowsExamined:
default:
return errors.Errorf("invalid order_by key %q", key.key)
}
diff --git a/backend/store/slow_query.go b/backend/store/slow_query.go
index b2230b9441..a428f4db7d 100644
--- a/backend/store/slow_query.go
+++ b/backend/store/slow_query.go
@@ -5,7 +5,6 @@ import (
"database/sql"
"fmt"
"math/rand"
- "sort"
"strconv"
"strings"
"time"
@@ -49,6 +48,13 @@ func (s *Store) ListSlowQuery(ctx context.Context, list *ListSlowQueryMessage) (
return slowQueryLog, nil
}
+type slowQueryLogValue struct {
+ log *v1pb.SlowQueryLog
+ totalQueryTime time.Duration
+ totalRowsSent int64
+ totalRowsExamined int64
+}
+
func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQueryMessage) ([]*v1pb.SlowQueryLog, error) {
where, args := []string{"TRUE"}, []any{}
if v := list.InstanceUID; v != nil {
@@ -80,7 +86,7 @@ func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQuery
}
defer rows.Close()
- logMap := make(map[string]*v1pb.SlowQueryLog)
+ logMap := make(map[string]*slowQueryLogValue)
for rows.Next() {
var instanceUID int
var databaseUID sql.NullInt32
@@ -101,10 +107,13 @@ func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQuery
}
for _, item := range slowLog.Items {
- if log, exists := logMap[item.SqlFingerprint]; exists {
- log.Statistics.Count += item.Count
- if log.Statistics.LatestLogTime.AsTime().Before(item.LatestLogTime.AsTime()) {
- log.Statistics.LatestLogTime = item.LatestLogTime
+ if value, exists := logMap[item.SqlFingerprint]; exists {
+ value.log.Statistics.Count += item.Count
+ value.totalQueryTime += item.TotalQueryTime.AsDuration()
+ value.totalRowsSent += item.TotalRowsSent
+ value.totalRowsExamined += item.TotalRowsExamined
+ if value.log.Statistics.LatestLogTime.AsTime().Before(item.LatestLogTime.AsTime()) {
+ value.log.Statistics.LatestLogTime = item.LatestLogTime
}
for _, sample := range item.Samples {
details := &v1pb.SlowQueryDetails{
@@ -116,35 +125,43 @@ func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQuery
SqlText: sample.SqlText,
}
- if len(log.Statistics.Samples) < db.SlowQueryMaxSamplePerFingerprint {
- log.Statistics.Samples = append(log.Statistics.Samples, details)
+ if len(value.log.Statistics.Samples) < db.SlowQueryMaxSamplePerFingerprint {
+ value.log.Statistics.Samples = append(value.log.Statistics.Samples, details)
} else {
// Use Reservoir Sampling to sample slow logs.
- pos := rand.Intn(len(log.Statistics.Samples))
- log.Statistics.Samples[pos] = details
+ pos := rand.Intn(len(value.log.Statistics.Samples))
+ value.log.Statistics.Samples[pos] = details
}
}
} else {
- logMap[item.SqlFingerprint] = &v1pb.SlowQueryLog{
- Statistics: &v1pb.SlowQueryStatistics{
- SqlFingerprint: item.SqlFingerprint,
- Count: item.Count,
- LatestLogTime: item.LatestLogTime,
- Samples: func() []*v1pb.SlowQueryDetails {
- var details []*v1pb.SlowQueryDetails
- for _, sample := range item.Samples {
- details = append(details, &v1pb.SlowQueryDetails{
- StartTime: sample.StartTime,
- QueryTime: sample.QueryTime,
- LockTime: sample.LockTime,
- RowsSent: sample.RowsSent,
- RowsExamined: sample.RowsExamined,
- SqlText: sample.SqlText,
- })
- }
- return details
- }(),
+ logMap[item.SqlFingerprint] = &slowQueryLogValue{
+ log: &v1pb.SlowQueryLog{
+ Statistics: &v1pb.SlowQueryStatistics{
+ SqlFingerprint: item.SqlFingerprint,
+ Count: item.Count,
+ LatestLogTime: item.LatestLogTime,
+ MaximumQueryTime: item.MaximumQueryTime,
+ MaximumRowsSent: item.MaximumRowsSent,
+ MaximumRowsExamined: item.MaximumRowsExamined,
+ Samples: func() []*v1pb.SlowQueryDetails {
+ var details []*v1pb.SlowQueryDetails
+ for _, sample := range item.Samples {
+ details = append(details, &v1pb.SlowQueryDetails{
+ StartTime: sample.StartTime,
+ QueryTime: sample.QueryTime,
+ LockTime: sample.LockTime,
+ RowsSent: sample.RowsSent,
+ RowsExamined: sample.RowsExamined,
+ SqlText: sample.SqlText,
+ })
+ }
+ return details
+ }(),
+ },
},
+ totalQueryTime: item.TotalQueryTime.AsDuration(),
+ totalRowsSent: item.TotalRowsSent,
+ totalRowsExamined: item.TotalRowsExamined,
}
}
}
@@ -162,38 +179,12 @@ func (*Store) listSlowQueryImpl(ctx context.Context, tx *Tx, list *ListSlowQuery
return result, nil
}
-func calculateStatistics(log *v1pb.SlowQueryLog) *v1pb.SlowQueryLog {
- var totalQueryTime time.Duration
- var totalSent, totalExamined int64
-
- for _, sample := range log.Statistics.Samples {
- totalQueryTime += sample.QueryTime.AsDuration()
- totalSent += int64(sample.RowsSent)
- totalExamined += int64(sample.RowsExamined)
- }
-
- log.Statistics.AverageQueryTime = durationpb.New(totalQueryTime / time.Duration(len(log.Statistics.Samples)))
- log.Statistics.AverageRowsSent = int32(totalSent / int64(len(log.Statistics.Samples)))
- log.Statistics.AverageRowsExamined = int32(totalExamined / int64(len(log.Statistics.Samples)))
-
- nightyFifthPos := int(float64(len(log.Statistics.Samples)) * 0.95)
-
- sort.Slice(log.Statistics.Samples, func(i, j int) bool {
- return log.Statistics.Samples[i].RowsSent < log.Statistics.Samples[j].RowsSent
- })
- log.Statistics.NightyFifthPercentileRowsSent = log.Statistics.Samples[nightyFifthPos].RowsSent
-
- sort.Slice(log.Statistics.Samples, func(i, j int) bool {
- return log.Statistics.Samples[i].RowsExamined < log.Statistics.Samples[j].RowsExamined
- })
- log.Statistics.NightyFifthPercentileRowsExamined = log.Statistics.Samples[nightyFifthPos].RowsExamined
-
- sort.Slice(log.Statistics.Samples, func(i, j int) bool {
- return log.Statistics.Samples[i].QueryTime.AsDuration() < log.Statistics.Samples[j].QueryTime.AsDuration()
- })
- log.Statistics.NightyFifthPercentileQueryTime = log.Statistics.Samples[nightyFifthPos].QueryTime
-
- return log
+func calculateStatistics(value *slowQueryLogValue) *v1pb.SlowQueryLog {
+ result := value.log
+ result.Statistics.AverageQueryTime = durationpb.New(value.totalQueryTime / time.Duration(result.Statistics.Count))
+ result.Statistics.AverageRowsSent = int32(value.totalRowsSent / int64(result.Statistics.Count))
+ result.Statistics.AverageRowsExamined = int32(value.totalRowsExamined / int64(result.Statistics.Count))
+ return result
}
// UpsertSlowLogMessage is the message to upsert slow query logs.
diff --git a/frontend/src/types/proto/store/slow_query.ts b/frontend/src/types/proto/store/slow_query.ts
index b27fa293eb..287860c4ef 100644
--- a/frontend/src/types/proto/store/slow_query.ts
+++ b/frontend/src/types/proto/store/slow_query.ts
@@ -1,4 +1,5 @@
/* eslint-disable */
+import * as Long from "long";
import * as _m0 from "protobufjs/minimal";
import { Duration } from "../google/protobuf/duration";
import { Timestamp } from "../google/protobuf/timestamp";
@@ -19,6 +20,18 @@ export interface SlowQueryStatisticsItem {
count: number;
/** latest_log_time is the time of the latest slow query with the same fingerprint. */
latestLogTime?: Date;
+ /** The total query time of the slow query log. */
+ totalQueryTime?: Duration;
+ /** The maximum query time of the slow query log. */
+ maximumQueryTime?: Duration;
+ /** The total rows sent of the slow query log. */
+ totalRowsSent: number;
+ /** The maximum rows sent of the slow query log. */
+ maximumRowsSent: number;
+ /** The total rows examined of the slow query log. */
+ totalRowsExamined: number;
+ /** The maximum rows examined of the slow query log. */
+ maximumRowsExamined: number;
/** samples are the details of the sample slow queries with the same fingerprint. */
samples: SlowQueryDetails[];
}
@@ -102,7 +115,18 @@ export const SlowQueryStatistics = {
};
function createBaseSlowQueryStatisticsItem(): SlowQueryStatisticsItem {
- return { sqlFingerprint: "", count: 0, latestLogTime: undefined, samples: [] };
+ return {
+ sqlFingerprint: "",
+ count: 0,
+ latestLogTime: undefined,
+ totalQueryTime: undefined,
+ maximumQueryTime: undefined,
+ totalRowsSent: 0,
+ maximumRowsSent: 0,
+ totalRowsExamined: 0,
+ maximumRowsExamined: 0,
+ samples: [],
+ };
}
export const SlowQueryStatisticsItem = {
@@ -116,8 +140,26 @@ export const SlowQueryStatisticsItem = {
if (message.latestLogTime !== undefined) {
Timestamp.encode(toTimestamp(message.latestLogTime), writer.uint32(26).fork()).ldelim();
}
+ if (message.totalQueryTime !== undefined) {
+ Duration.encode(message.totalQueryTime, writer.uint32(34).fork()).ldelim();
+ }
+ if (message.maximumQueryTime !== undefined) {
+ Duration.encode(message.maximumQueryTime, writer.uint32(42).fork()).ldelim();
+ }
+ if (message.totalRowsSent !== 0) {
+ writer.uint32(48).int64(message.totalRowsSent);
+ }
+ if (message.maximumRowsSent !== 0) {
+ writer.uint32(56).int32(message.maximumRowsSent);
+ }
+ if (message.totalRowsExamined !== 0) {
+ writer.uint32(64).int64(message.totalRowsExamined);
+ }
+ if (message.maximumRowsExamined !== 0) {
+ writer.uint32(72).int32(message.maximumRowsExamined);
+ }
for (const v of message.samples) {
- SlowQueryDetails.encode(v!, writer.uint32(34).fork()).ldelim();
+ SlowQueryDetails.encode(v!, writer.uint32(82).fork()).ldelim();
}
return writer;
},
@@ -155,6 +197,48 @@ export const SlowQueryStatisticsItem = {
break;
}
+ message.totalQueryTime = Duration.decode(reader, reader.uint32());
+ continue;
+ case 5:
+ if (tag != 42) {
+ break;
+ }
+
+ message.maximumQueryTime = Duration.decode(reader, reader.uint32());
+ continue;
+ case 6:
+ if (tag != 48) {
+ break;
+ }
+
+ message.totalRowsSent = longToNumber(reader.int64() as Long);
+ continue;
+ case 7:
+ if (tag != 56) {
+ break;
+ }
+
+ message.maximumRowsSent = reader.int32();
+ continue;
+ case 8:
+ if (tag != 64) {
+ break;
+ }
+
+ message.totalRowsExamined = longToNumber(reader.int64() as Long);
+ continue;
+ case 9:
+ if (tag != 72) {
+ break;
+ }
+
+ message.maximumRowsExamined = reader.int32();
+ continue;
+ case 10:
+ if (tag != 82) {
+ break;
+ }
+
message.samples.push(SlowQueryDetails.decode(reader, reader.uint32()));
continue;
}
@@ -171,6 +255,12 @@ export const SlowQueryStatisticsItem = {
sqlFingerprint: isSet(object.sqlFingerprint) ? String(object.sqlFingerprint) : "",
count: isSet(object.count) ? Number(object.count) : 0,
latestLogTime: isSet(object.latestLogTime) ? fromJsonTimestamp(object.latestLogTime) : undefined,
+ totalQueryTime: isSet(object.totalQueryTime) ? Duration.fromJSON(object.totalQueryTime) : undefined,
+ maximumQueryTime: isSet(object.maximumQueryTime) ? Duration.fromJSON(object.maximumQueryTime) : undefined,
+ totalRowsSent: isSet(object.totalRowsSent) ? Number(object.totalRowsSent) : 0,
+ maximumRowsSent: isSet(object.maximumRowsSent) ? Number(object.maximumRowsSent) : 0,
+ totalRowsExamined: isSet(object.totalRowsExamined) ? Number(object.totalRowsExamined) : 0,
+ maximumRowsExamined: isSet(object.maximumRowsExamined) ? Number(object.maximumRowsExamined) : 0,
samples: Array.isArray(object?.samples) ? object.samples.map((e: any) => SlowQueryDetails.fromJSON(e)) : [],
};
},
@@ -180,6 +270,14 @@ export const SlowQueryStatisticsItem = {
message.sqlFingerprint !== undefined && (obj.sqlFingerprint = message.sqlFingerprint);
message.count !== undefined && (obj.count = Math.round(message.count));
message.latestLogTime !== undefined && (obj.latestLogTime = message.latestLogTime.toISOString());
+ message.totalQueryTime !== undefined &&
+ (obj.totalQueryTime = message.totalQueryTime ? Duration.toJSON(message.totalQueryTime) : undefined);
+ message.maximumQueryTime !== undefined &&
+ (obj.maximumQueryTime = message.maximumQueryTime ? Duration.toJSON(message.maximumQueryTime) : undefined);
+ message.totalRowsSent !== undefined && (obj.totalRowsSent = Math.round(message.totalRowsSent));
+ message.maximumRowsSent !== undefined && (obj.maximumRowsSent = Math.round(message.maximumRowsSent));
+ message.totalRowsExamined !== undefined && (obj.totalRowsExamined = Math.round(message.totalRowsExamined));
+ message.maximumRowsExamined !== undefined && (obj.maximumRowsExamined = Math.round(message.maximumRowsExamined));
if (message.samples) {
obj.samples = message.samples.map((e) => e ? SlowQueryDetails.toJSON(e) : undefined);
} else {
@@ -197,6 +295,16 @@ export const SlowQueryStatisticsItem = {
message.sqlFingerprint = object.sqlFingerprint ?? "";
message.count = object.count ?? 0;
message.latestLogTime = object.latestLogTime ?? undefined;
+ message.totalQueryTime = (object.totalQueryTime !== undefined && object.totalQueryTime !== null)
+ ? Duration.fromPartial(object.totalQueryTime)
+ : undefined;
+ message.maximumQueryTime = (object.maximumQueryTime !== undefined && object.maximumQueryTime !== null)
+ ? Duration.fromPartial(object.maximumQueryTime)
+ : undefined;
+ message.totalRowsSent = object.totalRowsSent ?? 0;
+ message.maximumRowsSent = object.maximumRowsSent ?? 0;
+ message.totalRowsExamined = object.totalRowsExamined ?? 0;
+ message.maximumRowsExamined = object.maximumRowsExamined ?? 0;
message.samples = object.samples?.map((e) => SlowQueryDetails.fromPartial(e)) || [];
return message;
},
@@ -330,6 +438,25 @@ export const SlowQueryDetails = {
},
};
+declare var self: any | undefined;
+declare var window: any | undefined;
+declare var global: any | undefined;
+var tsProtoGlobalThis: any = (() => {
+ if (typeof globalThis !== "undefined") {
+ return globalThis;
+ }
+ if (typeof self !== "undefined") {
+ return self;
+ }
+ if (typeof window !== "undefined") {
+ return window;
+ }
+ if (typeof global !== "undefined") {
+ return global;
+ }
+ throw "Unable to locate global object";
+})();
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
@@ -359,6 +486,20 @@ function fromJsonTimestamp(o: any): Date {
}
}
+function longToNumber(long: Long): number {
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
+ throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
+ }
+ return long.toNumber();
+}
+
+// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
+// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
+if (_m0.util.Long !== Long) {
+ _m0.util.Long = Long as any;
+ _m0.configure();
+}
+
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 3ed67f0b82..41af158335 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -561,16 +561,16 @@ export interface SlowQueryStatistics {
latestLogTime?: Date;
/** The average query time of the slow query log. */
averageQueryTime?: Duration;
- /** The nighty fifth percentile query time of the slow query log. */
- nightyFifthPercentileQueryTime?: Duration;
+ /** The maximum query time of the slow query log. */
+ maximumQueryTime?: Duration;
/** The average rows sent of the slow query log. */
averageRowsSent: number;
- /** The nighty fifth percentile rows sent of the slow query log. */
- nightyFifthPercentileRowsSent: number;
+ /** The maximum rows sent of the slow query log. */
+ maximumRowsSent: number;
/** The average rows examined of the slow query log. */
averageRowsExamined: number;
- /** The nighty fifth percentile rows examined of the slow query log. */
- nightyFifthPercentileRowsExamined: number;
+ /** The maximum rows examined of the slow query log. */
+ maximumRowsExamined: number;
/** Samples are details of the sample slow query logs with the same fingerprint. */
samples: SlowQueryDetails[];
}
@@ -3425,11 +3425,11 @@ function createBaseSlowQueryStatistics(): SlowQueryStatistics {
count: 0,
latestLogTime: undefined,
averageQueryTime: undefined,
- nightyFifthPercentileQueryTime: undefined,
+ maximumQueryTime: undefined,
averageRowsSent: 0,
- nightyFifthPercentileRowsSent: 0,
+ maximumRowsSent: 0,
averageRowsExamined: 0,
- nightyFifthPercentileRowsExamined: 0,
+ maximumRowsExamined: 0,
samples: [],
};
}
@@ -3448,20 +3448,20 @@ export const SlowQueryStatistics = {
if (message.averageQueryTime !== undefined) {
Duration.encode(message.averageQueryTime, writer.uint32(34).fork()).ldelim();
}
- if (message.nightyFifthPercentileQueryTime !== undefined) {
- Duration.encode(message.nightyFifthPercentileQueryTime, writer.uint32(42).fork()).ldelim();
+ if (message.maximumQueryTime !== undefined) {
+ Duration.encode(message.maximumQueryTime, writer.uint32(42).fork()).ldelim();
}
if (message.averageRowsSent !== 0) {
writer.uint32(48).int32(message.averageRowsSent);
}
- if (message.nightyFifthPercentileRowsSent !== 0) {
- writer.uint32(56).int32(message.nightyFifthPercentileRowsSent);
+ if (message.maximumRowsSent !== 0) {
+ writer.uint32(56).int32(message.maximumRowsSent);
}
if (message.averageRowsExamined !== 0) {
writer.uint32(64).int32(message.averageRowsExamined);
}
- if (message.nightyFifthPercentileRowsExamined !== 0) {
- writer.uint32(72).int32(message.nightyFifthPercentileRowsExamined);
+ if (message.maximumRowsExamined !== 0) {
+ writer.uint32(72).int32(message.maximumRowsExamined);
}
for (const v of message.samples) {
SlowQueryDetails.encode(v!, writer.uint32(82).fork()).ldelim();
@@ -3509,7 +3509,7 @@ export const SlowQueryStatistics = {
break;
}
- message.nightyFifthPercentileQueryTime = Duration.decode(reader, reader.uint32());
+ message.maximumQueryTime = Duration.decode(reader, reader.uint32());
continue;
case 6:
if (tag != 48) {
@@ -3523,7 +3523,7 @@ export const SlowQueryStatistics = {
break;
}
- message.nightyFifthPercentileRowsSent = reader.int32();
+ message.maximumRowsSent = reader.int32();
continue;
case 8:
if (tag != 64) {
@@ -3537,7 +3537,7 @@ export const SlowQueryStatistics = {
break;
}
- message.nightyFifthPercentileRowsExamined = reader.int32();
+ message.maximumRowsExamined = reader.int32();
continue;
case 10:
if (tag != 82) {
@@ -3561,17 +3561,11 @@ export const SlowQueryStatistics = {
count: isSet(object.count) ? Number(object.count) : 0,
latestLogTime: isSet(object.latestLogTime) ? fromJsonTimestamp(object.latestLogTime) : undefined,
averageQueryTime: isSet(object.averageQueryTime) ? Duration.fromJSON(object.averageQueryTime) : undefined,
- nightyFifthPercentileQueryTime: isSet(object.nightyFifthPercentileQueryTime)
- ? Duration.fromJSON(object.nightyFifthPercentileQueryTime)
- : undefined,
+ maximumQueryTime: isSet(object.maximumQueryTime) ? Duration.fromJSON(object.maximumQueryTime) : undefined,
averageRowsSent: isSet(object.averageRowsSent) ? Number(object.averageRowsSent) : 0,
- nightyFifthPercentileRowsSent: isSet(object.nightyFifthPercentileRowsSent)
- ? Number(object.nightyFifthPercentileRowsSent)
- : 0,
+ maximumRowsSent: isSet(object.maximumRowsSent) ? Number(object.maximumRowsSent) : 0,
averageRowsExamined: isSet(object.averageRowsExamined) ? Number(object.averageRowsExamined) : 0,
- nightyFifthPercentileRowsExamined: isSet(object.nightyFifthPercentileRowsExamined)
- ? Number(object.nightyFifthPercentileRowsExamined)
- : 0,
+ maximumRowsExamined: isSet(object.maximumRowsExamined) ? Number(object.maximumRowsExamined) : 0,
samples: Array.isArray(object?.samples) ? object.samples.map((e: any) => SlowQueryDetails.fromJSON(e)) : [],
};
},
@@ -3583,16 +3577,12 @@ export const SlowQueryStatistics = {
message.latestLogTime !== undefined && (obj.latestLogTime = message.latestLogTime.toISOString());
message.averageQueryTime !== undefined &&
(obj.averageQueryTime = message.averageQueryTime ? Duration.toJSON(message.averageQueryTime) : undefined);
- message.nightyFifthPercentileQueryTime !== undefined &&
- (obj.nightyFifthPercentileQueryTime = message.nightyFifthPercentileQueryTime
- ? Duration.toJSON(message.nightyFifthPercentileQueryTime)
- : undefined);
+ message.maximumQueryTime !== undefined &&
+ (obj.maximumQueryTime = message.maximumQueryTime ? Duration.toJSON(message.maximumQueryTime) : undefined);
message.averageRowsSent !== undefined && (obj.averageRowsSent = Math.round(message.averageRowsSent));
- message.nightyFifthPercentileRowsSent !== undefined &&
- (obj.nightyFifthPercentileRowsSent = Math.round(message.nightyFifthPercentileRowsSent));
+ message.maximumRowsSent !== undefined && (obj.maximumRowsSent = Math.round(message.maximumRowsSent));
message.averageRowsExamined !== undefined && (obj.averageRowsExamined = Math.round(message.averageRowsExamined));
- message.nightyFifthPercentileRowsExamined !== undefined &&
- (obj.nightyFifthPercentileRowsExamined = Math.round(message.nightyFifthPercentileRowsExamined));
+ message.maximumRowsExamined !== undefined && (obj.maximumRowsExamined = Math.round(message.maximumRowsExamined));
if (message.samples) {
obj.samples = message.samples.map((e) => e ? SlowQueryDetails.toJSON(e) : undefined);
} else {
@@ -3613,14 +3603,13 @@ export const SlowQueryStatistics = {
message.averageQueryTime = (object.averageQueryTime !== undefined && object.averageQueryTime !== null)
? Duration.fromPartial(object.averageQueryTime)
: undefined;
- message.nightyFifthPercentileQueryTime =
- (object.nightyFifthPercentileQueryTime !== undefined && object.nightyFifthPercentileQueryTime !== null)
- ? Duration.fromPartial(object.nightyFifthPercentileQueryTime)
- : undefined;
+ message.maximumQueryTime = (object.maximumQueryTime !== undefined && object.maximumQueryTime !== null)
+ ? Duration.fromPartial(object.maximumQueryTime)
+ : undefined;
message.averageRowsSent = object.averageRowsSent ?? 0;
- message.nightyFifthPercentileRowsSent = object.nightyFifthPercentileRowsSent ?? 0;
+ message.maximumRowsSent = object.maximumRowsSent ?? 0;
message.averageRowsExamined = object.averageRowsExamined ?? 0;
- message.nightyFifthPercentileRowsExamined = object.nightyFifthPercentileRowsExamined ?? 0;
+ message.maximumRowsExamined = object.maximumRowsExamined ?? 0;
message.samples = object.samples?.map((e) => SlowQueryDetails.fromPartial(e)) || [];
return message;
},
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 914f92001d..48a79a5030 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -932,6 +932,12 @@ SlowQueryStatisticsItem is the item of slow query statistics.
| sql_fingerprint | [string](#string) | | sql_fingerprint is the fingerprint of the slow query. |
| count | [int32](#int32) | | count is the number of slow queries with the same fingerprint. |
| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | latest_log_time is the time of the latest slow query with the same fingerprint. |
+| total_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The total query time of the slow query log. |
+| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |
+| total_rows_sent | [int64](#int64) | | The total rows sent of the slow query log. |
+| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |
+| total_rows_examined | [int64](#int64) | | The total rows examined of the slow query log. |
+| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |
| samples | [SlowQueryDetails](#bytebase-store-SlowQueryDetails) | repeated | samples are the details of the sample slow queries with the same fingerprint. |
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 571003e43e..797173cf40 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -1584,11 +1584,11 @@ SlowQueryStatistics is the statistics of the slow query log.
| count | [int32](#int32) | | The count of the slow query log. |
| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |
| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |
-| nighty_fifth_percentile_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The nighty fifth percentile query time of the slow query log. |
+| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |
| average_rows_sent | [int32](#int32) | | The average rows sent of the slow query log. |
-| nighty_fifth_percentile_rows_sent | [int32](#int32) | | The nighty fifth percentile rows sent of the slow query log. |
+| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |
| average_rows_examined | [int32](#int32) | | The average rows examined of the slow query log. |
-| nighty_fifth_percentile_rows_examined | [int32](#int32) | | The nighty fifth percentile rows examined of the slow query log. |
+| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |
| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |
diff --git a/proto/generated-go/store/slow_query.pb.go b/proto/generated-go/store/slow_query.pb.go
index 3f0ca00a67..d9cf3f6d1e 100644
--- a/proto/generated-go/store/slow_query.pb.go
+++ b/proto/generated-go/store/slow_query.pb.go
@@ -83,8 +83,20 @@ type SlowQueryStatisticsItem struct {
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// latest_log_time is the time of the latest slow query with the same fingerprint.
LatestLogTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=latest_log_time,json=latestLogTime,proto3" json:"latest_log_time,omitempty"`
+ // The total query time of the slow query log.
+ TotalQueryTime *durationpb.Duration `protobuf:"bytes,4,opt,name=total_query_time,json=totalQueryTime,proto3" json:"total_query_time,omitempty"`
+ // The maximum query time of the slow query log.
+ MaximumQueryTime *durationpb.Duration `protobuf:"bytes,5,opt,name=maximum_query_time,json=maximumQueryTime,proto3" json:"maximum_query_time,omitempty"`
+ // The total rows sent of the slow query log.
+ TotalRowsSent int64 `protobuf:"varint,6,opt,name=total_rows_sent,json=totalRowsSent,proto3" json:"total_rows_sent,omitempty"`
+ // The maximum rows sent of the slow query log.
+ MaximumRowsSent int32 `protobuf:"varint,7,opt,name=maximum_rows_sent,json=maximumRowsSent,proto3" json:"maximum_rows_sent,omitempty"`
+ // The total rows examined of the slow query log.
+ TotalRowsExamined int64 `protobuf:"varint,8,opt,name=total_rows_examined,json=totalRowsExamined,proto3" json:"total_rows_examined,omitempty"`
+ // The maximum rows examined of the slow query log.
+ MaximumRowsExamined int32 `protobuf:"varint,9,opt,name=maximum_rows_examined,json=maximumRowsExamined,proto3" json:"maximum_rows_examined,omitempty"`
// samples are the details of the sample slow queries with the same fingerprint.
- Samples []*SlowQueryDetails `protobuf:"bytes,4,rep,name=samples,proto3" json:"samples,omitempty"`
+ Samples []*SlowQueryDetails `protobuf:"bytes,10,rep,name=samples,proto3" json:"samples,omitempty"`
}
func (x *SlowQueryStatisticsItem) Reset() {
@@ -140,6 +152,48 @@ func (x *SlowQueryStatisticsItem) GetLatestLogTime() *timestamppb.Timestamp {
return nil
}
+func (x *SlowQueryStatisticsItem) GetTotalQueryTime() *durationpb.Duration {
+ if x != nil {
+ return x.TotalQueryTime
+ }
+ return nil
+}
+
+func (x *SlowQueryStatisticsItem) GetMaximumQueryTime() *durationpb.Duration {
+ if x != nil {
+ return x.MaximumQueryTime
+ }
+ return nil
+}
+
+func (x *SlowQueryStatisticsItem) GetTotalRowsSent() int64 {
+ if x != nil {
+ return x.TotalRowsSent
+ }
+ return 0
+}
+
+func (x *SlowQueryStatisticsItem) GetMaximumRowsSent() int32 {
+ if x != nil {
+ return x.MaximumRowsSent
+ }
+ return 0
+}
+
+func (x *SlowQueryStatisticsItem) GetTotalRowsExamined() int64 {
+ if x != nil {
+ return x.TotalRowsExamined
+ }
+ return 0
+}
+
+func (x *SlowQueryStatisticsItem) GetMaximumRowsExamined() int32 {
+ if x != nil {
+ return x.MaximumRowsExamined
+ }
+ return 0
+}
+
func (x *SlowQueryStatisticsItem) GetSamples() []*SlowQueryDetails {
if x != nil {
return x.Samples
@@ -256,7 +310,7 @@ var file_store_slow_query_proto_rawDesc = []byte{
0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73,
0x74, 0x69, 0x63, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22,
- 0xd8, 0x01, 0x0a, 0x17, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61,
+ 0x9e, 0x04, 0x0a, 0x17, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61,
0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x73,
0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70,
@@ -265,31 +319,51 @@ var file_store_slow_query_proto_rawDesc = []byte{
0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
- 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a,
- 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
- 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53,
- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12,
- 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
- 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75,
- 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79,
- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09,
- 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
- 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77,
- 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19,
- 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e,
- 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43,
+ 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
+ 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71,
+ 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69,
+ 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f,
+ 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,
+ 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73,
+ 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f,
+ 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74,
+ 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65,
+ 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x74,
+ 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64,
+ 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73,
+ 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
+ 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d,
+ 0x69, 0x6e, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18,
+ 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73,
+ 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65,
+ 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74,
+ 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65,
+ 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
+ 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f,
+ 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12,
+ 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d,
+ 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74,
+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x42,
+ 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f,
+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -315,15 +389,17 @@ var file_store_slow_query_proto_goTypes = []interface{}{
var file_store_slow_query_proto_depIdxs = []int32{
1, // 0: bytebase.store.SlowQueryStatistics.items:type_name -> bytebase.store.SlowQueryStatisticsItem
3, // 1: bytebase.store.SlowQueryStatisticsItem.latest_log_time:type_name -> google.protobuf.Timestamp
- 2, // 2: bytebase.store.SlowQueryStatisticsItem.samples:type_name -> bytebase.store.SlowQueryDetails
- 3, // 3: bytebase.store.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
- 4, // 4: bytebase.store.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
- 4, // 5: bytebase.store.SlowQueryDetails.lock_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
+ 4, // 2: bytebase.store.SlowQueryStatisticsItem.total_query_time:type_name -> google.protobuf.Duration
+ 4, // 3: bytebase.store.SlowQueryStatisticsItem.maximum_query_time:type_name -> google.protobuf.Duration
+ 2, // 4: bytebase.store.SlowQueryStatisticsItem.samples:type_name -> bytebase.store.SlowQueryDetails
+ 3, // 5: bytebase.store.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
+ 4, // 6: bytebase.store.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
+ 4, // 7: bytebase.store.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
+ 8, // [8:8] is the sub-list for method output_type
+ 8, // [8:8] is the sub-list for method input_type
+ 8, // [8:8] is the sub-list for extension type_name
+ 8, // [8:8] is the sub-list for extension extendee
+ 0, // [0:8] is the sub-list for field type_name
}
func init() { file_store_slow_query_proto_init() }
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index 84423f432f..a829f2bda8 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -2286,16 +2286,16 @@ type SlowQueryStatistics struct {
LatestLogTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=latest_log_time,json=latestLogTime,proto3" json:"latest_log_time,omitempty"`
// The average query time of the slow query log.
AverageQueryTime *durationpb.Duration `protobuf:"bytes,4,opt,name=average_query_time,json=averageQueryTime,proto3" json:"average_query_time,omitempty"`
- // The nighty fifth percentile query time of the slow query log.
- NightyFifthPercentileQueryTime *durationpb.Duration `protobuf:"bytes,5,opt,name=nighty_fifth_percentile_query_time,json=nightyFifthPercentileQueryTime,proto3" json:"nighty_fifth_percentile_query_time,omitempty"`
+ // The maximum query time of the slow query log.
+ MaximumQueryTime *durationpb.Duration `protobuf:"bytes,5,opt,name=maximum_query_time,json=maximumQueryTime,proto3" json:"maximum_query_time,omitempty"`
// The average rows sent of the slow query log.
AverageRowsSent int32 `protobuf:"varint,6,opt,name=average_rows_sent,json=averageRowsSent,proto3" json:"average_rows_sent,omitempty"`
- // The nighty fifth percentile rows sent of the slow query log.
- NightyFifthPercentileRowsSent int32 `protobuf:"varint,7,opt,name=nighty_fifth_percentile_rows_sent,json=nightyFifthPercentileRowsSent,proto3" json:"nighty_fifth_percentile_rows_sent,omitempty"`
+ // The maximum rows sent of the slow query log.
+ MaximumRowsSent int32 `protobuf:"varint,7,opt,name=maximum_rows_sent,json=maximumRowsSent,proto3" json:"maximum_rows_sent,omitempty"`
// The average rows examined of the slow query log.
AverageRowsExamined int32 `protobuf:"varint,8,opt,name=average_rows_examined,json=averageRowsExamined,proto3" json:"average_rows_examined,omitempty"`
- // The nighty fifth percentile rows examined of the slow query log.
- NightyFifthPercentileRowsExamined int32 `protobuf:"varint,9,opt,name=nighty_fifth_percentile_rows_examined,json=nightyFifthPercentileRowsExamined,proto3" json:"nighty_fifth_percentile_rows_examined,omitempty"`
+ // The maximum rows examined of the slow query log.
+ MaximumRowsExamined int32 `protobuf:"varint,9,opt,name=maximum_rows_examined,json=maximumRowsExamined,proto3" json:"maximum_rows_examined,omitempty"`
// Samples are details of the sample slow query logs with the same fingerprint.
Samples []*SlowQueryDetails `protobuf:"bytes,10,rep,name=samples,proto3" json:"samples,omitempty"`
}
@@ -2360,9 +2360,9 @@ func (x *SlowQueryStatistics) GetAverageQueryTime() *durationpb.Duration {
return nil
}
-func (x *SlowQueryStatistics) GetNightyFifthPercentileQueryTime() *durationpb.Duration {
+func (x *SlowQueryStatistics) GetMaximumQueryTime() *durationpb.Duration {
if x != nil {
- return x.NightyFifthPercentileQueryTime
+ return x.MaximumQueryTime
}
return nil
}
@@ -2374,9 +2374,9 @@ func (x *SlowQueryStatistics) GetAverageRowsSent() int32 {
return 0
}
-func (x *SlowQueryStatistics) GetNightyFifthPercentileRowsSent() int32 {
+func (x *SlowQueryStatistics) GetMaximumRowsSent() int32 {
if x != nil {
- return x.NightyFifthPercentileRowsSent
+ return x.MaximumRowsSent
}
return 0
}
@@ -2388,9 +2388,9 @@ func (x *SlowQueryStatistics) GetAverageRowsExamined() int32 {
return 0
}
-func (x *SlowQueryStatistics) GetNightyFifthPercentileRowsExamined() int32 {
+func (x *SlowQueryStatistics) GetMaximumRowsExamined() int32 {
if x != nil {
- return x.NightyFifthPercentileRowsExamined
+ return x.MaximumRowsExamined
}
return 0
}
@@ -2806,7 +2806,7 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74,
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,
0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74,
- 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xfd, 0x04, 0x0a, 0x13, 0x53, 0x6c, 0x6f,
+ 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xa3, 0x04, 0x0a, 0x13, 0x53, 0x6c, 0x6f,
0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
0x12, 0x27, 0x0a, 0x0f, 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72,
0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69,
@@ -2820,166 +2820,161 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61, 0x76, 0x65, 0x72,
- 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x65, 0x0a, 0x22,
- 0x6e, 0x69, 0x67, 0x68, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x66, 0x74, 0x68, 0x5f, 0x70, 0x65, 0x72,
- 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69,
+ 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12,
+ 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69,
0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x52, 0x1e, 0x6e, 0x69, 0x67, 0x68, 0x74, 0x79, 0x46, 0x69, 0x66, 0x74, 0x68,
- 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72,
- 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f,
- 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12,
- 0x48, 0x0a, 0x21, 0x6e, 0x69, 0x67, 0x68, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x66, 0x74, 0x68, 0x5f,
- 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f,
- 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x6e, 0x69, 0x67, 0x68,
- 0x74, 0x79, 0x46, 0x69, 0x66, 0x74, 0x68, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c,
- 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x76, 0x65,
- 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e,
- 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67,
- 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x50, 0x0a,
- 0x25, 0x6e, 0x69, 0x67, 0x68, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x66, 0x74, 0x68, 0x5f, 0x70, 0x65,
- 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78,
- 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x21, 0x6e, 0x69,
- 0x67, 0x68, 0x74, 0x79, 0x46, 0x69, 0x66, 0x74, 0x68, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74,
- 0x69, 0x6c, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12,
- 0x37, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52,
- 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f,
- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a,
- 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73,
- 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72,
- 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44,
- 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69,
- 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f,
- 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72,
- 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f,
- 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c,
- 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
- 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x32, 0x98, 0x0e, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0b,
- 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x22, 0x40, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,
+ 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72,
+ 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65,
+ 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e,
+ 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77,
+ 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x61,
+ 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a,
+ 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78,
+ 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x61, 0x76,
+ 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65,
+ 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77,
+ 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05,
+ 0x52, 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61,
+ 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73,
+ 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65,
+ 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x9c,
+ 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74, 0x61,
+ 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
+ 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38,
+ 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x71,
+ 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x6b,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
+ 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65,
+ 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a,
+ 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e,
+ 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x32, 0x98, 0x0e,
+ 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x40, 0xda, 0x41, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0d,
+ 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12,
+ 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76,
+ 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x12, 0xb0, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x22, 0x63, 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x3a,
+ 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,
0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c,
- 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0xb0, 0x01, 0x0a,
- 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x63, 0xda, 0x41, 0x14, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
- 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x32, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
- 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
- 0xb5, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,
+ 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x3a, 0x01, 0x2a, 0x22, 0x3d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63,
- 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
- 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12,
- 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,
- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x11,
- 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
- 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0x9d, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42,
- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x47,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
- 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x3a, 0x01, 0x2a, 0x22, 0x3d,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,
+ 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa1, 0x01,
+ 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x42, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x40, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,
+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0x9d, 0x01,
+ 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,
+ 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74,
- 0x74, 0x69, 0x6e, 0x67, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x07, 0x73, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x47, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
- 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x92,
- 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12,
- 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,
- 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x06,
- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
- 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b,
- 0x75, 0x70, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b,
- 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70,
- 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
- 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72,
- 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f,
- 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x50, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65,
+ 0x74, 0x69, 0x6e, 0x67, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62,
+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xb4, 0x01,
+ 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63,
+ 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x52, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x47, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,
- 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,
- 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42,
+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x4b, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3b, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0a, 0x4c, 0x69,
+ 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
+ 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
+ 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74,
+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f,
+ 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,
+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
}
var (
@@ -3067,7 +3062,7 @@ var file_v1_database_service_proto_depIdxs = []int32{
31, // 26: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
36, // 27: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
38, // 28: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
- 38, // 29: bytebase.v1.SlowQueryStatistics.nighty_fifth_percentile_query_time:type_name -> google.protobuf.Duration
+ 38, // 29: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
32, // 30: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
36, // 31: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
38, // 32: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
diff --git a/proto/store/slow_query.proto b/proto/store/slow_query.proto
index 1a7d57cdb8..1a79cd8ad4 100644
--- a/proto/store/slow_query.proto
+++ b/proto/store/slow_query.proto
@@ -23,9 +23,27 @@ message SlowQueryStatisticsItem {
// latest_log_time is the time of the latest slow query with the same fingerprint.
google.protobuf.Timestamp latest_log_time = 3;
+
+ // The total query time of the slow query log.
+ google.protobuf.Duration total_query_time = 4;
+ // The maximum query time of the slow query log.
+ google.protobuf.Duration maximum_query_time = 5;
+
+ // The total rows sent of the slow query log.
+ int64 total_rows_sent = 6;
+
+ // The maximum rows sent of the slow query log.
+ int32 maximum_rows_sent = 7;
+
+ // The total rows examined of the slow query log.
+ int64 total_rows_examined = 8;
+
+ // The maximum rows examined of the slow query log.
+ int32 maximum_rows_examined = 9;
+
// samples are the details of the sample slow queries with the same fingerprint.
- repeated SlowQueryDetails samples = 4;
+ repeated SlowQueryDetails samples = 10;
}
// SlowQueryDetails is the details of a slow query.
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index d3abd9b788..b2cdb008bc 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -565,22 +565,22 @@ message SlowQueryStatistics {
// The average query time of the slow query log.
google.protobuf.Duration average_query_time = 4;
-
- // The nighty fifth percentile query time of the slow query log.
- google.protobuf.Duration nighty_fifth_percentile_query_time = 5;
-
+
+ // The maximum query time of the slow query log.
+ google.protobuf.Duration maximum_query_time = 5;
+
// The average rows sent of the slow query log.
int32 average_rows_sent = 6;
-
- // The nighty fifth percentile rows sent of the slow query log.
- int32 nighty_fifth_percentile_rows_sent = 7;
-
+
+ // The maximum rows sent of the slow query log.
+ int32 maximum_rows_sent = 7;
+
// The average rows examined of the slow query log.
int32 average_rows_examined = 8;
-
- // The nighty fifth percentile rows examined of the slow query log.
- int32 nighty_fifth_percentile_rows_examined = 9;
-
+
+ // The maximum rows examined of the slow query log.
+ int32 maximum_rows_examined = 9;
+
// Samples are details of the sample slow query logs with the same fingerprint.
repeated SlowQueryDetails samples = 10;
}