mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:49:24 +00:00
feat: update data
This commit is contained in:
parent
a5b1092968
commit
c196e38e30
@ -14,6 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export const MaximumEntities = 20;
|
||||
|
||||
export enum sizeEnum {
|
||||
XS = "XS",
|
||||
|
@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { RespFields } from "./data";
|
||||
import { RespFields, MaximumEntities } from "./data";
|
||||
import { EntityType, ExpressionResultType } from "@/views/dashboard/data";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useDashboardStore } from "@/store/modules/dashboard";
|
||||
@ -323,8 +323,8 @@ export async function useExpressionsQueryPodsMetrics(
|
||||
}
|
||||
|
||||
const result = [];
|
||||
for (let i = 0; i < allPods.length; i += 20) {
|
||||
result.push(allPods.slice(i, i + 20));
|
||||
for (let i = 0; i < allPods.length; i += MaximumEntities) {
|
||||
result.push(allPods.slice(i, i + MaximumEntities));
|
||||
}
|
||||
const promiseArr = result.map((d: Array<(Instance | Endpoint | Service) & Indexable>) =>
|
||||
fetchPodsExpressionValues(d),
|
||||
|
Loading…
Reference in New Issue
Block a user