-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
Copy pathsessionsTableContent.tsx
154 lines (152 loc) · 3.6 KB
/
sessionsTableContent.tsx
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// 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.
import React from "react";
import { Tooltip } from "@cockroachlabs/ui-components";
export const SessionTableTitle = {
id: (
<Tooltip style="tableTitle" placement="bottom" content={"Session ID."}>
Session ID
</Tooltip>
),
start: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The timestamp at which the session started."}
>
Session Start Time (UTC)
</Tooltip>
),
sessionDuration: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The amount of time the session has been open."}
>
Session Duration
</Tooltip>
),
status: (
<Tooltip
style="tableTitle"
placement="bottom"
content={
"A session is active if it has an open transaction (including implicit transactions, which are individual SQL statements), and idle if it has no open transaction."
}
>
Status
</Tooltip>
),
mostRecentStatement: (
<Tooltip
style="tableTitle"
placement="bottom"
content={
"If more than one statement is active, the most recent statement is shown. If the session is idle, the last statement is shown."
}
>
Most Recent Statement
</Tooltip>
),
statementStartTime: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The timestamp at which the statement started."}
>
Statement Start Time (UTC)
</Tooltip>
),
memUsage: (
<Tooltip
style="tableTitle"
placement="bottom"
content={
"Amount of memory currently allocated to this session, followed by the maximum amount of memory this session has ever been allocated."
}
>
Memory Usage
</Tooltip>
),
clientAddress: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The IP address/port of the client that opened the session."}
>
Client IP Address
</Tooltip>
),
username: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The user that opened the session."}
>
User name
</Tooltip>
),
applicationName: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The application that ran the session."}
>
Application name
</Tooltip>
),
actions: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"Actions to take on the session."}
>
Actions
</Tooltip>
),
maxMemUsed: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The maximum amount of allocated memory this session ever had."}
>
Maximum Memory Usage
</Tooltip>
),
numRetries: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The number of times this transaction encountered a retry."}
>
Retries
</Tooltip>
),
numStmts: (
<Tooltip
style="tableTitle"
placement="bottom"
content={
"Number of statements that have been run in this transaction so far."
}
>
Statements Run
</Tooltip>
),
txnAge: (
<Tooltip
style="tableTitle"
placement="bottom"
content={"The duration of the open transaction, if there is one."}
>
Transaction Duration
</Tooltip>
),
};