-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathoutliers.proto
37 lines (31 loc) · 1.09 KB
/
outliers.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
syntax = "proto3";
package cockroach.sql.outliers;
option go_package = "outliers";
import "gogoproto/gogo.proto";
message Outlier {
message Session {
bytes id = 1 [(gogoproto.customname) = "ID"];
}
message Transaction {
bytes id = 1 [(gogoproto.customname) = "ID",
(gogoproto.customtype) = "github.com/cockroachdb/cockroach/pkg/util/uuid.UUID"];
}
message Statement {
bytes id = 1 [(gogoproto.customname) = "ID"];
uint64 fingerprint_id = 3 [(gogoproto.customname) = "FingerprintID",
(gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/roachpb.StmtFingerprintID"];
double latency_in_seconds = 2;
}
Session session = 1;
Transaction transaction = 2;
Statement statement = 3;
}