docs: explain instance access, monitoring and resource management
This commit is contained in:
1 parent
ab22d406c0
commit
7f54cae497
10 files changed
+48
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
/** 多模块监控图表:统一 CPU/内存/带宽/磁盘系列,保留各模块时间单位与指标口径差异。 */
|
||||
import "~/assets/styles/InstanceMonitor.B0X15iQt.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { renderList } from "vue";
|
||||
@@ -128,6 +129,7 @@ var O = defineAsyncComponent(() =>
|
||||
return `${String(t.getHours()).padStart(2, `0`)}:${String(t.getMinutes()).padStart(2, `0`)}`;
|
||||
};
|
||||
async function te(e, t, n = `mf_cloud`) {
|
||||
// 云模块各指标并行读取并分别展示失败;物理智简只请求实际支持的带宽图。
|
||||
let r = [
|
||||
{
|
||||
type: `cpu`,
|
||||
@@ -254,6 +256,7 @@ var O = defineAsyncComponent(() =>
|
||||
});
|
||||
}
|
||||
async function ne(e, t, n) {
|
||||
// 财务接口使用毫秒起止时间,CPU/内存交给专用转换器,其他系列保留服务端单位。
|
||||
let r = [
|
||||
{
|
||||
type: `cpu`,
|
||||
@@ -336,6 +339,7 @@ var O = defineAsyncComponent(() =>
|
||||
});
|
||||
}
|
||||
async function re(e) {
|
||||
// 快快云监控时间范围由接口决定,带宽值按其既有口径从千分单位转换为 Mbps。
|
||||
let t = await y.get(`/kky_ecs/monitor/${e}`),
|
||||
n = (t.sample_info ?? []).map((e) =>
|
||||
String(e.timestamp ?? ``).slice(11, 16),
|
||||
@@ -361,6 +365,7 @@ var O = defineAsyncComponent(() =>
|
||||
];
|
||||
}
|
||||
async function $() {
|
||||
// 请求绑定模块、实例和所选时间窗;相同窗口刷新可留旧图,不同窗口先清空避免误读。
|
||||
if (J) return;
|
||||
let e = ++q,
|
||||
t = g.hostId,
|
||||
@@ -401,6 +406,7 @@ var O = defineAsyncComponent(() =>
|
||||
}
|
||||
let ae = (e) => e.series.some((e) => e.data.some((e) => e !== null));
|
||||
function oe(e) {
|
||||
// 缺测点保持 null,不插值连接;百分比轴上限和单位来自归一化指标定义。
|
||||
let t = S.isDark.value ? `#a1a1aa` : `#94a3b8`,
|
||||
n = S.isDark.value ? `rgba(255,255,255,.08)` : `rgba(0,0,0,.06)`;
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user