chore: adjust bucket_size in TopN (#102)
Co-authored-by: yaojiping <yaojiping@infini.ltd>
This commit is contained in:
parent
098371729e
commit
0fa4411041
|
@ -285,7 +285,10 @@ export default (props) => {
|
|||
}
|
||||
if ((isAreaRate || isColorRate) || (isAreaLatency || isColorLatency)) {
|
||||
body['time_field'] = "timestamp"
|
||||
body['bucket_size'] = "auto"
|
||||
body['bucket_size'] = "auto"
|
||||
if (newTimeRange.max && newTimeRange.min) {
|
||||
body['bucket_size'] = `${Math.round((newTimeRange.max - newTimeRange.min) / 1000)}s`
|
||||
}
|
||||
}
|
||||
const res = await request(`/elasticsearch/infini_default_system_cluster/visualization/data`, {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Reference in New Issue