import{h as g,x as d}from"./system.1703796278973.js";import{_}from"./Pie.vue_vue_type_script_setup_true_lang.1703796278973.js";import{m as u}from"./map.17037962789732.js";import{d as y,k as v,q as C,o as x,x as k,z as s,u as o,A as f,b as h,G as S,H as B}from"./vue.1703796278973.js";import{_ as j}from"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";import"./index.1703796278973314.js";const c=a=>(S("data-v-61594665"),a=a(),B(),a),I={class:"device-count-container"},M=c(()=>s("h5",{class:"title"},"基础统计",-1)),T={class:"box-list"},U={class:"box-item"},V=c(()=>s("div",{class:"label"},"CPU使用率",-1)),D={class:"value"},H={class:"box-item"},N=c(()=>s("div",{class:"label"},"JVM内存",-1)),P={class:"value"},$=y({__name:"BasicCountCard",setup(a){var n,l;const i=v(0),r=v(0),{jumpPage:b}=g(),m=(n=d("operations-statistics-system-info-cpu-realTime","/dashboard/systemMonitor/stats/info/realTime",{type:"cpu",interval:"2s",agg:"avg"}))==null?void 0:n.pipe(u(t=>t.payload)).subscribe(t=>{var e;i.value=((e=t.value)==null?void 0:e.systemUsage)||0}),p=(l=d("operations-statistics-system-info-memory-realTime","/dashboard/systemMonitor/stats/info/realTime",{type:"memory",interval:"2s",agg:"avg"}))==null?void 0:l.pipe(u(t=>t.payload)).subscribe(t=>{var e;r.value=((e=t.value)==null?void 0:e.jvmHeapUsage)||0});return C(()=>{m&&m.unsubscribe(),p&&p.unsubscribe()}),(t,e)=>(x(),k("div",I,[M,s("span",{class:"detail",onClick:e[0]||(e[0]=q=>o(b)("link/DashBoard"))}," 详情 "),s("div",T,[s("div",U,[V,s("div",D,f(o(i)+"%"),1),h(_,{class:"chart",value:o(i),"chart-ref":"cpuChart","color-arr":["#ebebeb","#d3adf7"],image:"/images/home/top-3.svg"},null,8,["value"])]),s("div",H,[N,s("div",P,f(o(r)+"%"),1),h(_,{class:"chart","chart-ref":"jvmChart",value:o(r),"color-arr":["#d6e4ff","#85a5ff"],image:"/images/home/top-4.svg"},null,8,["value"])])])]))}});const rs=j($,[["__scopeId","data-v-61594665"]]);export{rs as default};
