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

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

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["57e33c6c-54"],{"2wyBGuX7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a.a})),n.d(t,"b",(function(){return p}));var r=n("ivGQtwpr"),a=(n("qoq4u5Uq"),n("E0PFEP8H"),n("jHp4XH0b")),o=n("ii0bleBb"),i=n.n(o),l=n("CzyxmveH"),c=n("0tVB/fkh"),s=l.default.div.withConfig({displayName:"SmallSupportLink__Description",componentId:"sc-1otjh3-0"})(["display:inline-flex;justify-content:center;align-items:center;"]),u=l.default.div.withConfig({displayName:"SmallSupportLink__IconStack",componentId:"sc-1otjh3-1"})((function(e){var t=e.theme;return Object(l.css)(["position:relative;min-width:2.5em;.fa-stack-1x{color:",";}.fa-stack-2x{color:",";}"],t.colors.global.textAlt,t.colors.global.textDefault)})),f=l.default.p.withConfig({displayName:"SmallSupportLink__Content",componentId:"sc-1otjh3-2"})(["font-weight:bold;margin:0;"]),d=function(e){var t=e.children,n=e.className;return r.createElement(s,{className:"".concat(n," description-tooltips")},r.createElement(u,{className:"fa-stack"},r.createElement(c.z,{name:"circle",className:"fa-stack-2x"}),r.createElement(c.z,{name:"lightbulb",className:"fa-stack-1x",type:"regular"})),r.createElement(f,null,t))};d.propTypes={children:i.a.node.isRequired,className:i.a.string},d.defaultProps={className:void 0};var p=d;n("75Z74Q9B")},VErHFKte:function(e,t,n){"use strict";n.r(t);var r=n("4KF7VOU5"),a=n.n(r),o=n("mRXwKqDg"),i=Object(o.b)("Streams",(function(){return a.a.createActions({searchPaginated:{asyncResult:!0},listStreams:{asyncResult:!0},load:{asyncResult:!0},get:{asyncResult:!0},remove:{asyncResult:!0},pause:{asyncResult:!0},resume:{asyncResult:!0},cloneStream:{asyncResult:!0},update:{asyncResult:!0},save:{asyncResult:!0},removeOutput:{asyncResult:!0},addOutput:{asyncResult:!0},testMatch:{asyncResult:!0}})}));t.default=i},ZWBDRZPZ:function(e,t,n){"use strict";n.r(t);var r=n("ivGQtwpr"),a=n.n(r),o=n("qoq4u5Uq"),i=n("0tVB/fkh"),l=n("kcvrazAT"),c=n("21p8kIWv"),s=n("dOmQZ9N/"),u=n("ii0bleBb"),f=n.n(u),d=n("2gEPIf6i"),p=n.n(d),m=n("B4BR5PLd"),h=n("s2hN4RJZ"),g=(n("gtXNkEXl"),n("fht+nQHa"));function b(e){return(b="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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n=1}function K(e,t){return e>=1||"PT0S"===t}function Z(e){return e>=1}function Y(e){return e.split(",").map((function(e){return e.trim()})).filter((function(e){return e.length>0}))}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(s,e);var t,n,l,c=z(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Q(G(t=c.call(this,e)),"_onUpdate",(function(e){return function(n){var r=t.state.config,a=h.a.clone(r);a[e]=n,t.setState({config:a})}})),Q(G(t),"_onRelativeTimeRangeOptionsUpdate",(function(e){t.setState({relativeTimeRangeOptionsUpdate:e})})),Q(G(t),"_onSurroundingTimeRangeOptionsUpdate",(function(e){t.setState({surroundingTimeRangeOptionsUpdate:e})})),Q(G(t),"_onFilterFieldsUpdate",(function(e){t.setState({surroundingFilterFields:e.target.value})})),Q(G(t),"_onAnalysisDisabledFieldsUpdate",(function(e){t.setState({analysisDisabledFields:e.target.value})})),Q(G(t),"_onChecked",(function(){var e=t.state,n=e.config,r=e.limitEnabled,a=h.a.clone(n);a.query_time_range_limit=r?"PT0S":"P30D",t.setState({config:a,limitEnabled:!r})})),Q(G(t),"_saveConfig",(function(){var e=t.props.updateConfig,n=t.state,r=n.analysisDisabledFields,a=n.config,o=n.relativeTimeRangeOptionsUpdate,i=n.surroundingTimeRangeOptionsUpdate,l=n.surroundingFilterFields,c=h.a.clone(a);o&&(c.relative_timerange_options={},o.forEach((function(e){c.relative_timerange_options[e.period]=e.description})),t.setState({relativeTimeRangeOptionsUpdate:void 0})),i&&(c.surrounding_timerange_options={},i.forEach((function(e){c.surrounding_timerange_options[e.period]=e.description})),t.setState({surroundingTimeRangeOptionsUpdate:void 0})),l&&(c.surrounding_filter_fields=Y(l),t.setState({surroundingFilterFields:void 0})),r&&(c.analysis_disabled_fields=Y(r),t.setState({analysisDisabledFields:void 0})),e(c).then((function(){t._closeModal()}))})),Q(G(t),"_resetConfig",(function(){t.setState(t.defaultState)})),Q(G(t),"_openModal",(function(){t.searchesConfigModal.current.open()})),Q(G(t),"_closeModal",(function(){t.searchesConfigModal.current.close()})),t.searchesConfigModal=Object(r.createRef)();var n=e.config,a=null==n?void 0:n.query_time_range_limit,o=null==n?void 0:n.relative_timerange_options,i=null==n?void 0:n.surrounding_timerange_options,l=null==n?void 0:n.surrounding_filter_fields,u=null==n?void 0:n.analysis_disabled_fields;return t.state={config:{query_time_range_limit:a,relative_timerange_options:o,surrounding_timerange_options:i,surrounding_filter_fields:l,analysis_disabled_fields:u},limitEnabled:p.a.duration(a).asMilliseconds()>0,relativeTimeRangeOptionsUpdate:void 0,surroundingTimeRangeOptionsUpdate:void 0},t.defaultState=function(e){for(var t=1;t=e.processor_order.length},_noActiveProcessorWarning:function(){return this._hasNoActiveProcessor()?a.a.createElement(o.c,{bsStyle:"danger"},a.a.createElement("strong",null,"ERROR:")," No active message processor!"):null},_summary:function(){var e=this.state.config;return e.processor_order.map((function(t,n){var r=e.disabled_processors.filter((function(e){return e===t.class_name})).length>0?"disabled":"active";return a.a.createElement("tr",{key:n},a.a.createElement("td",null,n+1),a.a.createElement("td",null,t.name),a.a.createElement("td",null,r))}))},_sortableItems:function(){return this.state.config.processor_order.map((function(e){return{id:e.class_name,title:e.name}}))},_statusForm:function(){var e=this,t=this.state.config;return h.a.clone(t.processor_order).sort((function(e,t){return oe()(e.name,t.name)})).map((function(n,r){var o=t.disabled_processors.filter((function(e){return e===n.class_name})).length<1;return a.a.createElement("tr",{key:r},a.a.createElement("td",null,n.name),a.a.createElement("td",null,a.a.createElement("input",{ref:function(t){e.inputs[n.class_name]=t},type:"checkbox",checked:o,onChange:e._toggleStatus(n.class_name)})))}))},render:function(){var e=this;return a.a.createElement("div",null,a.a.createElement("h2",null,"Message Processors Configuration"),a.a.createElement("p",null,"The following message processors are executed in order. Disabled processors will be skipped."),a.a.createElement(o.N,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"#"),a.a.createElement("th",null,"Processor"),a.a.createElement("th",null,"Status"))),a.a.createElement("tbody",null,this._summary())),a.a.createElement(i.B,{permissions:"clusterconfigentry:edit"},a.a.createElement(o.e,{bsStyle:"info",bsSize:"xs",onClick:this._openModal},"Update")),a.a.createElement(ie.a,{ref:function(t){e.configModal=t},title:"Update Message Processors Configuration",onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,submitButtonText:"Save"},a.a.createElement("h3",null,"Order"),a.a.createElement("p",null,"Use drag and drop to change the execution order of the message processors."),a.a.createElement(i.bb,{items:this._sortableItems(),onMoveItem:this._updateSorting,displayOverlayInPortal:!0}),a.a.createElement("h3",null,"Status"),a.a.createElement("p",null,"Change the checkboxes to change the status of a message processor."),a.a.createElement(o.N,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"Processor"),a.a.createElement("th",null,"Enabled"))),a.a.createElement("tbody",null,this._statusForm())),this._noActiveProcessorWarning()))}}),ce=n("L8npJDrf"),se=n("H1SnJhgx");function ue(e){return(ue="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)}var fe=re()({displayName:"SidecarConfig",propTypes:{config:f.a.shape({sidecar_expiration_threshold:f.a.string,sidecar_inactive_threshold:f.a.string,sidecar_update_interval:f.a.string,sidecar_send_status:f.a.bool,sidecar_configuration_override:f.a.bool}),updateConfig:f.a.func.isRequired},getDefaultProps:function(){return{config:{sidecar_expiration_threshold:"P14D",sidecar_inactive_threshold:"PT1M",sidecar_update_interval:"PT30S",sidecar_send_status:!0,sidecar_configuration_override:!1}}},getInitialState:function(){return{config:h.a.clone(this.props.config)}},UNSAFE_componentWillReceiveProps:function(e){this.setState({config:h.a.clone(e.config)})},_openModal:function(){this.refs.configModal.open()},_closeModal:function(){this.refs.configModal.close()},_resetConfig:function(){this.setState(this.getInitialState())},_saveConfig:function(){var e=this;this.props.updateConfig(this.state.config).then((function(){e._closeModal()}))},_onUpdate:function(e){var t=this;return function(n){var r=h.a.clone(t.state.config);"object"===ue(n)?r[e]=ce.a.getValueFromInput(n.target):r[e]=n,t.setState({config:r})}},_inactiveThresholdValidator:function(e){return e>=1e3},_expirationThresholdValidator:function(e){return e>=6e4},_updateIntervalValidator:function(e){var t=this._durationMilliseconds(this.state.config.sidecar_inactive_threshold),n=this._durationMilliseconds(this.state.config.sidecar_expiration_threshold);return e>=1e3&&e=1e3},_notificationsRetryValidator:function(e){return e>=0},_onBacklogUpdate:function(e){var t=ce.a.getValueFromInput(e.target);this._propagateChanges("events_notification_default_backlog",t)},_onCatchUpWindowUpdate:function(e,t,n){if(0===this.state.config.events_catchup_window&&n)this._propagateChanges("events_catchup_window",be);else{var r=n?p.a.duration(e,t).asMilliseconds():0;this._propagateChanges("events_catchup_window",r)}},_titleCase:function(e){return pe.a.capitalize(e)},render:function(){var e=this,t=this.state.config,n=Object(he.b)(t.events_search_timeout,ge),r=Object(he.b)(t.events_notification_retry_period,ge),l=Object(he.b)(t.events_catchup_window,ge),c=t.events_notification_default_backlog;return a.a.createElement("div",null,a.a.createElement("h2",null,"Events System"),a.a.createElement("dl",{className:"deflist"},a.a.createElement("dt",null,"Search Timeout:"),a.a.createElement("dd",null,n.duration," ",this._titleCase(n.unit)),a.a.createElement("dt",null,"Notification Retry:"),a.a.createElement("dd",null,r.duration," ",this._titleCase(r.unit)),a.a.createElement("dt",null,"Notification Backlog:"),a.a.createElement("dd",null,c),a.a.createElement("dt",null,"Catch Up Window:"),a.a.createElement("dd",null,l.duration>0?l.duration:"disabled"," ",l.duration>0?this._titleCase(l.unit):"")),a.a.createElement(i.B,{permissions:"clusterconfigentry:edit"},a.a.createElement(o.e,{bsStyle:"info",bsSize:"xs",onClick:this._openModal},"Update")),a.a.createElement(m.b,{ref:function(t){e.modal=t},title:"Update Events System Configuration",onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,submitButtonText:"Save"},a.a.createElement("fieldset",null,a.a.createElement(o.q,{controlId:"search-timeout-field"},a.a.createElement(i.gb,{label:"Search Timeout",update:this._onSearchTimeoutUpdate,value:n.duration,unit:n.unit,units:ge,required:!0}),a.a.createElement(o.s,null,"Amount of time after which an Elasticsearch query is interrupted. (Minimum timeout is 1s)")),a.a.createElement(o.q,{controlId:"notifications-retry-field"},a.a.createElement(i.gb,{label:"Notifications retry period",update:this._onRetryPeriodUpdate,value:r.duration,unit:r.unit,units:ge,required:!0}),a.a.createElement(o.s,null,"Amount of time after which a failed notification is resend. (Minimum is 0 or immediate retry)")),a.a.createElement(me.a,{id:"notification-backlog-field",type:"number",onChange:this._onBacklogUpdate,label:"Default notifications backlog size",help:"Amount of log messages included in a notification by default.",value:c,min:"0",required:!0}),a.a.createElement(o.q,{controlId:"catch-up-window"},a.a.createElement(i.gb,{label:"Catch up window size",update:this._onCatchUpWindowUpdate,value:l.duration,unit:l.unit,enabled:l.duration>0,units:ge}),a.a.createElement(o.s,null,'If Event processor execution is behind schedule, queries on older data will be run with this window size to speed up processing. (If the "search within the last" setting of an event definiton is greater, this setting will be ignored)')))))}}),ve=n("FiMCkbnt");function _e(e){return(_e="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 Ee(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 Se(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n div{margin-bottom:30px;}"]),Ge=n("GMFq2nBB");function Xe(){return(Xe=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||Ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Tt(e){return function(e){if(Array.isArray(e))return kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement(o.L,{className:"content"},r.createElement(o.j,{md:12},r.createElement("h2",null,"Plugins"),r.createElement("p",{className:"description"},"Configuration for installed plugins."),r.createElement("hr",{className:"separator"}),r.createElement("div",{className:"top-margin"},r.createElement(et,{configuration:c,systemConfigs:a}))))))}},keedmmMh:function(e,t,n){"use strict";n.r(t),n.d(t,"StreamsStore",(function(){return g}));var r=n("4KF7VOU5"),a=n.n(r),o=n("nHcjWeCO"),i=n.n(o),l=n("L+5XEiOD"),c=n("IU8ofT4O"),s=n("HbbeyvOy"),u=n("8GJ6oOEd"),f=n("21p8kIWv"),d=n("mR82218M"),p=n("VErHFKte");n.d(t,"StreamsActions",(function(){return p.default}));var m=n("mRXwKqDg"),h=f.a.get("CurrentUser").CurrentUserStore,g=Object(m.c)("Streams",(function(){return a.a.createStore({listenables:[p.default],callbacks:[],searchPaginated:function(e,t,n){var r=Object(d.a)(c.a.StreamsApiController.paginated().url,e,t,n),a=Object(l.b)("GET",Object(s.f)(r)).then((function(e){var t=e.streams,n=e.query,r=e.pagination;return{streams:t,pagination:{count:r.count,total:r.total,page:r.page,perPage:r.per_page,query:n}}})).catch((function(e){u.a.error("Loading streams failed with status: ".concat(e),"Could not load streams")}));return p.default.searchPaginated.promise(a),a},listStreams:function(){var e=Object(l.b)("GET",Object(s.f)("/streams")).then((function(e){return e.streams})).catch((function(e){u.a.error("Loading streams failed with status: ".concat(e),"Could not load streams")}));return p.default.listStreams.promise(e),e},load:function(e){this.listStreams().then((function(t){e(t)}))},get:function(e,t){var n=c.a.StreamsApiController.get(e).url,r=Object(l.b)("GET",Object(s.f)(n)).then(t,(function(e){u.a.error("Loading Stream failed with status: ".concat(e),"Could not retrieve Stream")}));return p.default.get.promise(r),r},remove:function(e,t){var n=this,r=Object(s.f)(c.a.StreamsApiController.delete(e).url),a=Object(l.b)("DELETE",r).then(t,(function(e){u.a.error("Removing Stream failed with status: ".concat(e),"Could not remove Stream")})).then((function(){return h.reload().then(n._emitChange.bind(n))}));return p.default.remove.promise(a),a},pause:function(e,t){var n=this,r=Object(s.f)(c.a.StreamsApiController.pause(e).url),a=Object(l.b)("POST",r).then(t,(function(e){u.a.error("Pausing Stream failed with status: ".concat(e),"Could not pause Stream")})).then((function(e){return n._emitChange(),e}));return p.default.pause.promise(a),a},resume:function(e,t){var n=this,r=Object(s.f)(c.a.StreamsApiController.resume(e).url),a=Object(l.b)("POST",r).then(t,(function(e){u.a.error("Resuming Stream failed with status: ".concat(e),"Could not resume Stream")})).then((function(e){return n._emitChange(),e}));return p.default.resume.promise(a),a},save:function(e,t){var n=this,r=Object(s.f)(c.a.StreamsApiController.create().url),a=Object(l.b)("POST",r,e).then(t,(function(e){u.a.error("Saving Stream failed with status: ".concat(e),"Could not save Stream")})).then((function(){return h.reload().then(n._emitChange.bind(n))}));return p.default.save.promise(a),a},update:function(e,t,n){var r=Object(s.f)(c.a.StreamsApiController.update(e).url),a=Object(l.b)("PUT",r,t).then(n,(function(e){u.a.error("Updating Stream failed with status: ".concat(e),"Could not update Stream")})).then(this._emitChange.bind(this));return p.default.update.promise(a),a},cloneStream:function(e,t,n){var r=this,a=Object(s.f)(c.a.StreamsApiController.cloneStream(e).url),o=Object(l.b)("POST",a,t).then(n,(function(e){u.a.error("Cloning Stream failed with status: ".concat(e),"Could not clone Stream")})).then((function(){return h.reload().then(r._emitChange.bind(r))}));return p.default.cloneStream.promise(o),o},removeOutput:function(e,t,n){var r=Object(s.f)(c.a.StreamOutputsApiController.delete(e,t).url),a=Object(l.b)("DELETE",r).then(n,(function(e){u.a.error("Removing output from stream failed with status: ".concat(e),"Could not remove output from stream")})).then(this._emitChange.bind(this));return p.default.removeOutput.promise(a),a},addOutput:function(e,t,n){var r=Object(s.f)(c.a.StreamOutputsApiController.add(e).url),a=Object(l.b)("POST",r,{outputs:[t]}).then(n,(function(e){u.a.error("Adding output to stream failed with status: ".concat(e),"Could not add output to stream")})).then(this._emitChange.bind(this));return p.default.addOutput.promise(a),a},testMatch:function(e,t,n){var r=Object(s.f)(c.a.StreamsApiController.testMatch(e).url),a=Object(l.b)("POST",r,t).then(n,(function(e){u.a.error("Testing stream rules of stream failed with status: ".concat(e.message),"Could not test stream rules of stream")}));return p.default.testMatch.promise(a),a},onChange:function(e){this.callbacks.push(e)},_emitChange:function(){this.callbacks.forEach((function(e){return e()}))},unregister:function(e){i.a.pull(this.callbacks,e)}})}));t.default=g}}]);
//# sourceMappingURL=57e33c6c-54.11b9f72925818240e61d.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy