| 1 | export interface IndexStats { |
| 2 | docs_count: string |
| 3 | health: IndexHealth |
| 4 | index: string |
| 5 | replica_count: string |
| 6 | store_size: string |
| 7 | store_size_value?: number |
| 8 | } |
| 9 | |
| 10 | export enum IndexHealth { |
| 11 | GREEN = "green", |
| 12 | YELLOW = "yellow", |
| 13 | RED = "red" |
| 14 | } |
| 15 | |
| 16 | export interface IndexAllocation { |
| 17 | id?: string |
| 18 | disk_available: null | string |
| 19 | disk_percent: null | string |
| 20 | disk_total: null | string |
| 21 | disk_used: null | string |
| 22 | node: string | "UNASSIGNED" |
| 23 | disk_percent_value?: number |
| 24 | } |
| 25 | |
| 26 | export interface IndexShard { |
| 27 | id?: string |
| 28 | index: string |
| 29 | node: null | string |
| 30 | shard: string |
| 31 | size: null | string |
| 32 | state: IndexShardState |
| 33 | } |
| 34 | |
| 35 | export enum IndexShardState { |
| 36 | STARTED = "STARTED", |
| 37 | UNASSIGNED = "UNASSIGNED" |
| 38 | } |
| 39 | |
| 40 | export interface ClusterHealth { |
| 41 | active_primary_shards: number |
| 42 | active_shards: number |
| 43 | active_shards_percent_as_number: number |
| 44 | cluster_name: string |
| 45 | delayed_unassigned_shards: number |
| 46 | discovered_cluster_manager: boolean |
| 47 | discovered_master: boolean |
| 48 | initializing_shards: number |
| 49 | number_of_data_nodes: number |
| 50 | number_of_in_flight_fetch: number |
| 51 | number_of_nodes: number |
| 52 | number_of_pending_tasks: number |
| 53 | relocating_shards: number |
| 54 | status: IndexHealth |
| 55 | task_max_waiting_in_queue_millis: number |
| 56 | timed_out: boolean |
| 57 | unassigned_shards: number |
| 58 | } |