MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/netdata/usr/local/share/netdata/web/v3/1910.86634bfa4a7230e5d420.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"161df38a3ce485b0993d5667ea290f6097b8818b"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e658f760-67f9-4b55-954b-25363ec5aefc",e._sentryDebugIdIdentifier="sentry-dbid-e658f760-67f9-4b55-954b-25363ec5aefc")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[1910],{60959(e,t,a){a.d(t,{A:()=>i});var o=a(38429),l=a(10444),n=a(74848);const i=e=>{let{children:t}=e;return(0,l.J)()?(0,n.jsx)(o.Layer,{full:!0,children:(0,n.jsx)(o.Flex,{width:"100%",background:"mainBackground","data-testid":"mobileContainer",children:t})}):t}},87650(e,t,a){a.d(t,{A:()=>F});var o=a(38429),l=a(19075),n=a(62718),i=a(10444),d=a(19186),r=a(96540),s=a(76667),c=a(42790),u=a(24013),g=a(882);const h=(0,g.default)(o.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]);var p=a(52007),x=a(1390),m=a(74630),f=a(94404),b=a(74891),I=a(74848);const j=(0,f.A)((0,b.A)(o.Button)),y=e=>{let{disabled:t,nodeId:a,alertId:l,context:n,lastStatusChange:i,onClose:d,isLoading:g,small:f=!1,testid:b="alertDetailsModal"}=e;const y=(0,s.Zp)(),v=(0,u.Zl)(a),w=(0,r.useCallback)(()=>{d&&d(),y(v,l?{state:{alertId:l}}:{state:{contextToGo:n}})},[v,l]),C=(0,c.rI)(),k=(0,r.useCallback)(()=>{const e=1e3*i,t=e-6e4;C(a=>({...a,highlight:{after:t,before:e},correlation:!0})),w()},[i,n,w,l]);return(0,I.jsx)(h,{justifyContent:"end",gap:2,children:(0,I.jsxs)(o.Flex,{gap:2,justifyContent:"end",children:[(0,I.jsx)(j,{small:f,onClick:k,flavour:"hollow",isLoading:g,icon:"correlation_inv",padding:[1,2],"data-testid":`${b}-runCorrelations-button`,"data-ga":"alert-modal::click-run-correlations::alerts-view",payload:{action:"Run correlations",alertId:l,nodeId:a},tooltip:"Run correlations",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,I.jsx)(j,{small:f,onClick:w,flavour:"hollow",isLoading:g,disabled:g||t,padding:[1,2],icon:"metrics","data-testid":`${b}-goToNode-button`,"data-ga":"alert-modal::click-goto-chart::alerts-view",payload:{action:"Go to chart",alertId:l,nodeId:a},tooltip:"Go to chart",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,I.jsx)(p.A,{alertId:l,nodeId:a,isLoading:g,small:f,"data-testid":`${b}-edit-alert-button`,icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,I.jsx)(x.A,{"data-testid":`${b}-troubleshoot-alert-button`,alertId:l,small:!0,flavour:"hollow",dropContainerProps:{iconContainerProps:{position:"relative",left:"45%"}},popoverProps:{localStorageKey:"dissmiss-ask-ai-popover-alert-page"},ui:"alert-page",padding:[1,2],label:void 0,tooltip:"Troubleshoot alert with AI",tooltipProps:{align:"bottom"},showPopover:!0}),(0,I.jsx)(m.A,{alertId:l,small:f,testid:b,padding:[1,2]})]})})},v=(0,r.memo)(y);var w=a(75894);const C=e=>{let{alertId:t,context:a,name:l,nodeId:n,status:d,lastStatusChange:r,fullyLoaded:s,isWebview:c}=e;const u=(0,i.J)();return(0,I.jsxs)(o.Flex,{justifyContent:"between",children:[(0,I.jsxs)(o.Flex,{alignItems:"center",gap:2,children:[(0,I.jsx)(o.TextBig,{color:"manuItem",children:l}),(0,I.jsx)(w.A,{margin:u?null:[.5,0,0],flavour:d,"data-testid":"alertView-statusPill",children:d})]}),!c&&s&&!u&&(0,I.jsx)(v,{lastStatusChange:r,alertId:t,context:a,name:l,nodeId:n,small:!0,testid:"alertView"})]})};var k=a(92318),A=a(60908);const L=g.default.img.withConfig({displayName:"sc-404__Illustration",componentId:"sc-4w81fg-0"})(["height:35%;width:35%;"]),T=g.default.div.withConfig({displayName:"sc-404__ButtonContainer",componentId:"sc-4w81fg-1"})(["margin:",";"],(0,o.getSizeBy)(4)),S=()=>{const e=`${k.A.assetsBaseURL}/img/no-nodes-room.svg`;return(0,I.jsx)(A.DL,{children:(0,I.jsxs)(o.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"],children:[(0,I.jsx)(L,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),(0,I.jsx)(o.H3,{children:"We couldn't find the alert"}),(0,I.jsx)(o.Text,{children:"This can be a temporary problem of that specific alert."}),(0,I.jsx)(T,{children:(0,I.jsx)(o.Button,{label:"Retry",icon:"reload"})})]})})};var _=a(81474),B=a(51262),R=a(12407);const E=e=>{let{children:t}=e;return(0,I.jsxs)(o.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center",children:[(0,I.jsx)(o.Icon,{name:"logo_s",color:"success",width:"23px"}),t]})},F=e=>{let{alertId:t,spaceId:a,roomId:r,isWebview:s}=e;const c=(0,d.XA)("name"),{isNodeRestricted:u}=(0,B.A)(),{fullyLoaded:g=!1,fullyLoading:h=!0,lastStatusChange:p,context:x,name:m,nodeId:f,status:b}=(0,l.JL)(t);(0,l.yk)(t,{spaceId:a,roomId:r});const j=(0,i.J)(),{restricted:y}=u(f);return y?(0,I.jsx)(A.Ay,{feature:"AlertDetailsViewRestricted",children:(0,I.jsx)(R.A,{})}):(0,I.jsx)(A.Ay,{feature:"AlertDetailsView",children:(0,I.jsxs)(o.Flex,{"data-testid":"alert-view-content",column:!0,padding:j?null:[0,0,10],background:j?"modalBackground":null,children:[!s&&j&&(0,I.jsx)(E,{children:(0,I.jsxs)(o.Flex,{column:!0,children:[(0,I.jsx)(o.H6,{color:"textLite",children:"ROOM"}),(0,I.jsx)(o.Text,{"data-testid":"alertView-mobile-roomName",children:c})]})}),(0,I.jsxs)(o.Flex,{column:!0,padding:[3],overflow:j?"auto":"visible",gap:3,children:[(0,I.jsx)(C,{alertId:t,context:x,status:b,name:m,nodeId:f,lastStatusChange:p,fullyLoaded:g,isWebview:s}),g?null:h?(0,I.jsx)(n.h4,{}):(0,I.jsx)(S,{}),g?(0,I.jsx)(_.A,{alertId:t,spaceId:a,roomId:r,flavour:"alertPage"}):null]}),j&&(0,I.jsx)(o.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"},children:(0,I.jsxs)(o.TextSmall,{children:["In order to ",(0,I.jsx)(o.TextSmall,{strong:!0,children:"Run Correlations"})," or"," ",(0,I.jsx)(o.TextSmall,{strong:!0,children:"View the Chart"})," you will have to visit this alert from its' dedicated page on a desktop device."]})})]})})}},11910(e,t,a){a.r(t),a.d(t,{default:()=>h});var o=a(44245),l=a(19075),n=a(88255),i=a(62718),d=a(96540),r=a(76667),s=a(43276);var c=a(87650),u=a(60959),g=a(74848);const h=()=>{const e=(()=>{const{alertId:e,...t}=(0,r.g)(),{search:a}=(0,r.zy)(),{transition:o}=s.A.parse(a),l=(0,d.useRef)(o||e),n=(0,r.Zp)();return(0,d.useEffect)(()=>{o&&o!==e&&n((0,r.tW)(`/spaces/:spaceSlug/rooms/:roomSlug/alerts/${o}`,t),{replace:!0})},[e,o]),l.current})(),{name:t="unknown alert",fullyLoaded:a=!1}=(0,l.JL)(e),h=(0,l.x)();return(0,o.ZB)({title:t,id:e,destination:e,params:location.hash,type:"alerts",isReady:a}),h?(0,g.jsx)(n.A,{overflow:{vertical:"auto"},margin:[0,0,8],padding:[3],children:h&&(0,g.jsx)(u.A,{children:(0,g.jsx)(c.A,{alertId:e})})}):(0,g.jsx)(i.xh,{})}},52007(e,t,a){a.d(t,{A:()=>s});var o=a(38429),l=a(96026),n=a(74891),i=a(94404),d=a(74848);const r=(0,i.A)((0,n.A)(o.Button)),s=e=>{let{alertId:t,nodeId:a,small:o=!1,isLoading:n,disabled:i,...s}=e;const{canEdit:c,goToEdit:u}=(0,l.q)({nodeIds:[a],alertId:t});return(0,d.jsx)(r,{small:o,label:"Edit alert",onClick:()=>u(a),flavour:"hollow",isLoading:n,disabled:n||!c||i,width:o?"112px":"150px","data-ga":"alert-modal::click-edit-congiguration::alerts-view",payload:{action:"Edit alert",alertId:t,nodeId:a},tooltip:c?null:"You cannot edit this alert.",...s})}}}]);