update min interval to 1

This commit is contained in:
medcl 2021-03-05 12:07:58 +08:00
parent 9dbaa075b9
commit 37e5d860be
1 changed files with 12 additions and 7 deletions

View File

@ -486,7 +486,7 @@ class ClusterMonitor extends PureComponent {
// <Menu.Item key="5"> */}
<Input.Group compact>
<Button style={{cursor: "default"}}>刷新间隔</Button>
<InputNumber min={10} defaultValue={10} ref={el => this.refreshNum = el}/>
<InputNumber min={1} defaultValue={10} ref={el => this.refreshNum = el}/>
<Select defaultValue="seconds" ref={el => this.refreshUnit = el}>
<Select.Option value="seconds"></Select.Option>
<Select.Option value="minutes"></Select.Option>
@ -554,20 +554,25 @@ class ClusterMonitor extends PureComponent {
<Statistic valueStyle={vstyle} title="索引数" value={clusterStats.indices_count}/>
</Col>
<Col md={3} xs={4}>
<Statistic valueStyle={vstyle} title="分片"
value={clusterStats.primary_shards + '/' + clusterStats.unassigned_shards + '/' + clusterStats.total_shards}/>
<Col md={2} xs={4}>
<Statistic valueStyle={vstyle} title="主/总分片"
value={clusterStats.primary_shards + '/' + clusterStats.total_shards}/>
</Col>
<Col md={3} xs={4}>
<Col md={2} xs={4}>
<Statistic valueStyle={vstyle} title="未分配分片"
value={clusterStats.unassigned_shards}/>
</Col>
<Col md={2} xs={4}>
<Statistic valueStyle={vstyle} title="文档数" value={clusterStats.document_count}/>
</Col>
<Col md={3} xs={4}>
<Col md={2} xs={4}>
<Statistic valueStyle={vstyle} title="存储空间"
value={clusterStats.used_store_bytes + '/' + clusterStats.max_store_bytes}/>
</Col>
<Col md={3} xs={4}>
<Col md={2} xs={4}>
<Statistic valueStyle={vstyle} title="JVM 内存"
value={clusterStats.used_jvm_bytes + '/' + clusterStats.max_jvm_bytes}/>
</Col>