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/4211.0e03c63e4dd46fc989f3.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]="28a71b45-25f9-41e3-98e0-8c56acb5f207",e._sentryDebugIdIdentifier="sentry-dbid-28a71b45-25f9-41e3-98e0-8c56acb5f207")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"6373460e5f04bd73e55c202d3cf288663eaae34a"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4211],{24211:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var o=a(88934),l=a(87650),n=a(60959),r=a(74848);const d=e=>{let{spaceId:t,roomId:a,nodeName:d}=e;const{alertId:i}=(0,o.g)();return(0,r.jsx)(n.A,{children:(0,r.jsx)(l.A,{alertId:i,spaceId:t,roomId:a,nodeName:d,isWebview:!0})})}},52007:(e,t,a)=>{a.d(t,{A:()=>s});var o=a(92415),l=a(96026),n=a(74891),r=a(94404),d=a(74848);const i=(0,r.A)((0,n.A)(o.Button)),s=e=>{let{alertId:t,nodeId:a,small:o=!1,isLoading:n,disabled:r,...s}=e;const{canEdit:c,goToEdit:u}=(0,l.q)({nodeIds:[a],alertId:t});return(0,d.jsx)(i,{small:o,label:"Edit alert",onClick:()=>u(a),flavour:"hollow",isLoading:n,disabled:n||!c||r,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})}},60959:(e,t,a)=>{a.d(t,{A:()=>r});var o=a(92415),l=a(10444),n=a(74848);const r=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:()=>P});var o=a(92415),l=a(19075),n=a(62718),r=a(10444),d=a(19186),i=a(96540),s=a(88934),c=a(42790),u=a(24013),g=a(33185);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),m=a(1390),f=a(94404),x=a(74891),b=a(74848);const I=(0,f.A)((0,x.A)(o.Button)),y=e=>{let{disabled:t,nodeId:a,alertId:l,context:n,lastStatusChange:r,onClose:d,isLoading:g,small:f=!1,testid:x="alertDetailsModal"}=e;const y=(0,s.Zp)(),j=(0,u.Zl)(a),w=(0,i.useCallback)((()=>{d&&d(),y(j,l?{state:{alertId:l}}:{state:{contextToGo:n}})}),[j,l]),v=(0,c.rI)(),C=(0,i.useCallback)((()=>{const e=1e3*r,t=e-6e4;v((a=>({...a,highlight:{after:t,before:e},correlation:!0}))),w()}),[r,n,w,l]);return(0,b.jsx)(h,{justifyContent:"end",gap:2,children:(0,b.jsxs)(o.Flex,{gap:2,justifyContent:"end",children:[(0,b.jsx)(I,{small:f,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:a},tooltip:"Run correlations",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(I,{small:f,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:a},tooltip:"Go to chart",tooltipProps:{align:"bottom"},noWrapper:!0}),(0,b.jsx)(p.A,{alertId:l,nodeId:a,isLoading:g,small:f,"data-testid":`${x}-edit-alert-button`,icon:"pencilOutline",label:void 0,padding:[1,2],tooltip:"Edit alert configuration",tooltipProps:{align:"bottom"}}),(0,b.jsx)(m.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=a(75894);const v=e=>{let{alertId:t,context:a,name:l,nodeId:n,status:d,lastStatusChange:i,fullyLoaded:s,isWebview:c}=e;const u=(0,r.J)();return(0,b.jsxs)(o.Flex,{justifyContent:"between",children:[(0,b.jsxs)(o.Flex,{alignItems:"center",gap:2,children:[(0,b.jsx)(o.TextBig,{color:"manuItem",children:l}),(0,b.jsx)(w.A,{margin:u?null:[.5,0,0],flavour:d,"data-testid":"alertView-statusPill",children:d})]}),!c&&s&&!u&&(0,b.jsx)(j,{lastStatusChange:i,alertId:t,context:a,name:l,nodeId:n,small:!0,testid:"alertView"})]})};var C=a(92318),k=a(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,o.getSizeBy)(4)),L=()=>{const e=`${C.A.assetsBaseURL}/img/no-nodes-room.svg`;return(0,b.jsx)(k.DL,{children:(0,b.jsxs)(o.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)(o.H3,{children:"We couldn't find the alert"}),(0,b.jsx)(o.Text,{children:"This can be a temporary problem of that specific alert."}),(0,b.jsx)(T,{children:(0,b.jsx)(o.Button,{label:"Retry",icon:"reload"})})]})})};var S=a(81474),_=a(51262),B=a(12407);const E=e=>{let{children:t}=e;return(0,b.jsxs)(o.Flex,{background:"modalHeaderBackground",height:12,flex:!1,gap:4,padding:[0,2,0,4],alignItems:"center",children:[(0,b.jsx)(o.Icon,{name:"logo_s",color:"success",width:"23px"}),t]})},P=e=>{let{alertId:t,spaceId:a,roomId:i,isWebview:s}=e;const c=(0,d.XA)("name"),{isNodeRestricted:u}=(0,_.A)(),{fullyLoaded:g=!1,fullyLoading:h=!0,lastStatusChange:p,context:m,name:f,nodeId:x,status:I}=(0,l.JL)(t);(0,l.yk)(t,{spaceId:a,roomId:i});const y=(0,r.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)(o.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)(o.Flex,{column:!0,children:[(0,b.jsx)(o.H6,{color:"textLite",children:"ROOM"}),(0,b.jsx)(o.Text,{"data-testid":"alertView-mobile-roomName",children:c})]})}),(0,b.jsxs)(o.Flex,{column:!0,padding:[3],overflow:y?"auto":"visible",gap:3,children:[(0,b.jsx)(v,{alertId:t,context:m,status:I,name:f,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)(o.Box,{position:"sticky",padding:[4],background:"modalBackground",bottom:0,border:{side:"top",color:"border"},children:(0,b.jsxs)(o.TextSmall,{children:["In order to ",(0,b.jsx)(o.TextSmall,{strong:!0,children:"Run Correlations"})," or"," ",(0,b.jsx)(o.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,a)=>{a.d(t,{l:()=>g,q:()=>u});a(25509),a(65223),a(60321),a(41927),a(11632),a(64377),a(66771),a(12516),a(68931),a(52514),a(35694),a(52774),a(49536),a(21926),a(94483),a(16215);var o=a(96540),l=a(88934),n=a(42790),r=a(61841),d=a(24609),i=a(24013),s=a(19075),c=a(91421);const u=e=>{let{alertId:t,alertName:a,nodeIds:n=[]}=e;const d=(0,l.Zp)(),{setState:u}=(0,c.$h)(),[g]=(0,r.Ay)(),{name:h}=(0,s.JL)(t),p=a||h,{isParent:m}=(0,i.xY)(n[0]),{loaded:f,value:x,hasError:b,error:I}=(0,c.wd)({node:{value:n[0],isParent:m},path:"/health"}),y=!!x?.tree?.["/health/alerts/prototypes"]?.[`health:alert:prototype:${p}`],[,j]=(0,c.PJ)();return{canEdit:f&&!b&&y,goToEdit:(0,o.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,d]),error:I?.errorMessage||I}},g=()=>{const e=(0,l.Zp)(),{slug:t}=(0,d.ap)(),a=(0,n.rI)();return(0,o.useCallback)((o=>{o&&(a((e=>({...e,dyncfgSearchTerm:o}))),e(`/spaces/${t}/settings/configurations`,{replace:!0}))}),[e,a,t])}}}]);