simplepage 页面 历史告警需要支持定时请求 #58

Open
opened 2025-01-07 14:53:34 +08:00 by liangyuanpeng · 4 comments

默认定时请求10min一次, page config 接口中 schedulers.alertHistory 如果有字段并且大于0则使用该字段作为定时请求的轮询时间.

扩展: 是否能够达到通用的实现方式, 例如svg上某个块设置 id=alertHistory2 然后配置中schedulers.alertHistory2 有有效的配置则可以动态的使用该字段的值去定时请求.

默认定时请求10min一次, page config 接口中 schedulers.alertHistory 如果有字段并且大于0则使用该字段作为定时请求的轮询时间. 扩展: 是否能够达到通用的实现方式, 例如svg上某个块设置 id=alertHistory2 然后配置中schedulers.alertHistory2 有有效的配置则可以动态的使用该字段的值去定时请求.
liangyuanpeng added the
kind/feature
label 2025-01-07 14:53:34 +08:00
jeff was assigned by liangyuanpeng 2025-01-07 14:53:39 +08:00
Owner

加上了 再看下,refetch 10min

加上了 再看下,refetch 10min
jeff added the
done-waiting-confirmed
label 2025-01-10 00:45:48 +08:00
Author
Owner

目前 refetch 似乎至少是50min, 页面挂着, 只请求了两次

  1. 10:45
  2. 11:25
目前 refetch 似乎至少是50min, 页面挂着, 只请求了两次 1. 10:45 2. 11:25
Owner

应该是没有问题的,因为我这边在本地是改成了5s, 线上是600s, 为了方便观察验证,现在改成10s 请求一次。 麻烦再观察下,没问题我再改回 600s .

应该是没有问题的,因为我这边在本地是改成了5s, 线上是600s, 为了方便观察验证,现在改成10s 请求一次。 麻烦再观察下,没问题我再改回 600s .
Author
Owner

10s 似乎是正确的,改为600s后控制台加一个log, 然后确认后可以截图一下发出来,同时log保留到验证完成后,因为验证时确实没有正常请求.

10s 似乎是正确的,改为600s后控制台加一个log, 然后确认后可以截图一下发出来,同时log保留到验证完成后,因为验证时确实没有正常请求.
liangyuanpeng removed the
done-waiting-confirmed
label 2025-01-13 10:31:05 +08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#58
No description provided.