simplepage 页面 历史告警需要支持定时请求 #58
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#58
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
默认定时请求10min一次, page config 接口中 schedulers.alertHistory 如果有字段并且大于0则使用该字段作为定时请求的轮询时间.
扩展: 是否能够达到通用的实现方式, 例如svg上某个块设置 id=alertHistory2 然后配置中schedulers.alertHistory2 有有效的配置则可以动态的使用该字段的值去定时请求.
加上了 再看下,refetch 10min
目前 refetch 似乎至少是50min, 页面挂着, 只请求了两次
应该是没有问题的,因为我这边在本地是改成了5s, 线上是600s, 为了方便观察验证,现在改成10s 请求一次。 麻烦再观察下,没问题我再改回 600s .
10s 似乎是正确的,改为600s后控制台加一个log, 然后确认后可以截图一下发出来,同时log保留到验证完成后,因为验证时确实没有正常请求.