PageSourceSearch

https://conare.ai/_nuxt/BVyMJnqy.js

js conare.ai collected 2026-10-05 12:03:01 UTC 2,498 bytes, 1 lines download raw bytes

1import{_ as L}from"./CJ7FuaQ6.js";import{_ as R}from"./DvtYwO27.js";import{a as u,b as w,c as M,A as S,r as B}from"./Bdun32EW.js";import{f as D,u as E,y as I,z as m,s as P,w as h,o as t,c as r,j as c,i as s,t as n,F as p,a as l,r as g,b}from"./BrbEOYZf.js";import{u as x,f as F,g as G}from"./CuFC0UdF.js";import"./BnpX84y-.js";const V={class:"c-segmented",role:"group","aria-label":"range"},$=["aria-pressed","onClick"],z={key:0,class:"c-error"},j={key:1,class:"c-loading"},H={key:0,class:"c-error"},O={class:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4"},T={class:"c-caption"},J={class:"c-stat-value"},K={key:0,class:"c-stat-sub"},Q={key:1,class:"grid gap-4 xl:grid-cols-2"},te=D({__name:"performance",setup(U){E({title:"Performance"});const i=I("performance-range",()=>"24h"),{data:o,error:d,pending:v,refresh:y}=x(()=>`/api/console/performance?range=${i.value}`);function k(e){i.value=e,y()}const q=m(()=>{const e=o.value;return e?[{label:"searches",value:F(e.searches.count)},{label:"search p50",value:u(e.searches.p50)},{label:"search p95",value:u(e.searches.p95)},{label:"failed requests",value:w(e.errors5xx),sub:`of ${G(e.requests,"request")}`}]:[]}),N=m(()=>(o.value?.charts?.searchLatency??[]).map(e=>({label:e.labels.q??"",points:e.points}))),A=m(()=>(o.value?.charts?.requests??[]).slice(0,1).map(e=>({label:"requests / s",points:e.points})));return(e,f)=>{const _=L,C=R;return t(),P(C,{title:"Performance"},{actions:h(()=>[l("div",V,[(t(!0),r(p,null,g("ADMIN_RANGES"in e?e.ADMIN_RANGES:s(S),a=>(t(),r("button",{key:a,type:"button","aria-pressed":s(i)===a,onClick:W=>k(a)},n(("rangeLabel"in e?e.rangeLabel:s(B))(a)),9,$))),128))])]),default:h(()=>[s(d)?(t(),r("p",z,n(s(d)),1)):s(v)&&!s(o)?(t(),r("p",j,"Loading.")):s(o)?(t(),r(p,{key:2},[s(o).error?(t(),r("p",H,n(s(o).error),1)):c("",!0),l("div",O,[(t(!0),r(p,null,g(s(q),a=>(t(),r("div",{key:a.label,class:"c-card c-stat"},[l("p",T,n(a.label),1),l("p",J,n(a.value),1),a.sub?(t(),r("p",K,n(a.sub),1)):c("",!0)]))),128))]),s(o).charts?(t(),r("div",Q,[b(_,{title:"search latency",series:s(N),format:a=>("formatMs"in e?e.formatMs:s(u))(a)},null,8,["series","format"]),b(_,{title:"requests per second",series:s(A),format:a=>("formatRate"in e?e.formatRate:s(M))(a)},null,8,["series","format"])])):c("",!0),f[0]||(f[0]=l("p",{class:"c-meta"},"Timed at the API gateway for every request of this organization, from its arrival to its answer. Failed requests are answers with a 5xx status.",-1))],64)):c("",!0)]),_:1})}}});
1export{te as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.