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/share/netdata/web/v3/1910.28890bb2c4440433f473.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cad238fa-1c4d-40b8-8bee-157f299539b1",e._sentryDebugIdIdentifier="sentry-dbid-cad238fa-1c4d-40b8-8bee-157f299539b1")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"ee2d043bc44a2b746c3a7054e1b8df6e19f87980"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1910],{11910:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var o=a(44245),l=a(19075),n=a(88255),d=a(62718),i=a(96540),s=a(88934),r=a(86663);var c=a(87650),u=a(60959),g=a(74848);const p=()=>{const e=(()=>{const{alertId:e,...t}=(0,s.g)(),{search:a}=(0,s.zy)(),{transition:o}=r.parse(a),l=(0,i.useRef)(o||e),n=(0,s.Zp)();return(0,i.useEffect)((()=>{o&&o!==e&&n((0,s.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),p=(0,l.x)();return(0,o.ZB)({title:t,id:e,destination:e,params:location.hash,type:"alerts",isReady:a}),p?(0,g.jsx)(n.A,{overflow:{vertical:"auto"},margin:[0,0,8],padding:[3],children:p&&(0,g.jsx)(u.A,{children:(0,g.jsx)(c.A,{alertId:e})})}):(0,g.jsx)(d.xh,{})}},52007:(e,t,a)=>{a.d(t,{A:()=>r});var o=a(80689),l=a(96026),n=a(74891),d=a(94404),i=a(74848);const s=(0,d.A)((0,n.A)(o.Button)),r=e=>{let{alertId:t,nodeId:a,small:o=!1,isLoading:n,disabled:d,...r}=e;const{canEdit:c,goToEdit:u}=(0,l.q)({nodeIds:[a],alertId:t});return(0,i.jsx)(s,{small:o,label:"Edit alert",onClick:()=>u(a),flavour:"hollow",isLoading:n,disabled:n||!c||d,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.",...r})}},60959:(e,t,a)=>{a.d(t,{A:()=>d});var o=a(80689),l=a(10444),n=a(74848);const d=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(80689),l=a(19075),n=a(62718),d=a(10444),i=a(19186),s=a(96540),r=a(88934),c=a(42790),u=a(24013),g=a(33185);const p=(0,g.default)(o.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]);var h=a(52007),f=a(1390),x=a(74630),m=a(94404),b=a(74891),I=a(74848);const j=(0,m.A)((0,b.A)(o.Button)),y=e=>{let{disabled:t,nodeId:a,alertId:l,context:n,lastStatusChange:d,onClose:i,isLoading:g,small:m=!1,testid:b="alertDetailsModal"}=e;const y=(0,r.Zp)(),w=(0,u.Zl)(a),v=(0,s.useCallback)((()=>{i&&i(),y(w,l?{state:{alertId:l}}:{state:{contextToGo:n}})}),[w,l]),C=(0,c.rI)(),k=(0,s.useCallback)((()=>{const e=1e3*d,t=e-6e4;C((a=>({...a,highlight:{after:t,before:e},correlation:!0}))),v()}),[d,n,v,l]);return(0,I.jsx)(p,{justifyContent:"end",gap:2,children:(0,I.jsxs)(o.Flex,{gap:2,justifyContent:"end",children:[(0,I.jsx)(j,{small:m,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:m,onClick:v,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)(h.A,{alertId:l,nodeId:a,isLoading:g,small:m,"data-testid":`${b}-edit-alert-button`,icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,I.jsx)(f.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)(x.A,{alertId:l,small:m,testid:b,padding:[1,2]})]})})},w=(0,s.memo)(y);var v=a(75894);const C=e=>{let{alertId:t,context:a,name:l,nodeId:n,status:i,lastStatusChange:s,fullyLoaded:r,isWebview:c}=e;const u=(0,d.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)(v.A,{margin:u?null:[.5,0,0],flavour:i,"data-testid":"alertView-statusPill",children:i})]}),!c&&r&&!u&&(0,I.jsx)(w,{lastStatusChange:s,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:s,isWebview:r}=e;const c=(0,i.XA)("name"),{isNodeRestricted:u}=(0,B.A)(),{fullyLoaded:g=!1,fullyLoading:p=!0,lastStatusChange:h,context:f,name:x,nodeId:m,status:b}=(0,l.JL)(t);(0,l.yk)(t,{spaceId:a,roomId:s});const j=(0,d.J)(),{restricted:y}=u(m);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:[!r&&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:f,status:b,name:x,nodeId:m,lastStatusChange:h,fullyLoaded:g,isWebview:r}),g?null:p?(0,I.jsx)(n.h4,{}):(0,I.jsx)(S,{}),g?(0,I.jsx)(_.A,{alertId:t,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."]})})]})})}}}]);