feature(web): 增加跨天版本表显示

This commit is contained in:
2023-06-07 19:26:49 +08:00
parent 28981c3795
commit a4160b2fb6
7 changed files with 414 additions and 3 deletions

View File

@@ -42,12 +42,44 @@
<script src="components/queue-tab.js"></script>
<script src="components/running-tab.js"></script>
<script src="components/log-tab.js"></script>
<script src="components/version-tab.js"></script>
<script type="text/javascript">
(function () {
let amis = amisRequire('amis/embed')
let amisJSON = {
type: 'page',
title: 'Hudi 服务总台',
title: {
type: 'service',
api: {
method: 'get',
url: '${base}/cloud/heart',
replaceData: true,
adaptor: function (payload, response) {
if (response.status !== 200) {
return {
...payload,
data: {
status: false
}
}
}
return payload
}
},
interval: 5000,
silentPolling: true,
body: [
{
type: 'tpl',
tpl: "Hudi 服务总台",
},
{
type: 'status',
className: 'ml-1',
value: '${status}',
}
],
},
subTitle: 'Hudi 全链路服务监控和控制台',
body: {
type: 'tabs',
@@ -59,6 +91,7 @@
// runningTab(),
tableTab(),
queueTab(),
versionTab(),
yarnTab('b5-sync', '同步 b5', undefined, 'Sync'),
yarnTab('b1,b5,a4', '压缩 b1 b5 a4', 'datalake,ten_iap.datalake', 'Compaction'),
cloudTab(),