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: //proc/self/root/opt/netdata/netdata-web-files/v3/4211.058e92c18c6ad2483b81.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]="ea486511-15e9-4d58-be81-5d53f4fccb8e",e._sentryDebugIdIdentifier="sentry-dbid-ea486511-15e9-4d58-be81-5d53f4fccb8e")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"211fba685705af0d3bd5f116a0eb09f7293a1656"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4211],{24211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var a=o(88934),l=o(87650),n=o(60959),d=o(74848);const r=e=>{let{spaceId:t,roomId:o,nodeName:r}=e;const{alertId:i}=(0,a.g)();return(0,d.jsx)(n.A,{children:(0,d.jsx)(l.A,{alertId:i,spaceId:t,roomId:o,nodeName:r,isWebview:!0})})}},52007:(e,t,o)=>{o.d(t,{A:()=>s});var a=o(63766),l=o(96026),n=o(74891),d=o(94404),r=o(74848);const i=(0,d.A)((0,n.A)(a.Button)),s=e=>{let{alertId:t,nodeId:o,small:a=!1,isLoading:n,disabled:d,...s}=e;const{canEdit:c,goToEdit:u}=(0,l.q)({nodeIds:[o],alertId:t});return(0,r.jsx)(i,{small:a,label:"Edit alert",onClick:()=>u(o),flavour:"hollow",isLoading:n,disabled:n||!c||d,width:a?"112px":"150px","data-ga":"alert-modal::click-edit-congiguration::alerts-view",payload:{action:"Edit alert",alertId:t,nodeId:o},tooltip:c?null:"You cannot edit this alert.",...s})}},60959:(e,t,o)=>{o.d(t,{A:()=>d});var a=o(63766),l=o(10444),n=o(74848);const d=e=>{let{children:t}=e;return(0,l.J)()?(0,n.jsx)(a.Layer,{full:!0,children:(0,n.jsx)(a.Flex,{width:"100%",background:"mainBackground","data-testid":"mobileContainer",children:t})}):t}},87650:(e,t,o)=>{o.d(t,{A:()=>P});var a=o(63766),l=o(19075),n=o(62718),d=o(10444),r=o(19186),i=o(96540),s=o(88934),c=o(42790),u=o(24013),g=o(33185);const h=(0,g.default)(a.Flex).attrs({alignItems:"center"}).withConfig({displayName:"styled__StyledButtonContainer",componentId:"sc-1glv09p-0"})(["position:sticky;bottom:0;"]);var p=o(52007),f=o(1390),m=o(94404),x=o(74891),b=o(74848);const I=(0,m.A)((0,x.A)(a.Button)),y=e=>{let{disabled:t,nodeId:o,alertId:l,context:n,lastStatusChange:d,onClose:r,isLoading:g,small:m=!1,testid:x="alertDetailsModal"}=e;const y=(0,s.Zp)(),j=(0,u.Zl)(o),w=(0,i.useCallback)((()=>{r&&r(),y(j,l?{state:{alertId:l}}:{state:{contextToGo:n}})}),[j,l]),v=(0,c.rI)(),C=(0,i.useCallback)((()=>{const e=1e3*d,t=e-6e4;v((o=>({...o,highlight:{after:t,before:e},correlation:!0}))),w()}),[d,n,w,l]);return(0,b.jsx)(h,{justifyContent:"end",gap:2,children:(0,b.jsxs)(a.Flex,{gap:2,justifyContent:"end",children:[(0,b.jsx)(I,{small:m,onClick:C,flavour:"hollow",isLoading:g,icon:"correlation_inv",padding:[1,2],"data-testid":`${x}-runCorrelations-button`,"data-ga":"alert-modal::click-run-correlations::alerts-view",payload:{action:"Run correlations",alertId:l,nodeId:o},tooltip:"Run correlations",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(I,{small:m,onClick:w,flavour:"hollow",isLoading:g,disabled:g||t,padding:[1,2],icon:"metrics","data-testid":`${x}-goToNode-button`,"data-ga":"alert-modal::click-goto-chart::alerts-view",payload:{action:"Go to chart",alertId:l,nodeId:o},tooltip:"Go to chart",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(p.A,{alertId:l,nodeId:o,isLoading:g,small:m,"data-testid":`${x}-edit-alert-button`,icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,b.jsx)(f.A,{"data-testid":`${x}-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})]})})},j=(0,i.memo)(y);var w=o(75894);const v=e=>{let{alertId:t,context:o,name:l,nodeId:n,status:r,lastStatusChange:i,fullyLoaded:s,isWebview:c}=e;const u=(0,d.J)();return(0,b.jsxs)(a.Flex,{justifyContent:"between",children:[(0,b.jsxs)(a.Flex,{alignItems:"center",gap:2,children:[(0,b.jsx)(a.TextBig,{color:"manuItem",children:l}),(0,b.jsx)(w.A,{margin:u?null:[.5,0,0],flavour:r,"data-testid":"alertView-statusPill",children:r})]}),!c&&s&&!u&&(0,b.jsx)(j,{lastStatusChange:i,alertId:t,context:o,name:l,nodeId:n,small:!0,testid:"alertView"})]})};var C=o(92318),k=o(60908);const A=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,a.getSizeBy)(4)),L=()=>{const e=`${C.A.assetsBaseURL}/img/no-nodes-room.svg`;return(0,b.jsx)(k.DL,{children:(0,b.jsxs)(a.Flex,{column:!0,alignItems:"center",justifyItems:"center",justifyContent:"center",height:"100%",width:"100%",padding:[0,0,"10%"],children:[(0,b.jsx)(A,{src:e,alt:"Unreachable alert",title:"Unreachable alert"}),(0,b.jsx)(a.H3,{children:"We couldn't find the alert"}),(0,b.jsx)(a.Text,{children:"This can be a temporary problem of that specific alert."}),(0,b.jsx)(T,{children:(0,b.jsx)(a.Button,{label:"Retry",icon:"reload"})})]})})};var S=o(81474),_=o(51262),B=o(12407);const E=e=>{let{children:t}=e;return(0,b.jsxs)(a.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center",children:[(0,b.jsx)(a.Icon,{name:"logo_s",color:"success",width:"23px"}),t]})},P=e=>{let{alertId:t,spaceId:o,roomId:i,isWebview:s}=e;const c=(0,r.XA)("name"),{isNodeRestricted:u}=(0,_.A)(),{fullyLoaded:g=!1,fullyLoading:h=!0,lastStatusChange:p,context:f,name:m,nodeId:x,status:I}=(0,l.JL)(t);(0,l.yk)(t,{spaceId:o,roomId:i});const y=(0,d.J)(),{restricted:j}=u(x);return j?(0,b.jsx)(k.Ay,{feature:"AlertDetailsViewRestricted",children:(0,b.jsx)(B.A,{})}):(0,b.jsx)(k.Ay,{feature:"AlertDetailsView",children:(0,b.jsxs)(a.Flex,{"data-testid":"alert-view-content",column:!0,padding:y?null:[0,0,10],background:y?"modalBackground":null,children:[!s&&y&&(0,b.jsx)(E,{children:(0,b.jsxs)(a.Flex,{column:!0,children:[(0,b.jsx)(a.H6,{color:"textLite",children:"ROOM"}),(0,b.jsx)(a.Text,{"data-testid":"alertView-mobile-roomName",children:c})]})}),(0,b.jsxs)(a.Flex,{column:!0,padding:[3],overflow:y?"auto":"visible",gap:3,children:[(0,b.jsx)(v,{alertId:t,context:f,status:I,name:m,nodeId:x,lastStatusChange:p,fullyLoaded:g,isWebview:s}),g?null:h?(0,b.jsx)(n.h4,{}):(0,b.jsx)(L,{}),g?(0,b.jsx)(S.A,{alertId:t,flavour:"alertPage"}):null]}),y&&(0,b.jsx)(a.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"},children:(0,b.jsxs)(a.TextSmall,{children:["In order to ",(0,b.jsx)(a.TextSmall,{strong:!0,children:"Run Correlations"})," or"," ",(0,b.jsx)(a.TextSmall,{strong:!0,children:"View the Chart"})," you will have to visit this alert from its' dedicated page on a desktop device."]})})]})})}},96026:(e,t,o)=>{o.d(t,{l:()=>g,q:()=>u});o(25509),o(65223),o(60321),o(41927),o(11632),o(64377),o(66771),o(12516),o(68931),o(52514),o(35694),o(52774),o(49536),o(21926),o(94483),o(16215);var a=o(96540),l=o(88934),n=o(42790),d=o(61841),r=o(24609),i=o(24013),s=o(19075),c=o(91421);const u=e=>{let{alertId:t,alertName:o,nodeIds:n=[]}=e;const r=(0,l.Zp)(),{setState:u}=(0,c.$h)(),[g]=(0,d.Ay)(),{name:h}=(0,s.JL)(t),p=o||h,{isParent:f}=(0,i.xY)(n[0]),{loaded:m,value:x,hasError:b,error:I}=(0,c.wd)({node:{value:n[0],isParent:f},path:"/health"}),y=!!x?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${p}`],[,j]=(0,c.PJ)();return{canEdit:m&&!b&&y,goToEdit:(0,a.useCallback)((e=>{n=e?Array.from(new Set([e,...n])):n,u({alertName:p,isAlert:!0}),j(!0,{nodeId:n[0]})}),[p,n,g,u,r]),error:I?.errorMessage||I}},g=()=>{const e=(0,l.Zp)(),{slug:t}=(0,r.ap)(),o=(0,n.rI)();return(0,a.useCallback)((a=>{a&&(o((e=>({...e,dyncfgSearchTerm:a}))),e(`/spaces/${t}/settings/configurations`,{replace:!0}))}),[e,o,t])}}}]);