PageSourceSearch

https://app.middleware.io/static/Dmyk4E-d.production.bundle.min.js

js middleware.io collected 2026-10-02 03:34:34 UTC 7,206 bytes, 1 lines download raw bytes

1import{r as c,ac as j,j as e,M as A,B as w,ad as P,a4 as l}from"./CZzrexQa.production.bundle.min.js";import{cc as N,cd as R,cf as r,e0 as M,e1 as L,w as O,p as V,e2 as Q,u as q,L as B,T as C,cg as U,a as k,ch as W,e3 as Y,e4 as o,e5 as d,e6 as n,e7 as F}from"./DeceMiF-.production.bundle.min.js";import{T as G}from"./Y4Ob0Is8.production.bundle.min.js";import"./9eHdvLN4.production.bundle.min.js";import{h as $,c as u}from"./DQegFpUo.production.bundle.min.js";import{P as D}from"./CHClG9UV.production.bundle.min.js";import{b as t,a as H}from"./C_cH1u9D.production.bundle.min.js";import{u as v}from"./DvLd3evF.production.bundle.min.js";import"./DGYQp8fe.production.bundle.min.js";import"./b2Mkg01q.production.bundle.min.js";import"./D4lvmK5r.production.bundle.min.js";import"./DwmhJbxl.production.bundle.min.js";import"./YCM_kEyP.production.bundle.min.js";import"./CUZmxn9S.production.bundle.min.js";import"./E6csxmgU.production.bundle.min.js";import"./tkddr5kZ.production.bundle.min.js";import"./BmBjCq8D.production.bundle.min.js";import"./Dsqj8S3w.production.bundle.min.js";import"./3wIbuO__.production.bundle.min.js";import"./kkIr59yR.production.bundle.min.js";import"./D-90pMQ7.production.bundle.min.js";import"./B0uEge7d.production.bundle.min.js";import"./DGAisTA8.production.bundle.min.js";import"./D0x1Z4HE.production.bundle.min.js";import"./Ci_hGDFV.production.bundle.min.js";import"./CNsPFEJO.production.bundle.min.js";import"./DtpVAsok.production.bundle.min.js";import"./2mZBARql.production.bundle.min.js";import"./vhNSgALD.production.bundle.min.js";import"./CiD4UJCU.production.bundle.min.js";import"./DWUNlcjA.production.bundle.min.js";import"./oN3AJijl.production.bundle.min.js";import"./DFn2u8qh.production.bundle.min.js";import"./Bm1LOIPR.production.bundle.min.js";import"./D8sKcCdJ.production.bundle.min.js";import"./CJIgguc4.production.bundle.min.js";import"./7LcJfZNO.production.bundle.min.js";import"./CXT9N8xZ.production.bundle.min.js";import"./zzLyrqbE.production.bundle.min.js";import"./C_Ln3svq.production.bundle.min.js";import"./CpVN2k6O.production.bundle.min.js";import"./B7Fri_dM.production.bundle.min.js";import"./CLBsRoPD.production.bundle.min.js";import"./Ch78CD0x.production.bundle.min.js";import"./D1TNtnEv.production.bundle.min.js";import"./DnQqxH0F.production.bundle.min.js";const X=()=>{const x=v(N),m=v(R),[b,a]=c.useState(!1),p=c.useCallback(()=>{a(!0)},[]),i=c.useMemo(()=>[{title:"Avg Error Rate",titleInfo:"Avg Error Rate",columns:[r.ERROR_RATE],resourceName:"avg_error_rate",subInfo:"",badgeOptions:{subInfoBadgeRange:[{min:0,max:9.99,badgeType:t.Success,subInfo:""},{min:10.01,max:29.99,badgeType:t.Warning,subInfo:""},{min:30.01,max:100,badgeType:t.Error,subInfo:""}]}},{title:"Active Services",titleInfo:"Number of running services",columns:[M.SERVICE_NAME],resourceName:"active_services",subInfo:"",badgeOptions:{subInfoBadgeRange:[{min:0,max:0,badgeType:t.Warning,subInfo:""},{min:1,max:1e3,badgeType:t.Success,subInfo:""}]}},{title:"Success Rate",titleInfo:"Percentage of requests per second ending in success response",columns:[r.SUCCESS_RATE],resourceName:"success_rate",subInfo:"",badgeOptions:{subInfoBadgeRange:[{min:0,max:79.99,badgeType:t.Error,subInfo:""},{min:80,max:94.99,badgeType:t.Warning,subInfo:""},{min:95,max:100,badgeType:t.Success,subInfo:""}]}},{title:"Max Latency",titleInfo:"Max Latency",columns:[r.MAX_RESPONSE_TIME_NS],resourceName:"max_latency",subInfo:"",badgeOptions:{type:t.Info}}],[x,m]),g=c.useMemo(()=>i.map(s=>({chartType:j,uniqName:s.title,resource:O,columns:s.columns,builderProps:{boxTitle:s.title,filters:x?m.filters:[],subInfo:s.subInfo,nestedProps:{chartHeight:120,titleInfo:s.titleInfo??s.title,countChartOptions:{subInfoBadgeRange:s.badgeOptions.subInfoBadgeRange,badgeType:s.badgeOptions.type}},extraParams:[L.QUICKWIT]}})),[i,x,m.filters]);return e.jsxs("div",{className:"service-overview-card",children:[e.jsx("div",{className:"service-stats",children:i.map((s,T)=>e.jsx("div",{className:`overview-card ${s.resourceName==="max_latency"?"clickable-card":""}`,onClick:s.resourceName==="max_latency"?p:void 0,children:e.jsx(V,{...g[T]})},s.resourceName))}),e.jsx(Q,{isOpen:b,onClose:()=>a(!1)})]})},We=()=>{var y,E;const x=q(),[m,b]=B("apm-services-selected-tab",0),a=c.useContext(A),p=(E=(y=a==null?void 0:a.params)==null?void 0:y.query)==null?void 0:E.get("apm-services-tab"),i=v(N),g=v(R),s=c.useMemo(()=>i?g.filters:[],[i,g.filters]),T=c.useMemo(()=>i?g.filters:[w.Equal(C.STATUS_CODE,U.ERROR_STATUS_CODE)],[i,g.filters]);if(!x(D.ServiceList))return e.jsx(k,{});c.useEffect(()=>(p&&+p!==m&&b(+p),()=>{var h,I,_,S;
1p&&((I=(h=a==null?void 0:a.params)==null?void 0:h.query)==null||I.delete("apm-services-tab"),(S=(_=a==null?void 0:a.params)==null?void 0:_.query)==null||S.redirect())}),[p]);const f=m===1;return e.jsxs("div",{className:`apm-services ${f?"map-view-mode":""}`,children:[e.jsx("div",{className:`header-view ${f?"header-overlay":""}`,children:e.jsx("div",{className:"search-box",children:e.jsx(W,{placeholder:"Search by name, tag, label or annotation",extraElement:e.jsx(G,{tabs:[{label:"Table View",value:0},{label:"Map View",value:1}],selectedTab:m,onTabChange:({value:h})=>b(h)}),regexSearch:C.SERVICE_NAME})})}),e.jsxs("div",{className:`${f?"apm-body-wrapper-map-view":"apm-body-wrapper"}`,children:[f&&e.jsx(Y,{}),!f&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"service-stats-wrapper",children:e.jsx(X,{})}),e.jsxs("div",{className:"service-overview-graphs two-card-row",children:[e.jsx(o,{title:"Avg Latency(ms)",column:n(r.AVG_RESPONSE_TIME_MS),name:"service-dashboard-avg_response_time_ms",chartType:P,widgetAppId:$,columnConfig:d,filters:s}),e.jsx(o,{title:"Errors (per Sec)",column:n(r.REQUEST_RATE),name:"service-dashboard-error_rate",chartType:l,widgetAppId:u,columnConfig:{error_rate:{tpl:{type:H,config:{},label:"Count"}}},filters:T})]}),e.jsx("div",{className:"service-list",children:e.jsx(F,{})}),e.jsxs("div",{className:"service-latency-graphs three-card-row",children:[e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"P50 Latency (ms)",column:n(r.P50_LATENCY),name:"service-dashboard-p_50",chartType:l,widgetAppId:u,columnConfig:d,filters:s})}),e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"P75 Latency (ms)",column:n(r.P75_LATENCY),name:"service-dashboard-p_75",chartType:l,widgetAppId:u,columnConfig:d,filters:s})}),e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"P90 Latency (ms)",column:n(r.P90_LATENCY),name:"service-dashboard-p_90",chartType:l,widgetAppId:u,columnConfig:d,filters:s})}),e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"P95 Latency (ms)",name:"service-dashboard-p_95",column:n(r.P95_LATENCY),chartType:l,widgetAppId:u,columnConfig:d,filters:s})}),e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"P99 Latency (ms)",column:n(r.P99_LATENCY),name:"service-dashboard-p_99",chartType:l,widgetAppId:u,columnConfig:d,filters:s})}),e.jsx("div",{className:"apm-graph-card",children:e.jsx(o,{title:"Max Latency (ms)",column:n(r.MAX_RESPONSE_TIME_MS),name:"service-dashboard-max_response_time_ms",chartType:l,widgetAppId:u,columnConfig:d,filters:s})})]})]})]})]})};export{We 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.