-
Notifications
You must be signed in to change notification settings - Fork 62
/
cluster.remote_info.yaml
74 lines (74 loc) · 1.84 KB
/
cluster.remote_info.yaml
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
openapi: 3.1.0
info:
title: Schemas of `cluster.remote_info` Category
description: Schemas of `cluster.remote_info` category.
version: 1.0.0
paths: {}
components:
schemas:
ClusterRemoteInfo:
type: object
discriminator:
propertyName: mode
oneOf:
- $ref: '#/components/schemas/ClusterRemoteSniffInfo'
- $ref: '#/components/schemas/ClusterRemoteProxyInfo'
ClusterRemoteSniffInfo:
type: object
properties:
mode:
type: string
enum:
- sniff
connected:
type: boolean
max_connections_per_cluster:
type: number
num_nodes_connected:
type: number
initial_connect_timeout:
$ref: '_common.yaml#/components/schemas/Duration'
skip_unavailable:
type: boolean
seeds:
type: array
items:
type: string
required:
- connected
- initial_connect_timeout
- max_connections_per_cluster
- mode
- num_nodes_connected
- seeds
- skip_unavailable
ClusterRemoteProxyInfo:
type: object
properties:
mode:
type: string
enum:
- proxy
connected:
type: boolean
initial_connect_timeout:
$ref: '_common.yaml#/components/schemas/Duration'
skip_unavailable:
type: boolean
proxy_address:
type: string
server_name:
type: string
num_proxy_sockets_connected:
type: number
max_proxy_socket_connections:
type: number
required:
- connected
- initial_connect_timeout
- max_proxy_socket_connections
- mode
- num_proxy_sockets_connected
- proxy_address
- server_name
- skip_unavailable