-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
Copy pathmisc_sql_events.proto
56 lines (49 loc) · 2.45 KB
/
misc_sql_events.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2020 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.util.log.eventpb;
option go_package = "eventpb";
import "gogoproto/gogo.proto";
import "util/log/eventpb/events.proto";
// Category: Miscellaneous SQL events
// Channel: DEV
//
// Events in this category report miscellaneous SQL events.
//
// They are relative to a particular SQL tenant.
// In a multi-tenant setup, copies of these miscellaneous events are
// preserved in each tenant's own system.eventlog table.
// Notes to CockroachDB maintainers: refer to doc.go at the package
// level for more details. Beware that JSON compatibility rules apply
// here, not protobuf.
// *Really look at doc.go before modifying this file.*
// SetClusterSetting is recorded when a cluster setting is changed.
message SetClusterSetting {
CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
// The name of the affected cluster setting.
string setting_name = 3 [(gogoproto.jsontag) = ",omitempty", (gogoproto.moretags) = "redact:\"nonsensitive\""];
// The new value of the cluster setting.
string value = 4 [(gogoproto.jsontag) = ",omitempty"];
}
// SetTenantClusterSetting is recorded when a cluster setting override
// is changed for another tenant.
message SetTenantClusterSetting {
CommonEventDetails common = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
CommonSQLEventDetails sql = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
// The name of the affected cluster setting.
string setting_name = 3 [(gogoproto.jsontag) = ",omitempty", (gogoproto.moretags) = "redact:\"nonsensitive\""];
// The new value of the cluster setting.
string value = 4 [(gogoproto.jsontag) = ",omitempty"];
// The target Tenant ID. Empty if targeting all tenants.
uint64 tenant_id = 5 [(gogoproto.jsontag) = ",omitempty"];
// Whether the override applies to all tenants.
bool all_tenants = 6 [(gogoproto.jsontag) = ",omitempty"];
}