1
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e00816fb-39a8-485a-9807-9d7f8e17de97",e._sentryDebugIdIdentifier="sentry-dbid-e00816fb-39a8-485a-9807-9d7f8e17de97")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3071],{39612:function(e,t,n){n(74916),n(15306);t.Z=function(e){return(e||"").replace(/[\s:()./]/g,"_")}},42448:function(e,t,n){n.d(t,{V:function(){return a}});var r={ErrNoChartExist:"ErrNoChartExist"},a=function(e){var t=!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)[e];return t}},84817:function(e,t,n){var r=n(87462),a=n(67294),o=n(65351),i=n(24631),c=n(3701),l=n(54576),s=n(33335),d=function(e){var t=(0,o.Z)("addToDashboardModal").handleOpenModal,n=(0,l.useChart)(),d=function(){var e=n.getAttribute("id");t("",{chartId:e})},m=(0,s.gI)("dashboard:Update");return(0,a.useLayoutEffect)((function(){return n.onKeyChange(["Alt","Shift","KeyD"],m?d:function(){})}),[m]),a.createElement(c.Button,(0,r.Z)({icon:a.createElement(c.default,{svg:i.Z,size:"16px"}),onClick:m?d:function(){},title:m?"Add to dashboard":"You need to be logged in to create your custom dashboards and use this chart in them","data-testid":"chartHeaderToolbox-addDashboard",disabled:!m},e))};t.Z=(0,a.memo)(d)},18039:function(e,t,n){n.d(t,{C:function(){return a},M:function(){return r}});n(92222);var r=function(e,t){return e.on("heightChanged",(function(e,n){if(e.getParent()===t){var r=e.getAttribute("id"),a=t.getAttribute("host"),o="chart_height.".concat(a,"/").concat(r);localStorage.setItem(o,n)}}))},a=function(e,t,n){var r=e.getAttribute("host"),a="chart_height.".concat(r,"/").concat(t);return localStorage.getItem(a)||"".concat(n,"px")}},72843:function(e,t,n){var r=n(87462),a=n(45987),o=n(67294),i=n(37195),c=n(64969),l=["onToggle","icon","isOpen","title"],s=function(e){var t=e.onToggle,n=e.icon,s=void 0===n?"node_hollow":n,d=e.isOpen,m=e.title,u=(0,a.Z)(e,l);return o.createElement(i.Z,(0,r.Z)({dataTestId:"collapsable-header",iconName:d?"arrow_w_line_right":"arrow_w_line_left",onClick:t,padding:[0,3]},u),d&&o.createElement(c.Flex,{gap:2,alignItems:"center","data-testid":"rightBar-nodeName"},o.createElement(c.Icon,{name:s,color:"text",size:"small"}),o.createElement(c.TextSmall,{strong:!0},m)))};t.Z=(0,o.memo)(s)},29814:function(e,t,n){var r=n(87462),a=n(45987),o=(n(21249),n(57640),n(9924),n(67294)),i=n(54316),c=n(64969),l=["onClickTab","availableTabs","tabsToShow"],s=function(e){var t=e.onClickTab,n=e.availableTabs,s=e.tabsToShow,d=(0,a.Z)(e,l);return o.createElement(c.Flex,(0,r.Z)({"data-testid":"collapsed-sidebar",margin:[4,0,0],justifyContent:"center"},d),o.createElement(c.Flex,{margin:[0,0,0,-1],column:!0},s.map((function(e,r){var a=n[e],c=a.iconName,l=a.label;return o.createElement(i._R,{containerStyles:{border:{size:"2px",type:"solid",color:"mainBackground",side:"left"}},textStyles:{color:"textLite"},key:c,onClick:function(){return t(r)},iconName:c,label:l})}))))};t.Z=(0,o.memo)(s)},38626:function(e,t,n){var r=n(45987),a=n(67294),o=n(64969),i=n(64637),c=n(82351),l=["maxLength","text","TextComponent"];t.Z=function(e){var t=e.maxLength,n=e.text,s=e.TextComponent,d=void 0===s?o.Text:s,m=(0,r.Z)(e,l),u=(0,a.useMemo)((function(){return(0,i.a)(n,t)}),[t,n]);return u.length===n.length?a.createElement(d,m,n):a.createElement(c.Z,{content:n,align:"bottom",isBasic:!0},a.createElement(d,m,u))}},43969:function(e,t,n){var r=n(67294),a=n(64969),o=n(91008),i=function(){return r.createElement(a.Flex,{padding:[6],round:1,width:"600px",background:"modalInfoBackground"},r.createElement(a.Box,{margin:[0,4,0,0]},r.createElement(a.Box,{as:a.Icon,width:10,height:10,name:"nodes_update"})),r.createElement(a.Flex,{column:!0,gap:2},r.createElement(a.Text,{strong:!0},"Couldn't find the chart you were looking for? "),r.createElement(a.Text,{color:"textDescription"},"Netdata has zero-configuration auto-detection for most applications and systems, this is achieved using collectors. If you miss some specific chart please check our"," ",r.createElement(o.Z,{href:"https://learn.netdata.cloud/docs/agent/collectors",target:"_blank","data-ga":"chart-area::click-link-collectors::charts-view"},"list of collectors")," ","to see if any additional step is needed.")))};t.Z=function(){return r.createElement(a.Flex,{column:!0,justifyContent:"center",alignItems:"center",alignSelf:"center",margin:[30,0,0]},r.createElement(a.Flex,{column:!0,justifyContent:"center",alignItems:"center",width:"300px",margin:[0,0,6]},r.createElement(a.H3,{margin:[0,0,4]},"No chart results to display"),r.createElement(a.Text,{color:"textDescription",textAlign:"center"},"Double-check your search or filters and dates and try again with different conditions.")),r.createElement(i,null))}},8144:function(e,t,n){var r=n(29439),a=n(67294),o=n(64969),i=n(95248),c=n(46667);t.Z=function(e){var t=e.margin,n=e.title,l=e.testIdPrefix,s=e.baseKey,d=e.extraKey,m=e.param,u=e.children,p=e.multi,g=void 0===p||p,h=e.defaultIsOpen,f=void 0===h||h,b=e.border,v=void 0===b?{side:"bottom",color:"borderSecondary"}:b,y=(0,i.I0)(m,{key:s,extraKey:d}),x=(0,r.Z)(y,2),E=x[0],w=x[1],k=(0,c.Z)(f||!(null===E||void 0===E||!E.length)),S=(0,r.Z)(k,2),Z=S[0],P=S[1];return a.createElement(o.Flex,{"data-testid":"".concat(l,"-filter"),column:!0,padding:[2,0],border:v,title:n},a.createElement(o.Flex,{justifyContent:"between",margin:Z?t:[0],gap:2,onClick:P,cursor:"pointer"},a.createElement(o.Flex,{alignItems:"center",gap:2,height:4.5},a.createElement(o.Flex,{gap:2},a.createElement(o.TextSmall,{strong:!0},n),g&&!(null===E||void 0===E||!E.length)&&a.createElement(o.Pill,{flavour:"neutral",hollow:!0,"data-testid":"".concat(l,"-selected-count")},null===E||void 0===E?void 0:E.length)),g&&!(null===E||void 0===E||!E.length)&&a.createElement(o.Button,{padding:[0],flavour:"borderless",onClick:function(e){e.stopPropagation(),w([])},"data-testid":"".concat(l,"-filter-resetAll"),label:"Reset",small:!0})),a.createElement(o.Icon,{name:"chevron_left",size:"small",color:"textLite",rotate:Z?1:3})),a.createElement(o.Collapsible,{open:Z},u))}},72911:function(e,t,n){var r=n(45987),a=n(67294),o=n(64969),i=["width","height","videoId"];t.Z=function(e){var t=e.width,n=void 0===t?443:t,c=e.height,l=void 0===c?249:c,s=e.videoId,d=(0,r.Z)(e,i);return a.createElement(o.Flex,d,a.createElement(o.Box,{className:"video-responsive"},a.createElement("iframe",{width:n,height:l,src:"https://www.youtube.com/embed/".concat(s),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})))}},32586:function(e,t,n){var r=n(87462),a=n(45987),o=n(67294),i=n(64969),c=["children","iconName","name","size","testId"];t.Z=function(e){var t=e.children,n=e.iconName,l=e.name,s=e.size,d=e.testId,m=void 0===d?"entry-line-text-container":d,u=(0,a.Z)(e,c),p="small"===s?i.TextSmall:i.Text,g="undefined"!==typeof t&&null!==t;return o.createElement(i.Flex,{alignItems:"start","data-testid":"entry-line"},n&&o.createElement(i.Flex,{"data-testid":"entry-line-icon-container",padding:[0,1,0,0]},o.createElement(i.Icon,{color:"textLite","data-testid":"entry-line-icon",name:n,width:"16px",height:"16px"})),o.createElement(i.Flex,(0,r.Z)({column:!0,alignItems:"start","data-testid":m,gap:.5},u),o.createElement(p,{"data-testid":"entry-line-text-label",whiteSpace:"nowrap",color:"textDescription"},l,g&&": "),g&&o.createElement(i.TextSmall,{color:"textDescription","data-testid":"entry-line-text-value",strong:!0},t)))}},76184:function(e,t,n){var r=n(87462),a=n(29439),o=n(45987),i=n(71893),c=n(67294),l=n(64969),s=n(46667),d=n(82351),m=["children","isEnabled","link","name","noDataLabel"],u=(0,i.default)(l.Icon).withConfig({displayName:"group__IconLink",componentId:"sc-1714aq9-0"})(["&:hover{fill:",";}"],(0,l.getColor)("textDescription")),p=function(e){return e.stopPropagation()},g=function(e){var t=e.children,n=e.isEnabled,r=e.link,a=e.onClick,o=e.open;return c.createElement(l.Flex,{alignItems:"center",justifyContent:"between",height:8,onClick:n?a:null,cursor:n?"pointer":"default"},c.createElement(l.Flex,{gap:2,alignItems:"center"},c.createElement(l.TextSmall,{strong:!0},t),r&&c.createElement(l.Flex,{as:"a",href:r,target:"_blank",onClick:p},c.createElement(u,{height:"13px",width:"13px",name:"documentation",size:"small",color:"placeholder"}))),n&&c.createElement(l.Icon,{name:"chevron_left",size:"small",color:"textLite",rotate:o?1:3}))},h=(0,i.default)(l.Flex).withConfig({displayName:"group__StyledFlex",componentId:"sc-1714aq9-1"})(["&:last-child{border:none;}"]);t.Z=function(e){var t=e.children,n=e.isEnabled,i=void 0===n||n,u=e.link,p=e.name,f=e.noDataLabel,b=(0,o.Z)(e,m),v=(0,s.Z)(!0),y=(0,a.Z)(v,2),x=y[0],E=y[1],w=i?null:f;return c.createElement(d.Z,{content:w,isBasic:!0},c.createElement(h,(0,r.Z)({column:!0,border:{side:"bottom",color:"borderSecondary"},padding:[1,0,x?2:1],isEnabled:i},b),c.createElement(g,{isEnabled:i,open:x,onClick:E,link:u},p),c.createElement(l.Collapsible,{column:!0,open:x,gap:1},t)))}},54316:function(e,t,n){n.d(t,{Dh:function(){return u},_R:function(){return p}});var r=n(45987),a=n(87462),o=(n(92222),n(71893)),i=n(67294),c=n(64969),l=n(37195),s=["children","collapsedComponent","isOpen","header"],d=(0,o.default)(c.TextSmall).withConfig({displayName:"rightBar__TextSmallWithEllipsis",componentId:"sc-shvr1r-0"})(["display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"]),m=(0,o.default)(c.Icon).withConfig({displayName:"rightBar__HeaderIcon",componentId:"sc-shvr1r-1"})(["flex:0 0 auto;"]),u=function(e){var t=e.onClose,n=e.node;return e.isOpen?i.createElement(l.Z,{onClick:t},i.createElement(c.Flex,{"data-testid":"dismisible-header",column:!0,gap:1},i.createElement(c.Flex,{gap:2,alignItems:"center","data-testid":"rightBar-nodeName"},i.createElement(m,{name:"node_hollow",color:"text",size:"small"}),i.createElement(d,{strong:!0},n.name)))):null},p=function(e){var t=e.iconName,n=e.label,r=e.onClick,o=e.containerStyles,l=e.textStyles;return i.createElement(c.Flex,(0,a.Z)({"data-testid":"sidebar-icon-item"},o,{column:!0,margin:[2,0],alignItems:"center"}),i.createElement(c.Flex,{"data-testid":"sidebar-icon-item-wrapper",margin:[0,0,.5,0],alignItems:"center",onClick:r,cursor:"pointer"},i.createElement(c.Icon,{name:t,color:"textLite",width:"18px",height:"18px"})),i.createElement(c.TextMicro,(0,a.Z)({color:"text"},l),n))},g=(0,o.default)(c.Flex).withConfig({displayName:"rightBar__Container",componentId:"sc-shvr1r-2"})(["transition:width 0.3s ease-out;",""],(function(e){var t=e.collapsedWidth,n=e.isOpen;return"\n flex-basis: ".concat(n?"300px":t,";\n overflow: hidden;\n @media screen and ").concat(c.breakpoints.desktop," {\n && {\n flex-basis: ").concat(n?"340px":t,";\n }\n }\n ")}));t.ZP=function(e){var t=e.children,n=e.collapsedComponent,o=e.isOpen,c=e.header,l=(0,r.Z)(e,s),d=!!n,m=d?12:"0px";return i.createElement(g,(0,a.Z)({column:!0,flex:!1,collapsedWidth:m,isOpen:o,height:"100%",margin:(d||o)&&[0,0,0,.5],border:d||o?{side:"left",color:"borderSecondary"}:void 0},l),c,o?t:n)}},37195:function(e,t,n){var r=n(87462),a=n(45987),o=n(67294),i=n(64969),c=["children","onClick","iconName","dataTestId"];t.Z=function(e){var t=e.children,n=e.onClick,l=e.iconName,s=void 0===l?"x":l,d=e.dataTestId,m=(0,a.Z)(e,c);return o.createElement(i.Flex,(0,r.Z)({"data-testid":d,height:12,alignItems:"center",justifyContent:"between",border:{side:"bottom",color:"borderSecondary"},padding:[0,2],flex:!1},m),t,o.createElement(i.Icon,{"data-testid":"rightBarHeader-icon",name:s,color:"textLite",onClick:n,cursor:"pointer"}))}},4781:function(e,t,n){n.r(t),n.d(t,{SettingsContainer:function(){return De},default:function(){return Le}});var r=n(29439),a=(n(66992),n(41539),n(88674),n(78783),n(33948),n(92222),n(67294)),o=n(2145),i=n(89250),c=n(3975),l=n(4474),s=n(37518),d=n(37497),m=n(41379),u=n(60464),p=n(39904),g=n(74059),h=n(23383),f=n(29983),b=n(29516),v=n(78266),y=n(46189),x=n(87462),E=n(45987),w=(n(21249),n(57640),n(9924),n(64969)),k=n(4942),S=(n(47941),n(82526),n(57327),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070),n(44536)),Z=n(54227),P=n(12008),_=n(77796),I=n(95248),F=n(99322);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,k.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=function(e){var t=e.error,n=e.testPrefix,r=e.onClick,a=e.type,o=e.value,i={critical:{default:"error",disabled:"disabledError"},warning:{default:"warning",disabled:"disabledWarning"}};return O(O({"data-testid":n?"".concat(n,"-").concat(i[a].default):i[a].default,flavour:t||!o?i[a].disabled:i[a].default},r&&{onClick:r}),{},{text:t?"-":"".concat(o)})},L=["critical","warning","error","testPrefix"],N=["id","testPrefix"],A=function(e){var t=e.critical,n=e.warning,r=e.error,o=e.testPrefix,i=(0,E.Z)(e,L),c=D({error:r,testPrefix:o,type:"critical",value:t}),l=D({error:r,testPrefix:o,type:"warning",value:n});return a.createElement(w.Flex,(0,x.Z)({margin:[0,0,0,2]},i),a.createElement(w.MasterCard,{"data-testid":"alertsMastercard",pillLeft:c,pillRight:l}))},B=function(e){var t=e.id,n=e.testPrefix,r=(0,E.Z)(e,N),o=(0,_.ev)(t),i=(0,P.n_)(o),c=i.critical,l=i.warning;return a.createElement(A,(0,x.Z)({"data-testid":"alerts",testPrefix:n,critical:c,warning:l},r))},T=function(e){var t=e.critical,n=e.warning,r=e.error;return a.createElement(B,{critical:t,"data-testid":"tabAlerts",error:r,testPrefix:"tabAlerts-alert",warning:n})},q=function(e){var t=e.nodeId,n=(0,_.ev)(t),r=(0,P.n_)(n),o=r.critical,i=r.warning;return a.createElement(T,{critical:o,warning:i})},W=function(){var e=(0,I.H7)(),t=(0,_.rw)(e),n=(0,F.uy)("error"),r=(0,P.n_)(t),o=r.critical,i=r.warning;return a.createElement(T,{critical:o,warning:i,error:n})},j={warning:"warning",critical:"error"},M=function(e){var t=e.alertId,n=(0,P.E5)(t,"status");return j[n]?a.createElement(w.Flex,{alignSelf:"center",margin:[0,0,0,2],round:1,background:j[n],width:2,height:2}):null};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){(0,k.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=n(81488),Q=function(){var e=(0,F.uy)("error"),t=(0,F.uy)("updatedAt");return a.createElement(z.Z,{error:e,updatedAt:t,text:"All your active alerts"})},V=n(33335),G=function(){var e,t,n=(0,s.A3)(),r=(0,V.gI)("dashboard:ReadAll"),o=function(e){return(0,a.useMemo)((function(){return{home:{title:"Home",icon:"room_home",path:"".concat(e,"/home"),dataGa:"view-picker::click-view-home::global-view",testId:"viewPicker-home",tooltip:"A dashboard metrics from all your nodes"},overview:{title:"Overview",icon:"room_overview",path:"".concat(e,"/overview"),dataGa:"view-picker::click-view-overview::global-view",testId:"viewPicker-overview",tooltip:"A dashboard with charts and metrics from all your nodes"},nodes:{title:"Nodes",icon:"nodes_hollow",path:"".concat(e,"/nodes"),dataGa:"view-picker::click-view-nodes::global-view",testId:"viewPicker-nodes",tooltip:"An index of your nodes with alert status and key metrics"},k8s:{title:"Kubernetes",icon:"serviceKubernetes",path:"".concat(e,"/kubernetes"),dataGa:"view-picker::click-view-kubernetes::global-view",testId:"viewPicker-kubernetes",tooltip:"k8s"},dashboards:{title:"Dashboards",icon:"dashboard",path:"".concat(e,"/dashboards"),dataGa:"view-picker::click-view-dashboard::global-view",testId:"viewPicker-customDashboards",tooltip:"Customize dashboards according to your needs"},alerts:{title:"Alerts",icon:"alarm",path:"".concat(e,"/alerts"),dataGa:"view-picker::click-view-alerts::global-view",testId:"viewPicker-alerts",tooltip:a.createElement(Q,null),children:a.createElement(W,null)},ar:{title:"Anomalies",icon:"anomaliesLens",path:"".concat(e,"/anomalies"),dataGa:"view-picker::click-view-anomalies::global-view",testId:"viewPicker-anomalies",tooltip:"Anomaly Advisor - ML powered anomaly detection"},fn:{title:"Functions",icon:"functions",path:"".concat(e,"/functions"),dataGa:"view-picker::click-view-functions::global-overview",testId:"viewPicker-functions",tooltip:"Functions to run on your nodes"},events:{title:"Events",icon:"feed",path:"".concat(e,"/events"),dataGa:"view-picker::click-view-feed::mn-overview",testId:"viewPicker-feed",tooltip:"Feed & events"}}}),[e])}(n),i=(0,g.Q6)();return[(0,a.useMemo)((function(){return[!i&&o.home,o.overview,o.nodes,o.k8s,r&&o.dashboards,o.alerts,o.ar,o.fn,o.events].filter(Boolean)}),[n,i]),(e=n,t=!i,(0,a.useMemo)((function(){var n;return n={},(0,k.Z)(n,"".concat(e,"/overview"),!0),(0,k.Z)(n,"".concat(e,"/home"),t),(0,k.Z)(n,"".concat(e,"/nodes"),!0),(0,k.Z)(n,"".concat(e,"/dashboards"),!0),(0,k.Z)(n,"".concat(e,"/alerts"),!0),(0,k.Z)(n,"".concat(e,"/anomalies"),!0),(0,k.Z)(n,"".concat(e,"/functions"),!0),n}),[e,t]))]},K=n(64637),Y=n(62200),U=n(82351),X=["to","params","exact","icon","title","fixed","dataGa","testId","children","type","tooltip","showBorderLeft"],J=function(e){return e?"text":"textDescription"},$=function(e){var t=e.to,n=e.params,r=e.exact,o=e.icon,c=e.title,l=e.fixed,s=e.dataGa,d=e.testId,m=e.children,u=e.type,p=e.tooltip,g=e.showBorderLeft,h=(0,E.Z)(e,X),f=(0,i.bS)({end:r,path:t}),b=(0,i.s0)(),v=!!f,y="nodes"!==u||v,k=(0,a.useCallback)((function(){if(!v){var e="".concat(t).concat(n?"/".concat(n):"");b(e)}}),[t,v,n]),S=(0,a.useMemo)((function(){return(0,K.a)(c,Y.sf)}),[c]);return a.createElement(w.NavigationTab,(0,x.Z)({fixed:l,active:v,showBorderLeft:g,icon:a.createElement(w.Icon,{name:o,size:"small"}),key:c,onActivate:k,"data-ga":s,"data-testid":d,"aria-selected":v,tooltip:p||c},h),p||S!==c?a.createElement(U.Z,{content:p||c,align:p?"bottom":"top",isBasic:!0},a.createElement(w.TextSmall,{alignSelf:"center",color:J(v),whiteSpace:"nowrap"},S)):a.createElement(w.TextSmall,{alignSelf:"center",color:J(v),whiteSpace:"nowrap"},c),y&&m)},ee=["icon","title","path"],te=function(){var e=G(),t=(0,r.Z)(e,2),n=t[0],o=function(e){var t=(0,i.s0)(),n=(0,i.bS)("/spaces/:spaceSlug/rooms/:roomSlug/:type/*"),r=(0,Z.ZS)(),o=(0,Z.Yy)(),c=(0,Z.CN)(),l=n?n.pathnameBase:"/spaces",s=(0,i.TH)().pathname,d=(0,S.Z)(e[s]&&s),m=(0,a.useCallback)((function(e){return t(e)}),[]),u=(0,a.useCallback)((function(e,n){if(!n)return o(e);var a=r[e-1],i=r[e+1],c=function(n,r){var a="".concat(n).concat(r?"/".concat(r):"");t(a),o(e)};return d?c(d):a?c(a.path,a.params):i?c(i.path,i.params):c(l)}),[r,o,l,d]);return[(0,a.useMemo)((function(){return r.map((function(e){return H(H({},e),{},{onClick:m,children:e.id&&"nodes"===e.type?a.createElement(q,{nodeId:e.id}):"alerts"===e.type?a.createElement(M,{alertId:e.id}):null})}))}),[r,m]),function(e){var t=e.destination,n=e.source;t&&n&&c({sourceIndex:n.index,destinationIndex:t.index})},u]}(t[1]),c=(0,r.Z)(o,3),l=c[0],s=c[1],d=c[2];return a.createElement(w.NavigationTabs,null,n.map((function(e){var t=e.icon,n=e.title,r=e.path,o=(0,E.Z)(e,ee);return a.createElement($,(0,x.Z)({exact:!0,fixed:!0,to:r,icon:t,title:n,key:n},o))})),a.createElement(w.TabSeparator,null),a.createElement(w.DraggableTabs,{onDragEnd:s,onTabClose:d},l.map((function(e,t){var n=e.id,r=e.icon,o=e.title,i=e.params,c=e.path,l=e.type,s=e.children;return a.createElement($,{showBorderLeft:0===t,exact:!0,to:c,params:i,icon:r,title:o,key:o,type:l,id:n,"data-testid":"navigation-dynamicTab-".concat(o)},s)}))))},ne=n(67915),re=n(4571),ae=n(30569),oe=n(77901),ie=n(72869),ce=n(92501),le=n(69063),se=function(){return(0,le.Z)(),null},de=n(15418),me=n(78710),ue=n(6308),pe=(0,o.Z)((function(){return Promise.all([n.e(7514),n.e(8663),n.e(6654)]).then(n.bind(n,66654))}),"ManageSpaceRoute"),ge=(0,o.Z)((function(){return Promise.resolve().then(n.bind(n,98469))}),"JoinSpace"),he=(0,o.Z)((function(){return n.e(6610).then(n.bind(n,6610))}),"NoSpaceAccess"),fe=(0,o.Z)((function(){return n.e(9201).then(n.bind(n,69201))}),"AlertView"),be=(0,o.Z)((function(){return n.e(7359).then(n.bind(n,57359))}),"Anomalies"),ve=(0,o.Z)((function(){return n.e(5451).then(n.bind(n,25451))}),"AlertsSmartboard"),ye=(0,o.Z)((function(){return n.e(3564).then(n.bind(n,43564))}),"DashboardsOverview"),xe=(0,o.Z)((function(){return n.e(4193).then(n.bind(n,4193))}),"DashboardView"),Ee=(0,o.Z)((function(){return Promise.all([n.e(7514),n.e(3018),n.e(4324)]).then(n.bind(n,34324))}),"FunctionsView"),we=(0,o.Z)((function(){return Promise.all([n.e(6502),n.e(8663),n.e(6129)]).then(n.bind(n,66129))})),ke=y.Z.demoSlug,Se=y.Z.demoDefaultRoomViews,Ze=y.Z.defaultRoomView,Pe=y.Z.integrationsView,_e=function(){var e=(0,c.ZP)(),t=(0,r.Z)(e,2),n=t[0],o=t[1],l=ke===n?Se[o]||Se.default:me.ZP&&n===me.Xh&&o===me.Fb?me.vT:Ze;return a.createElement(i.Fg,{replace:!0,to:"/spaces/".concat(n,"/rooms/").concat(o,"/").concat(l)})},Ie=(0,ae.Z)((0,oe.Z)(re.Z)),Fe=(0,oe.Z)(re.Z),Ce=function(){var e=(0,i.s0)(),t=(0,c.ZP)(),n=(0,r.Z)(t,2),o=n[0],l=n[1],h=(0,ue.Z)(),f=h.isEmptySpace,b=h.loading,y=(0,g.th)(),x=(0,s.UL)();return(0,d.Z)(y,x),(0,m.Z)({spaceId:y,id:x,pollingInterval:63e3}),(0,u.Z)(y,x),(0,p.Z)(y,x),(0,a.useEffect)((function(){!me.ZP&&f&&e("/spaces/".concat(o,"/rooms/").concat(l,"/").concat(Pe),{replace:!0})}),[me.ZP,f]),!x||b?a.createElement(v.Z,{title:"Loading room..."}):a.createElement(a.Suspense,{fallback:a.createElement(v.Z,{title:"Loading..."})},a.createElement(i.Z5,null,a.createElement(i.AW,{path:"nodes/:nodeId",element:a.createElement(Ie,null)}),a.createElement(i.AW,{path:"nodes",element:a.createElement(ne.Z,null)}),a.createElement(i.AW,{path:"home",element:a.createElement(ie.Z,null)}),a.createElement(i.AW,{path:"overview",element:a.createElement(Fe,null)}),a.createElement(i.AW,{path:"alerts/:alertId",element:a.createElement(fe,null)}),a.createElement(i.AW,{path:"alerts",element:a.createElement(ve,null)}),a.createElement(i.AW,{path:"alarms/:alertId",element:a.createElement(fe,null)}),a.createElement(i.AW,{path:"alarms",element:a.createElement(ve,null)}),a.createElement(i.AW,{path:"dashboards/:dashboardSlug",element:a.createElement(xe,null)}),a.createElement(i.AW,{path:"dashboards",element:a.createElement(ye,null)}),a.createElement(i.AW,{path:"anomalies",element:a.createElement(be,null)}),a.createElement(i.AW,{path:"kubernetes",element:a.createElement(Fe,{flavour:"k8s"})}),a.createElement(i.AW,{path:"/functions",element:a.createElement(Ee,{key:"fn",flavour:"fn"})}),a.createElement(i.AW,{path:"/events",element:a.createElement(Ee,{key:"feed",flavour:"feed"})}),a.createElement(i.AW,{path:"/",element:a.createElement(_e,null)})))},Oe=(0,ce.Pf)((function(){var e=(0,ue.c)().isIntegrationsPath;return a.createElement(de.Z,{permission:"room:Read"},(function(t){return t?a.createElement(a.Fragment,null,!e&&a.createElement(te,null),a.createElement(a.Suspense,{fallback:a.createElement(v.Z,{title:"Loading your space..."})},a.createElement(i.Z5,null,a.createElement(i.AW,{path:"spaces/:spaceSlug/join-space",element:a.createElement(ge,null)}),a.createElement(i.AW,{path:"spaces/:spaceSlug/no-rooms",element:a.createElement(he,{reason:"noRooms"})}),a.createElement(i.AW,{path:"spaces/:spaceSlug/rooms/:roomSlug/".concat(Pe),element:a.createElement(we,null)}),a.createElement(i.AW,{path:"spaces/:spaceSlug/rooms/:roomSlug/*",element:a.createElement(Ce,null)})))):a.createElement(he,{reason:"noRoomPermission"})}))})),De=function(){return(0,c.vq)(),a.createElement(pe,null)},Le=(0,ce.Pf)((function(){var e=(0,g.th)();return(0,h.Z)(e),(0,f.Z)(e),(0,b.Z)(e),(0,l.ZP)(),a.createElement(de.Z,{permission:"space:Read"},(function(t){return t?a.createElement(a.Fragment,null,a.createElement(i.Z5,null,a.createElement(i.AW,{path:"/*",element:a.createElement(se,null)})),a.createElement(a.Suspense,{fallback:a.createElement(v.Z,{title:"Loading your space..."})},a.createElement(i.Z5,null,a.createElement(i.AW,{path:"spaces/:spaceSlug/settings/*",element:a.createElement(De,null)}),a.createElement(i.AW,{path:"*",element:a.createElement(Oe,null)})))):a.createElement(he,{key:e,reason:"noSpacePermission"})}))}))},18339:function(e,t,n){n.d(t,{D:function(){return i}});var r=n(4942);n(85827),n(41539),n(47941),n(82526),n(57327),n(88449),n(2490),n(59849),n(38880),n(15581),n(34514),n(54747),n(49337),n(33321),n(69070);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=[{name:"MySQL",title:"MySQL",iconName:"serviceMySQL",logoFilename:"mysql.svg",category:"Databases",collectors:["python.d.plugin:mysql","go.d.plugin:mysql"],contexts:["mysql.queries","mysql.net","mysql.connections"],priority:1},{name:"MariaDB",title:"MariaDB",iconName:"serviceMariaDB",logoFilename:"mariadb.svg",category:"Databases",collectors:["python.d.plugin:mysql","go.d.plugin:mysql"],contexts:["mysql.queries","mysql.net","mysql.connections"],priority:2},{name:"Oracle Database",title:"Oracle Database",iconName:"osOracle",logoFilename:"oracle.svg",category:"Databases",collectors:["python.d.plugin:oracledb"],contexts:["oracledb.session_count","oracledb.physical_disk_read_writes","oracledb.tablespace_usage_in_percent"],priority:3},{name:"PostgreSQL",title:"PostgreSQL",iconName:"servicePostgreSQL",logoFilename:"postgresql.svg",category:"Databases",collectors:["python.d.plugin:postgres"],contexts:["postgres.checkpointer","postgres.archive_wal","postgres.db_size"],priority:4},{name:"MongoDB",title:"MongoDB",iconName:"serviceMongoDB",logoFilename:"mongodb.svg",category:"Databases",collectors:["python.d.plugin:mongodb"],contexts:["mongodb.active_clients","mongodb.read_operations","mongodb.write_operations"],priority:5},{name:"ElasticSearch",title:"ElasticSearch",iconName:"serviceElasticSearch",logoFilename:"elasticsearch.svg",category:"Databases",collectors:["python.d.plugin:elasticsearch"],contexts:["elastic.search_performance_total","elastic.index_performance_total","elastic.index_segments_memory"],priority:6},{name:"CouchDB",title:"CouchDB",iconName:"serviceCouchDB",logoFilename:"couchdb.svg",category:"Databases",collectors:["python.d.plugin:couchdb"],contexts:["couchdb.activity","couchdb.response_codes"],priority:7},{name:"Proxy SQL",title:"Proxy SQL",iconName:"serviceProxySQL",logoFilename:"proxysql.svg",category:"Databases",collectors:["python.d.plugin:proxysql"],contexts:["proxysql.questions","proxysql.pool_status","proxysql.pool_overall_net"],priority:8},{name:"Redis",title:"Redis",iconName:"serviceRedis",logoFilename:"redis.svg",category:"Databases",collectors:["python.d.plugin:redis"],contexts:["redis.operations","redis.net","redis.connections"],priority:9},{name:"MemCached",title:"MemCached",iconName:"serviceMemCached",logoFilename:"memcached.svg",category:"Databases",collectors:["python.d.plugin:memcached"],contexts:["memcached.cache","memcached.net","memcached.connections"],priority:10},{name:"RethinkDB",title:"RethinkDB",iconName:"serviceRethinkDB",logoFilename:"rethinkdb.svg",category:"Databases",collectors:["python.d.plugin:rethinkdbs"],contexts:["rethinkdb.cluster_queries","rethinkdb.cluster_clients_active","rethinkdb.cluster_connected_servers"],priority:11},{name:"Solr",title:"Solr",iconName:"serviceSolr",logoFilename:"solr.svg",category:"Databases",collectors:["go.d.plugin:solr"],contexts:["solr.search_requests","solr.update_requests"],priority:12},{name:"RabbitMQ",title:"RabbitMQ",iconName:"serviceRabbitMQ",logoFilename:"rabbitmq.svg",category:"Messaging",collectors:["python.d.plugin:rabbitmq","go.d.plugin:rabbitmq"],contexts:["rabbitmq.queued_messages","rabbitmq.erlang_run_queue"],priority:1},{name:"Beanstalkd",title:"Beanstalkd",iconName:"serviceBeanstalk",logoFilename:"beanstalkd.svg",category:"Messaging",collectors:["python.d.plugin:beanstalk"],contexts:["beanstalk.total_jobs_rate","beanstalk.connections_rate","beanstalk.current_tubes"],priority:2},{name:"Apache",title:"Apache",iconName:"serviceApache",logoFilename:"apache.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:apache","go.d.plugin:apache"],contexts:["apache.requests","apache.connections","apache.net"],priority:1},{name:"nginx",title:"nginx",iconName:"serviceNginx",logoFilename:"nginx.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:nginx","go.d.plugin:nginx"],contexts:["nginx.requests","nginx.connections"],priority:2},{name:"nginx+",title:"nginx+",iconName:"serviceNginxPlus",logoFilename:"nginx-plus.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:nginx_plus"],contexts:["nginx_plus.requests_total","nginx_plus.connections_statistics"],priority:3},{name:"lighthttpd",title:"lighthttpd",iconName:"serviceLighthttpd",logoFilename:"lighthttpd.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:lighttpd","go.d.plugin:lighttp"],contexts:["lighttpd.requests","lighttpd.net"],priority:4},{name:"lighthttpd2",title:"lighthttpd2",iconName:"serviceLighthttpd2",logoFilename:"lighthttpd.svg",category:"Web, Proxies, LBs, Streaming",collectors:["go.d.plugin:lighttpd2"],contexts:["lighttpd2.requests","lighttpd2.traffic"],priority:5},{name:"LiteSpeed",title:"LiteSpeed",iconName:"serviceLiteSpeed",logoFilename:"litespeed.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:litespeed"],contexts:["litespeed.requests","litespeed.requests_processing"],priority:6},{name:"Tomcat",title:"Tomcat",iconName:"serviceApacheTomcat",logoFilename:"tomcat.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:tomcat"],contexts:["tomcat.accesses","tomcat.processing_time","tomcat.bandwidth"],priority:7},{name:"PHP FPM",title:"PHP FPM",iconName:"servicePhpFpm",logoFilename:"php-fpm.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:phpfm"],contexts:["phpfpm.performance","phpfpm.requests","phpfpm.connections"],priority:8},{name:"HAproxy",title:"HAproxy",iconName:"serviceHAProxy",logoFilename:"haproxy.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:haproxy"],contexts:["haproxy_f.scur","haproxy_f.bin","haproxy_f.bout"],priority:9},{name:"Squid",title:"Squid",iconName:"serviceSquid",logoFilename:"squid.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:squid"],contexts:["squid.clients_requests","squid.clients_net"],priority:10},{name:"Traefik",title:"Traefik",iconName:"serviceTraefik",logoFilename:"traefik.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:traefik"],contexts:["traefik.response_codes"],priority:11},{name:"Varnish",title:"Varnish",iconName:"serviceVarnish",logoFilename:"varnish.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:varnish"],contexts:["varnish.session_connection","varnish.client_requests"],priority:12},{name:"IPVS",title:"IPVS",iconName:"serviceIPVS",logoFilename:"load-balancer.svg",category:"Web, Proxies, LBs, Streaming",collectors:["proc.plugin:/proc/net/ip_vs_stats"],contexts:["ipvs.sockets","ipvs.packets","ipvs.net"],priority:13},{name:"Web Log",title:"Web Log",iconName:"serviceWebLog",logoFilename:"log-file.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:web_log","go.d.plugin:web_log"],contexts:["web_log.response_codes","web_log.bandwidth"],priority:14},{name:"IPFS",title:"IPFS",iconName:"serviceIPFS",logoFilename:"ipfs.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:ipfs"],contexts:["ipfs.bandwidth","ipfs.peers"],priority:15},{name:"IceCast Media Streaming",title:"IceCast Media Streaming",iconName:"serviceIceCast",logoFilename:"icecast.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:icecast"],contexts:["icecast.listeners"],priority:16},{name:"RetroShare",title:"RetroShare",iconName:"serviceRetroShare",logoFilename:"retroshare.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:retroshare"],contexts:["retroshare.bandwidth","retroshare.peers"],priority:17},{name:"HTTP Check",title:"HTTP Check",iconName:"serviceHTTPCheck",logoFilename:"server-connection.svg",category:"Web, Proxies, LBs, Streaming",collectors:["python.d.plugin:httpcheck","go.d.plugin:httpcheck"],contexts:["httpcheck.responsetime","httpcheck.status"],priority:18},{name:"x509 Check",title:"x509 Check",iconName:"serviceX509Check",logoFilename:"data-encryption.svg",category:"Web, Proxies, LBs, Streaming",collectors:["go.d.plugin:x509check"],contexts:["x509check.time_until_expiration"],priority:19}].reduce((function(e,t){return o(o({},e),{},(0,r.Z)({},t.name,t))}),{})}}]);
|