-
Notifications
You must be signed in to change notification settings - Fork 478
Expand file tree
/
Copy pathapi-spec.json
More file actions
2078 lines (2078 loc) · 72.2 KB
/
Copy pathapi-spec.json
File metadata and controls
2078 lines (2078 loc) · 72.2 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"produces": [
"application/json"
],
"schemes": [
"https",
"http"
],
"swagger": "2.0",
"info": {
"description": "REST API for querying information about CockroachDB cluster health, nodes, ranges,\nsessions, and other meta information. For additional details, see cockroachlabs.com/docs/stable/cluster-api.",
"title": "CockroachDB v2 API",
"license": {
"name": "Business Source License"
},
"version": "2.0",
"x-logo": {
"url": "https://www.cockroachlabs.com/docs/images/cockroachlabs-logo-170.png",
"backgroundColor": "#FFFFFF",
"altText": "Cockroach Labs logo"
}
},
"host": "localhost",
"basePath": "/api/v2/",
"paths": {
"/databases/": {
"get": {
"description": "List all databases on this cluster.",
"produces": [
"application/json"
],
"summary": "List databases",
"operationId": "listDatabases",
"parameters": [
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation token for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Databases response",
"schema": {
"$ref": "#/definitions/databasesResponse"
}
}
}
}
},
"/databases/{database}/": {
"get": {
"description": "Retrieve the database's descriptor ID.",
"produces": [
"application/json"
],
"summary": "Get database descriptor ID",
"operationId": "databaseDetails",
"parameters": [
{
"type": "string",
"description": "Name of the database being looked up.",
"name": "database",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Database details response",
"schema": {
"$ref": "#/definitions/databaseDetailsResponse"
}
},
"404": {
"description": "Database not found"
}
}
}
},
"/databases/{database}/grants/": {
"get": {
"description": "Retrieve grants on a database. Grants are the privileges granted to users\non this database.",
"produces": [
"application/json"
],
"summary": "List grants on a database",
"operationId": "databaseGrants",
"parameters": [
{
"type": "string",
"description": "Name of the database being looked up.",
"name": "database",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Maximum number of grants to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation token for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Database grants response",
"schema": {
"$ref": "#/definitions/databaseGrantsResponse"
}
},
"404": {
"description": "Database not found"
}
}
}
},
"/databases/{database}/tables/": {
"get": {
"description": "List names of all tables in the database. The names of all responses will\nbe schema-qualified.",
"produces": [
"application/json"
],
"summary": "List tables on a database",
"operationId": "databaseTables",
"parameters": [
{
"type": "string",
"description": "Name of the database being looked up.",
"name": "database",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "Maximum number of tables to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation token for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Database tables response",
"schema": {
"$ref": "#/definitions/databaseTablesResponse"
}
},
"404": {
"description": "Database not found"
}
}
}
},
"/databases/{database}/tables/{table}/": {
"get": {
"description": "Retrieve details about a table.",
"produces": [
"application/json"
],
"summary": "Get table details",
"operationId": "tableDetails",
"parameters": [
{
"type": "string",
"description": "Name of the database being looked up.",
"name": "database",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Name of table being looked up. Table may be schema-qualified (schema.table) and each name component that contains sql unsafe characters such as . or uppercase letters must be surrounded in double quotes like \"Naughty schema\".table.",
"name": "table",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Database details response",
"schema": {
"$ref": "#/definitions/tableDetailsResponse"
}
},
"404": {
"description": "Database or table not found"
}
}
}
},
"/events/": {
"get": {
"description": "List the latest event log entries, in descending order.",
"produces": [
"application/json"
],
"summary": "List events",
"operationId": "listEvents",
"parameters": [
{
"type": "string",
"description": "Type of events to filter for (e.g., \"create_table\"). Only one event type can be specified at a time.",
"name": "type",
"in": "query"
},
{
"type": "integer",
"description": "Filter for events with this targetID. Only one targetID can be specified at a time.",
"name": "targetID",
"in": "query"
},
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation token for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Events response",
"schema": {
"$ref": "#/definitions/eventsResponse"
}
}
}
}
},
"/health/": {
"get": {
"description": "Check for node health. If `ready` is true, also check\nif this node is fully operational and ready to accept SQL connections.\nOtherwise, this endpoint always returns a successful response (if the API\nserver is up).",
"produces": [
"application/json"
],
"summary": "Check node health",
"operationId": "health",
"parameters": [
{
"type": "boolean",
"description": "If true, check whether this node is ready to accept SQL connections. If false, this endpoint always returns success, unless the API server itself is down.",
"name": "ready",
"in": "query"
}
],
"responses": {
"200": {
"description": "Indicates healthy node."
},
"500": {
"description": "Indicates unhealthy node."
}
}
}
},
"/login/": {
"post": {
"description": "Create an API session for use with API endpoints that require\nauthentication.",
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"summary": "Log in",
"operationId": "login",
"parameters": [
{
"description": "Credentials for login.",
"name": "credentials",
"in": "body",
"required": true,
"schema": {
"type": "object",
"required": [
"username",
"password"
],
"properties": {
"password": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "Login response.",
"schema": {
"$ref": "#/definitions/loginResponse"
}
},
"400": {
"description": "Bad request, if required parameters absent."
},
"401": {
"description": "Unauthorized, if credentials do not match."
}
}
}
},
"/logout/": {
"post": {
"security": [
{
"api_session": []
}
],
"description": "Log out, invalidating the API session token.",
"produces": [
"application/json"
],
"summary": "Log out",
"operationId": "logout",
"responses": {
"200": {
"description": "Logout response.",
"schema": {
"$ref": "#/definitions/logoutResponse"
}
},
"400": {
"description": "Bad request, returned if API session token is not present or invalid."
}
}
}
},
"/nodes/": {
"get": {
"security": [
{
"api_session": []
}
],
"description": "List all nodes on this cluster.\n\nClient must be logged in as a user with admin privileges.",
"produces": [
"application/json"
],
"summary": "List nodes",
"operationId": "listNodes",
"parameters": [
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation offset for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "List nodes response.",
"schema": {
"$ref": "#/definitions/nodesResponse"
}
}
}
}
},
"/nodes/{node_id}/ranges/": {
"get": {
"security": [
{
"api_session": []
}
],
"description": "List information about ranges on a specified node. If a list of range IDs\nis specified, only information about those ranges is returned.\n\nClient must be logged-in as a user with admin privileges.",
"produces": [
"application/json"
],
"summary": "List node ranges",
"operationId": "listNodeRanges",
"parameters": [
{
"type": "integer",
"description": "ID of node to query, or `local` for local node.",
"name": "node_id",
"in": "path",
"required": true
},
{
"type": "array",
"items": {
"type": "integer"
},
"description": "IDs of ranges to return information for. All ranges returned if unspecified.",
"name": "ranges",
"in": "query"
},
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation offset for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Node ranges response.",
"schema": {
"$ref": "#/definitions/nodeRangesResponse"
}
}
}
}
},
"/ranges/hot/": {
"get": {
"security": [
{
"api_session": []
}
],
"description": "List information about hot ranges. If a list of range IDs\nis specified, only information about those ranges is returned.\n\nClient must be logged in as a user with admin privileges.",
"produces": [
"application/json"
],
"summary": "List hot ranges",
"operationId": "listHotRanges",
"parameters": [
{
"type": "integer",
"description": "ID of node to query, or `local` for local node. If unspecified, all nodes are queried.",
"name": "node_id",
"in": "query"
},
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Continuation token for results after a past limited run.",
"name": "start",
"in": "query"
}
],
"responses": {
"200": {
"description": "Hot ranges response.",
"schema": {
"$ref": "#/definitions/hotRangesResponse"
}
}
}
}
},
"/ranges/{range_id}/": {
"get": {
"security": [
{
"api_session": []
}
],
"description": "Retrieve more information about a specific range.\n\nClient must be logged in as a user with admin privileges.",
"produces": [
"application/json"
],
"summary": "Get range details",
"operationId": "listRange",
"parameters": [
{
"type": "integer",
"name": "range_id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "List range response",
"schema": {
"$ref": "#/definitions/rangeResponse"
}
}
}
}
},
"/sessions/": {
"get": {
"security": [
{
"api_session": []
}
],
"description": "List all sessions on this cluster. If a username is provided, only\nsessions from that user are returned.\n\nClient must be logged in as a user with admin privileges.",
"produces": [
"application/json"
],
"summary": "List sessions",
"operationId": "listSessions",
"parameters": [
{
"type": "string",
"description": "Username of user to return sessions for; if unspecified, sessions from all users are returned.",
"name": "username",
"in": "query"
},
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Continuation token for results after a past limited run.",
"name": "start",
"in": "query"
}
],
"responses": {
"200": {
"description": "List sessions response.",
"schema": {
"$ref": "#/definitions/listSessionsResp"
}
}
}
}
},
"/users/": {
"get": {
"description": "List SQL users on this cluster.",
"produces": [
"application/json"
],
"summary": "List users",
"operationId": "listUsers",
"parameters": [
{
"type": "integer",
"description": "Maximum number of results to return in this call.",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"description": "Continuation token for results after a past limited run.",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "Users response",
"schema": {
"$ref": "#/definitions/usersResponse"
}
}
}
}
}
},
"definitions": {
"ActiveQuery": {
"type": "object",
"title": "A query in flight on a session.",
"properties": {
"id": {
"description": "ID of the query (uint128 presented as a hexadecimal string).",
"type": "string",
"x-go-name": "ID"
},
"is_distributed": {
"description": "True if this query is distributed.",
"type": "boolean",
"x-go-name": "IsDistributed"
},
"phase": {
"$ref": "#/definitions/ActiveQuery_Phase"
},
"progress": {
"description": "An estimate of the fraction of this query that has been\nprocessed.",
"type": "number",
"format": "float",
"x-go-name": "Progress"
},
"sql": {
"description": "SQL query string specified by the user.",
"type": "string",
"x-go-name": "Sql"
},
"sql_no_constants": {
"description": "The SQL statement fingerprint, compatible with StatementStatisticsKey.",
"type": "string",
"x-go-name": "SqlNoConstants"
},
"start": {
"description": "Start timestamp of this query.",
"type": "string",
"format": "date-time",
"x-go-name": "Start"
},
"txn_id": {
"$ref": "#/definitions/UUID"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"ActiveQuery_Phase": {
"type": "integer",
"format": "int32",
"title": "Phase of execution: `0` for PREPARING, `1` for EXECUTING. For more information see the doc \"SHOW QUERIES\".",
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"Attributes": {
"description": "Attributes specifies a list of arbitrary strings describing\nnode topology, store type, and machine capabilities.",
"type": "object",
"properties": {
"attrs": {
"type": "array",
"items": {
"type": "string"
},
"x-go-name": "Attrs"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"ClockTimestamp": {
"description": "The statically typed version of a Timestamp with its\nSynthetic flag set to false.",
"title": "A timestamp with the added capability of being able to\nupdate a peer's hybrid logical clock (HLC). It possesses this capability because the clock\ntimestamp itself is guaranteed to have come from an HLC clock somewhere in\nthe system. As such, a clock timestamp is a promise that some node in the\nsystem has a clock with a reading equal to or above its value.",
"$ref": "#/definitions/Timestamp"
},
"Constraint": {
"type": "object",
"title": "Constrains the stores that a replica can be stored on.",
"properties": {
"key": {
"description": "Only set if this is a constraint on locality.",
"type": "string",
"x-go-name": "Key"
},
"type": {
"$ref": "#/definitions/Constraint_Type"
},
"value": {
"description": "Value to constrain to.",
"type": "string",
"x-go-name": "Value"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/config/zonepb"
},
"Constraint_Type": {
"type": "integer",
"format": "int32",
"x-go-package": "cockroachdb/cockroach/pkg/config/zonepb"
},
"ConstraintsConjunction": {
"description": "A set of constraints that need to be satisfied\ntogether by a replica (i.e., by the replica's store).",
"type": "object",
"properties": {
"constraints": {
"description": "The set of attributes and/or localities that need to be satisfied by the\nstore.",
"type": "array",
"items": {
"$ref": "#/definitions/Constraint"
},
"x-go-name": "Constraints"
},
"num_replicas": {
"description": "The number of replicas that should abide by the constraints below. If left\nunspecified (i.e., set to 0), the constraints will apply to all replicas of\nthe range.\nAs of v2.0, only REQUIRED constraints are allowed when num_replicas is\nset to a non-zero value.",
"type": "integer",
"format": "int32",
"x-go-name": "NumReplicas"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/config/zonepb"
},
"DatabaseDetailsResponse_Grant": {
"type": "object",
"properties": {
"privileges": {
"description": "Privileges granted to the user.",
"type": "array",
"items": {
"type": "string"
},
"x-go-name": "Privileges"
},
"user": {
"description": "User that this grant applies to.",
"type": "string",
"x-go-name": "User"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"DatabasesResponse": {
"type": "object",
"title": "DatabasesResponse contains a list of databases.",
"properties": {
"databases": {
"type": "array",
"items": {
"type": "string"
},
"x-go-name": "Databases"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"EventsResponse": {
"description": "A set of event log entries. This is always limited\nto the latest N entries (N is enforced in the associated endpoint).",
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/definitions/EventsResponse_Event"
},
"x-go-name": "Events"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"EventsResponse_Event": {
"type": "object",
"properties": {
"event_type": {
"description": "The type of event (e.g., \"create_table\", \"drop_table\".",
"type": "string",
"x-go-name": "EventType"
},
"info": {
"description": "Detailed information for the event. The contents vary\ndepending on the event.",
"type": "string",
"x-go-name": "Info"
},
"reporting_id": {
"description": "Reporting ID for this event.",
"type": "integer",
"format": "int64",
"x-go-name": "ReportingID"
},
"target_id": {
"description": "Target for this event.",
"type": "integer",
"format": "int64",
"x-go-name": "TargetID"
},
"timestamp": {
"description": "The time at which the event occurred.",
"type": "string",
"format": "date-time",
"x-go-name": "Timestamp"
},
"unique_id": {
"description": "A unique identifier for this event.",
"type": "array",
"items": {
"type": "integer",
"format": "uint8"
},
"x-go-name": "UniqueID"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"GCPolicy": {
"type": "object",
"title": "GCPolicy defines garbage collection policies which apply to MVCC\nvalues within a zone.",
"properties": {
"ttl_seconds": {
"description": "TTLSeconds specifies the maximum age of a value before it's\ngarbage collected. Only older versions of values are garbage\ncollected. Specifying \u003c= 0 mean older versions are never GC'd.",
"type": "integer",
"format": "int32",
"x-go-name": "TTLSeconds"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/config/zonepb"
},
"Key": {
"description": "Key is a custom type for a byte string in proto\nmessages which refer to Cockroach keys.",
"type": "array",
"items": {
"type": "integer",
"format": "uint8"
},
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"Lease": {
"description": "Lease contains information about range leases including the\nexpiration and lease holder.",
"type": "object",
"properties": {
"acquisition_type": {
"$ref": "#/definitions/LeaseAcquisitionType"
},
"deprecated_start_stasis": {
"$ref": "#/definitions/Timestamp"
},
"epoch": {
"description": "The epoch of the lease holder's node liveness entry. If this value is\nnon-zero, the expiration field is ignored.",
"type": "integer",
"format": "int64",
"x-go-name": "Epoch"
},
"expiration": {
"$ref": "#/definitions/Timestamp"
},
"proposed_ts": {
"$ref": "#/definitions/ClockTimestamp"
},
"replica": {
"$ref": "#/definitions/ReplicaDescriptor"
},
"sequence": {
"$ref": "#/definitions/LeaseSequence"
},
"start": {
"$ref": "#/definitions/ClockTimestamp"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"LeaseAcquisitionType": {
"description": "The type of lease acquisition event that\nresulted in the current lease.",
"type": "integer",
"format": "int32",
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"LeasePreference": {
"description": "A preference about where range leases should be\nlocated.",
"type": "object",
"properties": {
"constraints": {
"type": "array",
"items": {
"$ref": "#/definitions/Constraint"
},
"x-go-name": "Constraints"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/config/zonepb"
},
"LeaseSequence": {
"type": "integer",
"format": "int64",
"title": "A custom type for a lease sequence number.",
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"ListSessionsError": {
"type": "object",
"title": "An error wrapper object for ListSessionsResponse.",
"properties": {
"message": {
"description": "Error message.",
"type": "string",
"x-go-name": "Message"
},
"node_id": {
"$ref": "#/definitions/NodeID"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"ListSessionsResponse": {
"type": "object",
"title": "Response object for ListSessions and ListLocalSessions.",
"properties": {
"errors": {
"description": "Any errors that occurred during fan-out calls to other nodes.",
"type": "array",
"items": {
"$ref": "#/definitions/ListSessionsError"
},
"x-go-name": "Errors"
},
"sessions": {
"description": "A list of sessions on this node or cluster.",
"type": "array",
"items": {
"$ref": "#/definitions/Session"
},
"x-go-name": "Sessions"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"Locality": {
"description": "An ordered set of key value Tiers that describe a node's\nlocation. The tier keys should be the same across all nodes.",
"type": "object",
"properties": {
"tiers": {
"type": "array",
"items": {
"$ref": "#/definitions/Tier"
},
"x-go-name": "Tiers"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"NodeID": {
"description": "A custom type for a cockroach node ID. (not a raft node ID)\n0 is not a valid NodeID.",
"type": "integer",
"format": "int32",
"x-go-package": "cockroachdb/cockroach/pkg/roachpb"
},
"PrettySpan": {
"type": "object",
"properties": {
"end_key": {
"type": "string",
"x-go-name": "EndKey"
},
"start_key": {
"type": "string",
"x-go-name": "StartKey"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"RangeProblems": {
"type": "object",
"title": "Describes issues reported by a range. For internal use only.",
"properties": {
"leader_not_lease_holder": {
"type": "boolean",
"x-go-name": "LeaderNotLeaseHolder"
},
"no_lease": {
"type": "boolean",
"x-go-name": "NoLease"
},
"no_raft_leader": {
"type": "boolean",
"x-go-name": "NoRaftLeader"
},
"overreplicated": {
"type": "boolean",
"x-go-name": "Overreplicated"
},
"quiescent_equals_ticking": {
"description": "Quiescent ranges do not tick by definition, but we track this in\ntwo different ways and suspect that they're getting out of sync.\nIf the replica's quiescent flag doesn't agree with the store's\nlist of replicas that are ticking, warn about it.",
"type": "boolean",
"x-go-name": "QuiescentEqualsTicking"
},
"raft_log_too_large": {
"description": "When the raft log is too large, it can be a symptom of other issues.",
"type": "boolean",
"x-go-name": "RaftLogTooLarge"
},
"unavailable": {
"type": "boolean",
"x-go-name": "Unavailable"
},
"underreplicated": {
"type": "boolean",
"x-go-name": "Underreplicated"
}
},
"x-go-package": "cockroachdb/cockroach/pkg/server/serverpb"
},
"RangeStatistics": {
"description": "Describes statistics reported by a range. For internal use\nonly.",
"type": "object",
"properties": {