File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ interface Window {
8080 getNodeInfo : (
8181 id ?: string ,
8282 ) => Promise < import ( '../types/api/systemState' ) . TEvSystemStateResponse > ;
83+ getNodesList : ( ) => Promise < import ( '../types/api/nodesList' ) . TEvNodesInfo > ;
8384 [ method : string ] : Function ;
8485 } ;
8586}
Original file line number Diff line number Diff line change 1+ /**
2+ * endpoint: /viewer/json/nodesList
3+ *
4+ * source: https://github.com/ydb-platform/ydb/blob/main/library/cpp/actors/core/interconnect.h
5+ */
6+ export type TEvNodesInfo = TNodeInfo [ ] ;
7+
8+ export interface TNodeInfo {
9+ Id ?: number ;
10+ Host ?: string ;
11+ ResolveHost ?: string ;
12+ Address ?: string ;
13+ Port ?: number ;
14+ PhysicalLocation ?: TNodeLocation ;
15+ }
16+
17+ interface TNodeLocation {
18+ DataCenter ?: number ;
19+ Room ?: number ;
20+ Rack ?: number ;
21+ Body ?: number ;
22+ DataCenterId ?: string ;
23+ /** String with DC, Module, Rack and Unit ids */
24+ Location ?: string ;
25+ }
You can’t perform that action at this time.
0 commit comments