summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/6347.a7c6af21385d9781517b.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/6347.a7c6af21385d9781517b.chunk.js')
-rw-r--r--web/gui/v2/6347.a7c6af21385d9781517b.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/6347.a7c6af21385d9781517b.chunk.js b/web/gui/v2/6347.a7c6af21385d9781517b.chunk.js
new file mode 100644
index 000000000..9394b7939
--- /dev/null
+++ b/web/gui/v2/6347.a7c6af21385d9781517b.chunk.js
@@ -0,0 +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]="0ee47411-b16b-41cb-9480-a79bdc92b327",e._sentryDebugIdIdentifier="sentry-dbid-0ee47411-b16b-41cb-9480-a79bdc92b327")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"0c0a7a41a0e7ecb4870dbce38dbd7d5e0913bb7f"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6347],{66347:function(e,t,n){n.r(t),n.d(t,{default:function(){return We}});var a=n(67294),r=n(4822),o=n(93433),i=(n(85827),n(41539),n(25387),n(2490),n(72608),n(92222),n(97945)),l=function(e,t){return t?e[t]:e},c=n(36560),s=n(96929),d=n(59978),u=n(87854),m=n.n(u),h=n(95348),f=n.n(h),p=new(m())({id:"notCapableNodes",use:"notCapableNodes-usage",viewBox:"0 0 231 230",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 231 230" id="notCapableNodes"><path fill="#EDF2F6" d="M115.5 226c61.304 0 111-49.696 111-111S176.804 4 115.5 4 4.5 53.696 4.5 115s49.696 111 111 111Z" /><path fill="#E2E6EC" d="M212.149 115A96.65 96.65 0 1 1 39.894 54.809l3.303-4.038A96.649 96.649 0 0 1 212.149 115Z" /><mask id="notCapableNodes_a" width="206" height="194" x="6" y="18" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#E2E6EC" d="M211.798 114.743a96.657 96.657 0 0 1-40.698 78.821 96.659 96.659 0 0 1-87.833 12.432C68.697 200.905 26.108 203.209 15.5 192c-10.608-11.209.28-35.172-4-50-4.281-14.828-6.001-31.361-3-46.5 3.001-15.139-.614-35.927 9-48H40c13.017-14.675 33.037-22.027 52.086-26.708a96.648 96.648 0 0 1 119.712 93.951Z" /></mask><g mask="url(#notCapableNodes_a)"><g clip-path="url(#notCapableNodes_b)"><path fill="#45535C" d="M217.255 50H19.142a2.641 2.641 0 0 0-2.642 2.642v134.716A2.642 2.642 0 0 0 19.142 190h198.113a2.641 2.641 0 0 0 2.641-2.642V52.642A2.641 2.641 0 0 0 217.255 50Z" /><path fill="#546C82" d="M19.142 50h198.113a2.644 2.644 0 0 1 2.641 2.642v3.962H16.5v-3.962A2.641 2.641 0 0 1 19.142 50Z" /><path fill="#0F0" d="M21.123 55.283a1.981 1.981 0 1 0 0-3.962 1.981 1.981 0 0 0 0 3.962Z" opacity=".5" /><path fill="#FF0" d="M27.726 55.283a1.981 1.981 0 1 0 0-3.962 1.981 1.981 0 0 0 0 3.962Z" opacity=".5" /><path fill="red" d="M34.33 55.283a1.981 1.981 0 1 0 0-3.962 1.981 1.981 0 0 0 0 3.962Z" opacity=".5" /><path stroke="#fff" stroke-miterlimit="10" stroke-width="2" d="m34.33 88.962 6.604-6.603-6.604-6.604M44.236 88.302h11.887" /></g><path fill="#7698B0" d="M145.373 81.99a2.327 2.327 0 1 0-4.655 0v19.551a2.328 2.328 0 1 0 4.655 0V81.989Z" /><path fill="#6D8CA3" d="M145.373 83.386h7.821a2.421 2.421 0 0 1 2.421 2.42v11.918a2.42 2.42 0 0 1-2.421 2.421h-7.821v-16.76Z" /><path fill="#658196" d="M155.615 88.972h2.979a2.608 2.608 0 0 1 2.607 2.607v.373a2.607 2.607 0 0 1-2.607 2.607h-2.979v-5.587Z" /><path fill="#7698B0" d="M219.897 143.904v1.862h-36.35a9.31 9.31 0 0 1-9.311-9.31v-36.311c0-4.097-2.7-7.449-6.052-7.449h-6.982v-1.862h6.982c4.376 0 7.914 4.19 7.914 9.311v36.311a7.446 7.446 0 0 0 7.449 7.448h36.35Z" /><path fill="#80A4BF" d="M124.89 85.248h-9.31a1.862 1.862 0 1 0 0 3.724h9.31a1.862 1.862 0 1 0 0-3.724ZM124.89 94.558h-9.31a1.862 1.862 0 1 0 0 3.725h9.31a1.862 1.862 0 1 0 0-3.725Z" /><path fill="#6D8CA3" d="M127.777 81.524h12.941v20.483h-12.941a3.818 3.818 0 0 1-3.818-3.818V85.341a3.814 3.814 0 0 1 2.357-3.527c.463-.192.959-.29 1.461-.29Z" /><path fill="#19B357" d="M106.269 107.127a2.327 2.327 0 0 0-4.655 0v19.553a2.327 2.327 0 0 0 4.655 0v-19.553Z" /><path fill="#00AB44" d="M106.269 108.524h7.821a2.421 2.421 0 0 1 2.421 2.421v11.917a2.421 2.421 0 0 1-2.421 2.421h-7.821v-16.759Z" /><path fill="#00993D" d="M116.511 114.11h2.979a2.607 2.607 0 0 1 2.607 2.607v.373a2.607 2.607 0 0 1-2.607 2.607h-2.979v-5.587Z" /><path fill="#00AB44" d="M219.896 132.732c-.016.624 0 1.136 0 1.862h-75.454a9.312 9.312 0 0 1-9.311-9.311c0-4.097-2.7-7.448-6.051-7.448h-6.983v-1.862h6.983c4.376 0 7.914 4.189 7.914 9.31a7.447 7.447 0 0 0 7.448 7.449h75.454Z" /><path fill="#00CB51" d="M85.786 110.386h-9.31a1.862 1.862 0 0 0 0 3.724h9.31a1.862 1.862 0 1 0 0-3.724ZM85.786 119.697h-9.31a1.862 1.862 0 1 0 0 3.724h9.31a1.862 1.862 0 0 0 0-3.724Z" /><path fill="#00AB44" d="M88.672 106.662h12.942v20.483H88.672a3.817 3.817 0 0 1-3.817-3.817v-12.849a3.818 3.818 0 0 1 3.817-3.817Z" /><path fill="#7698B0" d="M124.89 149.025a2.327 2.327 0 1 0-4.655 0v19.552a2.328 2.328 0 0 0 4.655 0v-19.552Z" /><path fill="#6D8CA3" d="M124.89 150.421h7.821a2.421 2.421 0 0 1 2.421 2.421v11.824a2.421 2.421 0 0 1-2.421 2.421h-7.821v-16.666Z" /><path fill="#658196" d="M135.131 156.008h2.98a2.606 2.606 0 0 1 2.607 2.607v.372a2.608 2.608 0 0 1-2.607 2.607h-2.98v-5.586Z" /><path fill="#7698B0" d="M219.896 122.49h-56.833a7.446 7.446 0 0 0-7.448 7.448v20.483c0 5.121-3.538 9.311-7.914 9.311h-6.983v-1.862h6.983c3.352 0 6.052-3.352 6.052-7.449v-20.483a9.31 9.31 0 0 1 9.31-9.31h56.833v1.862Z" /><path fill="#80A4BF" d="M104.407 152.284h-9.31a1.862 1.862 0 1 0 0 3.724h9.31a1.862 1.862 0 0 0 0-3.724ZM104.407 161.594h-9.31a1.862 1.862 0 0 0 0 3.724h9.31a1.862 1.862 0 1 0 0-3.724Z" /><path fill="#6D8CA3" d="M107.293 148.559h12.942v20.484h-12.942a3.818 3.818 0 0 1-3.817-3.818v-12.848a3.818 3.818 0 0 1 3.817-3.818Z" /></g><defs><clipPath id="notCapableNodes_b"><path fill="#fff" d="M16.5 50h203.396v140H16.5z" /></clipPath></defs></symbol>'}),g=(f().add(p),p),L=function(){return a.createElement(d.Flex,{width:"100%",justifyContent:"center",alignItems:"center",gap:3},a.createElement("svg",{viewBox:g.viewBox,height:"222px"},a.createElement("use",{xlinkHref:"#".concat(g.id)})),a.createElement(d.TextBig,{strong:!0},"Your nodes are either offline or not configured for ML"))},v=n(91008),y=function(){return a.createElement(d.Flex,{height:10.5,width:{min:10.5},background:"warningText",justifyContent:"center",alignItems:"center",round:"50%",sx:{borderRadius:"50%"}},a.createElement(d.Icon,{color:"warningBackground",name:"informationPress"}))},Z=function(e){var t=e.to,n=e.children;return a.createElement(v.Z,{Component:d.Text,href:t,target:"_blank",rel:"noopener noreferrer"},n)},b=function(){return a.createElement(d.Flex,{column:!0,gap:1},a.createElement(d.Text,{strong:!0,color:"textDescription"},"Not Configured Nodes"),a.createElement(d.Text,{color:"textDescription"},"Learn how to configure your nodes"," ",a.createElement(Z,{to:"https://learn.netdata.cloud/docs/cloud/insights/anomaly-advisor#enable-ml-on-netdata-agent"},"to support anomaly advisor"),"."))},E=function(){return a.createElement(d.Flex,{column:!0,gap:1},a.createElement(d.Text,{strong:!0,color:"textDescription"},"Not Capable Nodes"),a.createElement(d.Text,{color:"textDescription"},"All nodes need to be updated to a version higher than"," ",a.createElement(d.Text,{strong:!0,color:"textDescription"},"1.32"),". Learn how to"," ",a.createElement(Z,{to:"https://learn.netdata.cloud/docs/agent/packaging/installer/update"},"update to the latest Netdata version"),"."))},M=function(){return a.createElement(d.Box,{round:!0,background:"elementBackground",padding:[4]},a.createElement(d.Flex,{gap:4,alignItems:"start"},a.createElement(y,null),a.createElement(d.Flex,{gap:4,column:!0},a.createElement(b,null),a.createElement(E,null))))},w=function(){return a.createElement(d.Flex,{column:!0,width:"100%",height:"100%",justifyContent:"start",padding:[8,4]},a.createElement(d.Flex,{column:!0,gap:8},a.createElement(L,null),a.createElement(M,null)))},x=n(87462),k=n(29439),C=n(88553),A=n(91268),O=n(37518),D=n(89479),I=n(74059),j=n(74662),S=n(25517),T=n(71181),_=n(39612),N=(n(82526),n(57327),n(88449),n(59849),n(38880),n(49337),n(33321),n(69070),n(4942)),H=(n(47941),n(15581),n(34514),n(54747),n(66992),n(70189),n(78783),n(88921),n(96248),n(13599),n(11477),n(64362),n(15389),n(90401),n(45164),n(91238),n(54837),n(87485),n(56767),n(76651),n(61437),n(35285),n(39865),n(33948),n(21249),n(57640),n(9924),n(89692)),P=n(45987),B=n(2077),F=n(89405),V=n(78122),R=function(e){return Math.floor(e/1e3)},G=function(){var e=(0,S.$B)(),t=(0,k.Z)(e,2),n=t[0],r=t[1],o=(0,F.rA)().localeTimeString,i=(0,a.useMemo)((function(){var e=R(n),t=R(r);return[(0,V.getDateDiff)(e,t),o(n,{secs:!0}),o(r,{secs:!0})]}),[n,r]),l=(0,k.Z)(i,3),c=l[0],s=l[1],u=l[2];return n&&r?a.createElement(d.Flex,{gap:1,alignItems:"baseline"},a.createElement(d.TextMicro,{strong:!0,color:"textLite"},a.createElement(d.TextSmall,{strong:!0,color:"textLite"},s," \u2192 ",u," \u2022")," ","Duration: ",c)):null},U=n(71893),z=(0,U.keyframes)(["from{transform:translate(412px,0);}"]),K=U.default.g.withConfig({displayName:"skeleton__Animated",componentId:"sc-gwkfye-0"})(["animation:",";"],(function(e){return e.animate?(0,U.css)([""," 1s linear infinite"],z):""})),Y=function(e){var t=e.animate,n=void 0!==t&&t;return a.createElement("svg",{width:"1140",height:"80",viewBox:"0 0 1140 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("mask",{id:"mask0_467_73096",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"1140",height:"80"},a.createElement("rect",{width:"1140",height:"80",fill:"#C4C4C4"})),a.createElement("g",{mask:"url(#mask0_467_73096)"},a.createElement(K,{animate:n},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-374 70L-401 78H-192.5H14H25.5H212L180 70L157 55L144 70L105 11L69.5 70H41L17.8524 76.8586L-8 73L-39 38L-62 71L-85.5 61.5L-100.5 73L-114.5 61.5L-146 41L-168 70L-192.5 78L-235 70L-258 55L-271 70L-310 11L-327.75 40.5L-345.5 70H-374Z",fill:"#8F9EAA"}),a.createElement("path",{d:"M-401 78L-401.142 77.5206L-401 78.5V78ZM-374 70V69.5H-374.073L-374.142 69.5206L-374 70ZM212 78V78.5L212.121 77.5149L212 78ZM180 70L179.727 70.4188L179.797 70.4647L179.879 70.4851L180 70ZM157 55L157.273 54.5812L156.908 54.3429L156.622 54.6725L157 55ZM144 70L143.583 70.2757L143.946 70.8254L144.378 70.3275L144 70ZM105 11L105.417 10.7243L104.98 10.0632L104.572 10.7422L105 11ZM69.5 70V70.5H69.7827L69.9284 70.2578L69.5 70ZM41 70V69.5H40.9275L40.8579 69.5206L41 70ZM17.8524 76.8586L17.7785 77.3531L17.8882 77.3694L17.9944 77.338L17.8524 76.8586ZM-8 73L-8.3743 73.3315L-8.25369 73.4677L-8.07382 73.4945L-8 73ZM-39 38L-38.6257 37.6685L-39.0469 37.1929L-39.4102 37.7141L-39 38ZM-62 71L-62.1874 71.4636L-61.8178 71.613L-61.5898 71.2859L-62 71ZM-85.5 61.5L-85.3126 61.0365L-85.5775 60.9294L-85.8042 61.1032L-85.5 61.5ZM-100.5 73L-100.817 73.3864L-100.511 73.6383L-100.196 73.3968L-100.5 73ZM-114.5 61.5L-114.183 61.1137L-114.204 61.0961L-114.227 61.0809L-114.5 61.5ZM-146 41L-145.727 40.5809L-146.117 40.3272L-146.398 40.6978L-146 41ZM-168 70L-167.845 70.4753L-167.696 70.4268L-167.602 70.3022L-168 70ZM-235 70L-235.273 70.4188L-235.19 70.473L-235.092 70.4914L-235 70ZM-258 55L-257.727 54.5812L-258.092 54.3429L-258.378 54.6725L-258 55ZM-271 70L-271.417 70.2757L-271.054 70.8254L-270.622 70.3275L-271 70ZM-310 11L-309.583 10.7243L-310.02 10.0632L-310.428 10.7422L-310 11ZM-345.5 70V70.5H-345.217L-345.072 70.2578L-345.5 70ZM-400.858 78.4794L-373.858 70.4794L-374.142 69.5206L-401.142 77.5206L-400.858 78.4794ZM-192.5 77.5H-401V78.5H-192.5V77.5ZM14 77.5H-192.5V78.5H14V77.5ZM14 78.5H25.5V77.5H14V78.5ZM25.5 78.5H212V77.5H25.5V78.5ZM212.121 77.5149L180.121 69.5149L179.879 70.4851L211.879 78.4851L212.121 77.5149ZM180.273 69.5812L157.273 54.5812L156.727 55.4188L179.727 70.4188L180.273 69.5812ZM156.622 54.6725L143.622 69.6725L144.378 70.3275L157.378 55.3275L156.622 54.6725ZM144.417 69.7243L105.417 10.7243L104.583 11.2757L143.583 70.2757L144.417 69.7243ZM104.572 10.7422L69.0716 69.7422L69.9284 70.2578L105.428 11.2578L104.572 10.7422ZM69.5 69.5H41V70.5H69.5V69.5ZM40.8579 69.5206L17.7103 76.3792L17.9944 77.338L41.1421 70.4794L40.8579 69.5206ZM-8.07382 73.4945L17.7785 77.3531L17.9262 76.364L-7.92618 72.5055L-8.07382 73.4945ZM-39.3743 38.3315L-8.3743 73.3315L-7.6257 72.6685L-38.6257 37.6685L-39.3743 38.3315ZM-61.5898 71.2859L-38.5898 38.2859L-39.4102 37.7141L-62.4102 70.7141L-61.5898 71.2859ZM-85.6874 61.9636L-62.1874 71.4636L-61.8126 70.5364L-85.3126 61.0365L-85.6874 61.9636ZM-100.196 73.3968L-85.1958 61.8968L-85.8042 61.1032L-100.804 72.6032L-100.196 73.3968ZM-114.817 61.8864L-100.817 73.3864L-100.183 72.6136L-114.183 61.1137L-114.817 61.8864ZM-146.273 41.4191L-114.773 61.9191L-114.227 61.0809L-145.727 40.5809L-146.273 41.4191ZM-167.602 70.3022L-145.602 41.3022L-146.398 40.6978L-168.398 69.6978L-167.602 70.3022ZM-192.345 78.4753L-167.845 70.4753L-168.155 69.5247L-192.655 77.5247L-192.345 78.4753ZM-235.092 70.4914L-192.592 78.4914L-192.408 77.5086L-234.908 69.5086L-235.092 70.4914ZM-258.273 55.4188L-235.273 70.4188L-234.727 69.5812L-257.727 54.5812L-258.273 55.4188ZM-270.622 70.3275L-257.622 55.3275L-258.378 54.6725L-271.378 69.6725L-270.622 70.3275ZM-310.417 11.2757L-271.417 70.2757L-270.583 69.7243L-309.583 10.7243L-310.417 11.2757ZM-327.322 40.7578L-309.572 11.2578L-310.428 10.7422L-328.178 40.2422L-327.322 40.7578ZM-345.072 70.2578L-327.322 40.7578L-328.178 40.2422L-345.928 69.7422L-345.072 70.2578ZM-374 70.5H-345.5V69.5H-374V70.5Z",fill:"#CFD5DA"})),a.createElement("mask",{id:"mask1_467_73096",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"52",y:"0",width:"1140",height:"80"},a.createElement("rect",{x:"52",width:"1140",height:"80",fill:"#C4C4C4"})),a.createElement("g",{mask:"url(#mask1_467_73096)"},a.createElement("rect",{x:"55.5",y:"-1.5",width:"1140",height:"80",fill:"#CFD5DA",fillOpacity:"0.25",stroke:"#8F9EAA",strokeDasharray:"2 5"}),a.createElement("rect",{x:"55",width:"86",height:"3",fill:"#CFD5DA"}))))},$=(n(88674),n(17727),new(m())({id:"error-state",use:"error-state-usage",viewBox:"0 0 199 79",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 199 79" id="error-state"><path fill="#8F9EAA" fill-rule="evenodd" d="m91.008 47.745 2.142 1.506.575-.819-2.438-1.713-.287.409-.298-.401L51.319 76.01 25.983 77.76H0v1h26.017l.017-.002 25.5-1.76.147-.01.117-.087 39.21-29.156Zm7.017 4.932 4.875 3.427.575-.818-4.875-3.427-.575.818Zm9.75 6.854 4.875 3.427.575-.818-4.875-3.427-.575.818Zm9.75 6.854 4.875 3.426.575-.818-4.875-3.427-.575.819Zm25.62.71-.199-.061-.182.098-3.25 1.742.472.882 3.067-1.645 2.679.812.29-.957-2.877-.872Zm8.336 3.57 2.874.871 2.874.871.29-.957-2.874-.871-2.874-.871-.29.957Zm-21.245 4.318 3.25-1.742-.472-.882-2.979 1.597-2.185-1.536-.575.818 2.437 1.713.253.178.271-.146Zm32.742-.834 2.877.872.043.013.044.005 2.667.31.115-.993-2.622-.305-2.834-.859-.29.957Zm10.964 1.82 5.334.619.115-.993-5.333-.62-.116.993Zm10.667 1.239 5.333.619.116-.993-5.334-.62-.115.993Zm10.667 1.239 2.666.31.116-.994-2.667-.31-.115.993Z" clip-rule="evenodd" /><mask id="error-state_a" width="93" height="79" x="53" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#C4C4C4" d="M53 0h93v79H53z" /></mask><g fill="#CFD5DA" mask="url(#error-state_a)"><path fill-opacity=".25" stroke="#8F9EAA" stroke-dasharray="2 5" d="M56.5-1.5h85v82h-85z" /><path d="M56 0h86v3H56z" /></g></symbol>'})),q=(f().add($),$),Q=n(87267),X=n(63346),J=function(){return a.createElement("svg",{viewBox:q.viewBox,width:"197"},a.createElement("use",{xlinkHref:"#".concat(q.id)}))},W=(0,U.default)(d.Button).withConfig({displayName:"errorView__RetryButton",componentId:"sc-1n9qb8k-0"})(["white-space:normal !important;align-items:flex-start !important;width:230px !important;font-size:12px !important;font-weight:normal !important;& > *{align-items:start !important;margin:0 !important;padding:0 !important;}"]),ee=function(e){var t=e.onRetry,n=(0,Q.Z)(),r=n.sendLog,o=n.isReady,i=(0,a.useCallback)((function(){r({feature:"AnomalyAdvisor",description:"Retry"}).finally((function(){"function"==typeof t&&t()}))}),[o]);return a.createElement(X.Ht,{feature:"AnomalyAdvisor"},a.createElement(d.Flex,{column:!0,alignItems:"center",width:"100%"},a.createElement(J,null),a.createElement(d.TextSmall,{margin:[1,0,0],color:"textDescription"},"Something went wrong."),a.createElement(W,{margin:[2,0,0],padding:[0],onClick:i,icon:"reload",flavour:"borderless",label:"Retry fetching anomalies for the same timeframe",height:"initial",width:"initial"})))},te=["error","loading","hasData","onRetry","totalDimensionsCount"];function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,N.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=function(e){var t=e.error,n=e.loading,r=e.hasData;return t?a.createElement(d.TextSmall,null,"No data"===t?"No data for this period. Try highlighting an other area.":t.errorMessage||"Something went wrong"):n?a.createElement(d.TextSmall,null,"Searching for anomalies..."):r?a.createElement(d.TextSmall,{color:"sectionDescription"},"Anomalous metrics in the selected timeframe sorted from most anomalous to least."):a.createElement(d.TextSmall,null,"You haven't highlighted any timeframe yet.")},oe=(0,a.forwardRef)((function(e,t){var n=e.error,r=e.loading,o=e.hasData,i=e.onRetry,l=e.totalDimensionsCount,c=(0,P.Z)(e,te);return a.createElement(d.Flex,(0,x.Z)({ref:t,column:!0,gap:2,padding:[4],background:"sideBar"},c),a.createElement(d.Flex,{gap:1,alignItems:"baseline"},a.createElement(d.H4,{color:"sectionTitle"},l?"".concat(l," "):"","Anomalous metrics"),a.createElement(G,null)),a.createElement(re,{hasData:o,loading:r,error:n}),n?a.createElement(ee,{onRetry:i}):a.createElement(Y,{animate:r}))})),ie=(0,a.forwardRef)((function(e,t){var n=(0,r.TA)({extraKey:"anomalies"}),o=(0,B.$g)({nodeIds:n,flavour:"anomaly"}),i=o.loaded,l=o.loading,c=o.error,s=o.totalDimensionsCount,d=(0,Q.Z)(),u=d.sendLog,m=d.isReady,h=(0,a.useRef)();return(0,a.useEffect)((function(){null!==h&&void 0!==h&&h.current||!m||!i||(u(ae(ae(ae({feature:"AnomalyAdvisor"},!c&&i?{isSuccess:!0}:{}),c?{isFailue:!0}:{}),i?{totalDimensionsCount:s}:{})),h.current=!0)}),[l,i,c,u,m]),a.createElement(oe,(0,x.Z)({ref:t,loading:l,error:c,hasData:i,totalDimensionsCount:s},e))}));function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){(0,N.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se={"anomaly_detection.anomaly_rate":{name:"Anomaly Rate",info:"This is the percentage of metrics that are anomalous."},"anomaly_detection.dimensions":{name:"Count of Anomalous Metrics",info:"Variance in the amount of anomalous metrics over time could indicate unexpected behavior that merits investigation."},"anomaly_detection.detector_events":{name:"Anomaly Events Detected ",info:"An anomaly event is a period of time when a node has persistently elevated anomaly rates across all metrics. This may indicate unexpected behavior that merits investigation."}},de={"Anomaly advisor":{showAR:!1,name:"Anomaly advisor",info:a.createElement(d.Flex,{column:!0,gap:2},a.createElement(d.TextSmall,{color:"sectionDescription"},"Machine Learning powered automated anomaly detection running at the edge."),a.createElement(d.TextSmall,{color:"sectionDescription"},"Use this page as a starting point to explore potential anomalies. Learn more on"," ",a.createElement(v.Z,{Component:d.TextSmall,href:"https://learn.netdata.cloud/docs/cloud/insights/anomaly-advisor",target:"_blank",rel:"noopener noreferrer"},"how to")," ","use Anomaly Advisor."),a.createElement(d.Flex,{gap:1,alignItems:"center"},a.createElement(d.Icon,{name:"highlightArea",color:"sectionDescription",size:"small"}),a.createElement(d.TextSmall,{color:"sectionDescription"},"Highlight a time-frame of interest to explore potential anomalies.")))},"Anomalous metrics":{info:a.createElement(ie,null)}},ue=Object.keys(se),me=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.os,r=n.extraKey,i={},l=function(e,t){var n={},a={},r={};return ue.forEach((function(e,n){t[e]={chartId:e,id:"Anomaly advisor",subMenuId:e,priority:-(n+1)}})),e.forEach((function(e,n){t[e]={chartId:e,id:"Anomalous metrics",subMenuId:e,priority:n+1}})),[].concat(ue,(0,o.Z)(e)).forEach((function(e){var o=t[e],i="".concat(o.id,"|").concat(o.subMenuId);a[i]||(a[i]=[]),n[o.id]||(n[o.id]=new Set),r[o.id]||(r[o.id]=[]),o.chartId&&(a[i].push(o.chartId),r[o.id].push(o.chartId)),i&&n[o.id].add(i)})),{chartMenus:t,menuGroups:n,subMenus:a,menuGroupChartIds:r}}(e,i),c=l.menuGroups,s=l.subMenus,d=l.menuGroupChartIds,u={},m=Object.keys(c).reduce((function(e,t){var n=d[t],a=(0,o.Z)(c[t]),l=i[n[0]];return e[t]=ce(ce(ce({},l),de[t]),{},{level:0,id:t,subMenuIds:a,subMenuChartIds:n,link:"".concat((0,_.Z)("menu_".concat(t))),size:24,forceVisibility:!0,arFlavour:"anomaly",extraKey:r}),e}),{}),h=Object.keys(s).reduce((function(e,t){var n=s[t];if(!n.length)return e;var a=i[n[0]],o=m[a.id].id,l=a.chartId.split("::"),c=(0,k.Z)(l,2),d=c[0],u=c[1],h=se[a.chartId];return e[t]=ce(ce(ce({},a),{},{name:u?"".concat(d," > ").concat(u):d},h),{},{level:1,id:t,menuGroupId:o,chartIds:n,link:"".concat((0,_.Z)("menu_".concat(a.id,"_submenu_").concat(a.subMenuId))),size:24,forceVisibility:!0,arFlavour:"anomaly",showAR:!h,extraKey:r}),e}),{}),f=Object.keys(c),p={},g=f.reduce((function(e,t){var n=m[t];return p[n.id]=!0,[].concat((0,o.Z)(e),[ce(ce({},n),{},{sticky:!0})],(0,o.Z)(m[t].subMenuIds.reduce((function(e,n){var r=h[n];return[].concat((0,o.Z)(e),[ce(ce({},r),{},{sticky:!0})],(0,o.Z)(h[n].chartIds.map((function(e){var r=i[e];if(r)return u[e]=(0,H.ZP)(ce(ce({},r),{},{id:e,context:e}),{menuId:t,subMenuId:n,sectionInfo:h[n].info},{os:a}),ce(ce({},u[e]),{},{level:2,size:365,menuKey:m[t].id,forceVisibility:!0})}))))}),[])))}),[]);return i=null,{stickyIds:p,allElements:g,menuGroupIds:f,menuGroupById:m,subMenuById:h,menuItemAttributesById:u}},he=n(15394),fe=n(53499),pe=n(22962),ge=n(61152),Le=n(69743),ve=n(56102),ye=n(11835),Ze=["id"],be=function(e){var t=e.id,n=(0,P.Z)(e,Ze);return a.createElement(Le.d,(0,x.Z)({id:t},n),a.createElement(ve.Y,{id:t}),a.createElement(ye.f,{id:t}))},Ee=(0,a.memo)(be),Me=(n(26699),n(32023),n(71824)),we=n(9058),xe=n(16978),ke=(n(69826),n(31672),n(59461),n(74916),n(4723),n(24298)),Ce=n(96415),Ae=n(70873),Oe=n(43460),De=n(84817),Ie=n(18039),je=function(e,t){return e&&e.getRoot().getChildren().find((function(e){return e.match({id:"anomalies-".concat(t)})}))},Se=function(e){return function(t){return"overview-page::".concat(e.getAttribute("id"),"::").concat(t)}},Te=["id"],_e=["height"];function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){(0,N.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=function(e){var t=e.id,n=(0,P.Z)(e,Te),r=(0,O.UL)(),o=(0,Me.nI)(t),i=o.height,l=void 0===i?0:i,c=(0,P.Z)(o,_e),s=(0,we.e)(),d=(0,Q.Z)(),u=d.sendLog,m=d.isReady,h=(0,a.useMemo)((function(){var e=je(s,r),n=Object.keys(se),a=e.getNode({id:t});if(a)return a;var o=t.split("::"),i=(0,k.Z)(o,2),d=i[0],u=i[1];return a=s.makeChart({attributes:He({contextScope:[d],height:(0,Ie.C)(e,t,l+260),id:t,roomId:r,selectedDimensions:u?[u]:[],groupBy:n.includes(t)?["node"]:["dimension"]},c),makeTrack:Se}),e.appendChild(a),a}),[s,r,t]);return(0,a.useEffect)((function(){h&&m&&"function"===typeof u&&h.updateAttribute("logOptions",{sendLog:u,payload:{feature:"AnomalyAdvisor"}})}),[h,u,m]),a.createElement(xe.Z,(0,x.Z)({margin:[0,0,2],chart:h,"data-chartid":t,"data-track":h.track("container")},n))},Be=a.memo(Pe,(function(e,t){return e.id===t.id})),Fe=["id","subMenuId"],Ve=function(e){var t=e.id,n=e.subMenuId,r=(0,P.Z)(e,Fe);return a.createElement(Be,(0,x.Z)({id:t,role:"graphics-object","aria-roledescription":"chart","data-submenuid":n},r))},Re=(0,a.memo)(Ve),Ge=n(14048),Ue=n(12664),ze=n(83367),Ke=function(e){var t=e.id;return a.createElement(Ge.D,{gap:0,id:t},a.createElement(Ue.o,{id:t,margin:[1,0,0]}),a.createElement(ze.X,{id:t}))},Ye=(0,a.memo)(Ke),$e=function(e){switch(e.level){case 0:return Ee;case 1:return Ye;case 2:return Re;default:return null}},qe=["onChartNameChange","initialChartName","dashboardOptions","linkToGo","contextToGo"],Qe=function(e){var t=e.onChartNameChange,n=e.initialChartName,r=e.dashboardOptions,o=e.linkToGo,i=e.contextToGo,l=(0,P.Z)(e,qe),c=(0,ge.Z)("addToDashboardModal"),s=(0,k.Z)(c,4),d=s[0],u=s[3],m=(0,he.Z)({onChartNameChange:t,initialChartName:n,linkToGo:o,contextToGo:i}),h=m.setActiveMenuGroupId,f=m.setActiveSubMenuId;return a.createElement(j.v,l,a.createElement(fe.Z,{onActiveMenuGroupId:h,onActiveSubMenuId:f,getComponent:$e,dashboardOptions:r,initialChartName:n,checkVisibility:function(){return!0}}),d&&a.createElement(pe.Z,{onClose:u}))},Xe=["alerts","info","config"],Je=function(e){var t=e.nodeIds,n=(0,I.th)(),o=(0,O.UL)(),i=(0,S.ZP)(n,o,t),l=(0,k.Z)(i,6),c=l[0],s=l[1],d=l[2],u=l[4],m=l[5],h=!s.length||!!u,f=(0,D.MS)(o,d),p=(0,C.Z)(),g=(0,k.Z)(p,2),L=g[0],v=g[1].width,y=(0,C.Z)(),Z=(0,k.Z)(y,2),b=Z[0],E=Z[1].height,M=(0,a.useMemo)((function(){return Math.ceil((E+32)/4)}),[E]);!function(e,t,n){var r=n.width,o=n.host;if(!o)throw"No host provided";var i=(0,we.e)();(0,a.useMemo)((function(){if(i&&e){var n=je(i,e);if(!n)return n=i.makeContainer({attributes:{id:"anomalies-".concat(e),roomId:e,host:o,overlays:{proceeded:{type:"proceeded"}},nodesScope:t,width:r,toolboxElements:[Oe.default,Ce.default,Ae.default,De.Z]}}),i.appendChild(n),(0,ke.unregister)((0,Ie.M)(i,n))}}),[i,o,e,t]),(0,a.useEffect)((function(){if(i&&e){var n=je(i,e);n&&n.getNodes().forEach((function(e){e.updateAttribute("nodesScope",t),e.getAttribute("active")&&"chart"===e.type&&e.trigger("fetch")}))}}),[i,e,t]),(0,a.useEffect)((function(){return function(){if(i&&e){var t=je(i,e);t&&t.destroy()}}}),[e])}(o,t,{host:(0,I.Q6)()?"".concat(window.envSettings.agentApiUrl,"/api/v2"):"".concat(window.envSettings.apiUrl,"/api/v3/spaces/").concat(n,"/rooms/").concat(o),width:v});var w=(0,r.I0)("chartName",{key:o,extraKey:"anomalies",flavour:"val"}),N=(0,k.Z)(w,2),H=N[0],P=N[1],B=(0,a.useState)(!1),F=(0,k.Z)(B,2),V=F[0],R=F[1];return(0,a.useEffect)((function(){R(!!s.length)}),[s.length]),a.createElement(j.Z,{getObject:f,ids:c,getMenu:me,extraKey:"anomalies"},a.createElement(A.Z,{ref:L,position:"relative",sidebar:a.createElement(T.ZP,{nodeIds:t,title:"Anomalies",initialChartName:H,hiddenTabs:Xe,flavour:"anomalies",loaded:!0,hasSearch:!1})},a.createElement(Qe,(0,x.Z)({initialChartName:H,onChartNameChange:P,linkToGo:V&&(0,_.Z)("menu_Anomalous metrics")},h&&{padding:[0,0,M,4]})),h&&a.createElement(ie,{ref:b,position:"absolute",bottom:0,right:0,left:0,zIndex:6e3,onRetry:m})))},We=function(){var e=(0,r.TA)({extraKey:"anomalies"}),t=(0,s.zN)(),n=(0,s.fD)(),d=function(e){var t=(0,i.HZ)(),n=(0,i.Ne)(t);return(0,a.useMemo)((function(){return n.reduce((function(t,n){var a=n.capabilities.ml;return null!==a&&void 0!==a&&a.enabled?t.predicting=[].concat((0,o.Z)(t.predicting),[l(n,e)]):t.incapable=[].concat((0,o.Z)(t.incapable),[l(n,e)]),t}),{predicting:[],incapable:[]})}),[t.length,e])}("id").predicting;if(n&&!t.length)return a.createElement(X.ZP,{feature:"Anomalies",mode:"NoNodesView"},a.createElement(c.Z,null));var u=d.length>0;return n&&!u?a.createElement(X.ZP,{feature:"Anomalies",mode:"NoConfiguredNodesView"},a.createElement(w,null)):a.createElement(X.ZP,{feature:"Anomalies"},a.createElement(Je,{nodeIds:e}))}}}]); \ No newline at end of file