mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #31129 from ka1bi4/romanzhukov-DOCSUP-15137-zookeeperSessionUptime
DOCSUP-15137: [CLICKHOUSEDOCS] Document the zookeeperSessionUptime() function
This commit is contained in:
commit
9fe6687a62
@ -2463,3 +2463,39 @@ Result:
|
||||
│ Linux 4.15.0-55-generic │
|
||||
└─────────────────────────┘
|
||||
```
|
||||
|
||||
## zookeeperSessionUptime {#zookeepersessionuptime}
|
||||
|
||||
Returns the uptime of the current ZooKeeper session in seconds.
|
||||
|
||||
**Syntax**
|
||||
|
||||
``` sql
|
||||
zookeeperSessionUptime()
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
|
||||
- None.
|
||||
|
||||
**Returned value**
|
||||
|
||||
- Uptime of the current ZooKeeper session in seconds.
|
||||
|
||||
Type: [UInt32](../../sql-reference/data-types/int-uint.md).
|
||||
|
||||
**Example**
|
||||
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT zookeeperSessionUptime();
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
``` text
|
||||
┌─zookeeperSessionUptime()─┐
|
||||
│ 286 │
|
||||
└──────────────────────────┘
|
||||
```
|
||||
|
@ -2411,3 +2411,39 @@ SELECT getOSKernelVersion();
|
||||
│ Linux 4.15.0-55-generic │
|
||||
└─────────────────────────┘
|
||||
```
|
||||
|
||||
## zookeeperSessionUptime {#zookeepersessionuptime}
|
||||
|
||||
Возвращает аптайм текущего сеанса ZooKeeper в секундах.
|
||||
|
||||
**Синтаксис**
|
||||
|
||||
``` sql
|
||||
zookeeperSessionUptime()
|
||||
```
|
||||
|
||||
**Аргументы**
|
||||
|
||||
- Нет.
|
||||
|
||||
**Возвращаемое значение**
|
||||
|
||||
- Аптайм текущего сеанса ZooKeeper в секундах.
|
||||
|
||||
Тип: [UInt32](../../sql-reference/data-types/int-uint.md).
|
||||
|
||||
**Пример**
|
||||
|
||||
Запрос:
|
||||
|
||||
``` sql
|
||||
SELECT zookeeperSessionUptime();
|
||||
```
|
||||
|
||||
Результат:
|
||||
|
||||
``` text
|
||||
┌─zookeeperSessionUptime()─┐
|
||||
│ 286 │
|
||||
└──────────────────────────┘
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user