import{bb as r,bc as a,r as o,bd as c}from"./index-DxWYYOj0.js";const u=(e={})=>{const{data:t,error:n,mutate:s}=r(a("api/admin/metrics/rps"),i,e);return o.useMemo(()=>({metrics:t,loading:!n&&!t,refetch:()=>s(),error:n}),[t,n,s])},i=e=>fetch(e).then(c("Instance Metrics")).then(t=>t.json()),d=e=>!e||e==="undefined"?"unknown":e;export{d as a,u};
