All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.57e33c6c-58.11b9f72925818240e61d.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["57e33c6c-58"],{"DTvPc/03":function(e,t,n){"use strict";var r=n("dFpwyWHg"),a=n.n(r),o=n("iHTrL76j"),l={insert:"head",singleton:!1};a()(o.a,l);t.a=o.a.locals||{}},ZTZJI2iJ:function(e,t,n){"use strict";n.r(t);var r=n("ii0bleBb"),a=n.n(r),o=n("ivGQtwpr"),l=n.n(o),c=n("X+7LuFrS"),i=n("qoq4u5Uq"),s=n("0tVB/fkh"),u=n("mc0qlNhN"),f=n("jHp4XH0b"),m=n("21p8kIWv"),p=n("/lavANvI"),d=n("+CppQpVm"),y=n("PcYM+wZ7"),h=n.n(y),b=n("nHcjWeCO"),E=n.n(b),v=n("nfSjELXA"),g=n("DTvPc/03");function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;nt-6e4?"info":""})),I(C(e),"_dirFormatter",(function(e){return e.is_dir?l.a.createElement("span",null,l.a.createElement(s.z,{name:"folder-open"}),"  ",e.path):l.a.createElement("span",null,l.a.createElement(s.z,{name:"file",type:"regular"}),"  ",e.path)})),I(C(e),"_fileListFormatter",(function(t){return l.a.createElement("tr",{key:t.path,className:e._activityFormatter(t.mod_time)},l.a.createElement("td",{className:"limited"},l.a.createElement(s.hb,{dateTime:t.mod_time,format:"YYYY-MM-DD HH:mm:ss"})),l.a.createElement("td",{className:"limited"},t.size),l.a.createElement("td",null,e._dirFormatter(t)))})),e}return t=o,(n=[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(s.h,{id:"log-file-list",className:"table-hover",headers:["Modified","Size","Path"],headerCellFormatter:this._headerCellFormatter,rows:this.props.files,dataRowFormatter:this._fileListFormatter,filterLabel:"Filter Files",filterKeys:[]}))}}])&&w(t.prototype,n),r&&w(t,r),o}(l.a.Component);I(j,"propTypes",{files:a.a.array.isRequired});var R=j,T=n("4ysf/eyx");function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n"))),l.a.createElement(i.A.Footer,null,l.a.createElement(i.e,{type:"button",onClick:this.hide},"Close")))}}])&&D(t.prototype,n),r&&D(t,r),o}(l.a.Component);L(U,"propTypes",{collectorName:a.a.string.isRequired,collectorVerbose:a.a.string.isRequired});var G=U,Y=h()({displayName:"SidecarStatus",propTypes:{sidecar:a.a.object.isRequired,collectors:a.a.array.isRequired},getInitialState:function(){return{collectorName:"",collectorVerbose:""}},formatNodeDetails:function(e){if(!e)return l.a.createElement("p",null,"Node details are currently unavailable. Please wait a moment and ensure the sidecar is correctly connected to the server.");var t=e.metrics||{};return l.a.createElement("dl",{className:"".concat(g.a.deflist," ").concat(g.a.topMargin)},l.a.createElement("dt",null,"IP Address"),l.a.createElement("dd",null,E.a.defaultTo(e.ip,"Not available")),l.a.createElement("dt",null,"Operating System"),l.a.createElement("dd",null,E.a.defaultTo(e.operating_system,"Not available")),l.a.createElement("dt",null,"CPU Idle"),l.a.createElement("dd",null,E.a.isNumber(t.cpu_idle)?"".concat(t.cpu_idle,"%"):"Not available"),l.a.createElement("dt",null,"Load"),l.a.createElement("dd",null,E.a.defaultTo(t.load_1,"Not available")),l.a.createElement("dt",null,"Volumes > 75% full"),void 0===t.disks_75?l.a.createElement("dd",null,"Not available"):l.a.createElement("dd",null,t.disks_75.length>0?t.disks_75.join(", "):"None"))},formatCollectorStatus:function(e,t){var n=this;if(!e||!t)return l.a.createElement("p",null,"Collectors status are currently unavailable. Please wait a moment and ensure the sidecar is correctly connected to the server.");if(!e.status)return l.a.createElement("p",null,"Did not receive collectors status, set the option ",l.a.createElement("code",null,"send_status: true")," in the sidecar configuration to see this information.");var r=e.status.collectors;if(0===r.length)return l.a.createElement("p",null,"There are no collectors configured in this sidecar.");var a=[];return r.forEach((function(e){var r,o,c,u,f=t.find((function(t){return t.id===e.collector_id}));switch(e.status){case v.a.RUNNING:r="Collector is running.",c="text-success",o=l.a.createElement(s.z,{name:"play",fixedWidth:!0});break;case v.a.FAILING:r=e.message,c="text-danger",o=l.a.createElement(s.z,{name:"exclamation-triangle",fixedWidth:!0}),e.verbose_message&&(u=l.a.createElement(i.e,{bsStyle:"link",bsSize:"xs",onClick:function(){return n._onShowVerbose(f.name,e.verbose_message)}},"Show Details"));break;case v.a.STOPPED:r=e.message,c="text-danger",o=l.a.createElement(s.z,{name:"stop",fixedWidth:!0});break;default:r="Collector status is currently unknown.",c="text-info",o=l.a.createElement(s.z,{name:"question-circle",fixedWidth:!0})}f&&a.push(l.a.createElement("dt",{key:"".concat(f.id,"-key"),className:c},f.name),l.a.createElement("dd",{key:"".concat(f.id,"-description"),className:c},o," ",r," ",u))})),l.a.createElement("dl",{className:g.a.deflist},a)},_onShowVerbose:function(e,t){this.setState({collectorName:e,collectorVerbose:t}),this.modal.open()},render:function(){var e=this,t=this.props.sidecar,n=t.node_details.log_file_list||[];return l.a.createElement("div",null,l.a.createElement(i.L,{className:"content"},l.a.createElement(i.j,{md:12},l.a.createElement("h2",null,"Node details"),this.formatNodeDetails(t.node_details))),l.a.createElement(i.L,{className:"content"},l.a.createElement(i.j,{md:12},l.a.createElement("h2",null,"Collectors status"),l.a.createElement("div",{className:g.a.topMargin},this.formatCollectorStatus(t.node_details,this.props.collectors)))),l.a.createElement(i.L,{className:"content",hidden:0===n.length},l.a.createElement(i.j,{md:12},l.a.createElement("h2",null,"Log Files"),l.a.createElement("p",{className:g.a.topMargin},"Recently modified files will be highlighted in blue."),l.a.createElement("div",null,l.a.createElement(R,{files:n})))),l.a.createElement(G,{ref:function(t){e.modal=t},collectorName:this.state.collectorName,collectorVerbose:this.state.collectorVerbose}))}}),z=n("1/asf7rI");function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy