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

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

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["57e33c6c-75"],{"+1YzEZSk":function(e,t,n){"use strict";n.r(t);var o=n("ivGQtwpr"),i=n.n(o),a=n("X+7LuFrS"),r=n("qoq4u5Uq"),c=n("0tVB/fkh"),s=n("ii0bleBb"),l=n.n(s),u=n("kcvrazAT"),f=n("21p8kIWv"),p=n("AztyBNMT"),d=n("uJdA8AMc"),y=n("/lavANvI"),m=n("dFpwyWHg"),g=n.n(m),h=n("qj+Oxxul"),E={insert:"head",singleton:!1},b=(g()(h.a,E),h.a.locals||{});function v(e){return(v="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){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:function(){},o=e.props.notifications,i=e.fetchData({query:t,pageSize:o.pagination.pageSize});i.finally(n)})),D(k(e),"handleDelete",(function(e){return function(){window.confirm('Are you sure you want to delete "'.concat(e.title,'"?'))&&M.delete(e)}})),D(k(e),"handleTest",(function(t){return function(){e.setState({testResult:{isLoading:!0,id:t.id}});var n={isLoading:!1};e.testPromise&&e.testPromise.cancel(),e.testPromise=M.testPersisted(t),e.testPromise.then((function(e){return n={isLoading:!1,id:t.id,error:!1,message:"Notification was executed successfully."},e}),(function(e){return n={isLoading:!1,id:t.id,error:!0},400===e.status&&e.additional.body&&e.additional.body.failed||(n.message=e.responseMessage||"Unknown errorResponse, please check your Graylog server logs."),e})).finally((function(){e.setState({testResult:n}),e.testPromise=void 0}))}})),e}return t=r,(n=[{key:"componentDidMount",value:function(){this.fetchData({})}},{key:"componentWillUnmount",value:function(){this.testPromise&&this.testPromise.cancel()}},{key:"render",value:function(){var e=this.props.notifications,t=this.state.testResult;return e.notifications?i.a.createElement(P,{notifications:e.notifications,pagination:e.pagination,query:e.query,testResult:t,onPageChange:this.handlePageChange,onQueryChange:this.handleQueryChange,onDelete:this.handleDelete,onTest:this.handleTest}):i.a.createElement(c.db,{text:"Loading Notifications information..."})}}])&&L(t.prototype,n),o&&L(t,o),r}(i.a.Component);D(Q,"propTypes",{notifications:l.a.object}),D(Q,"defaultProps",{notifications:void 0});var W=Object(u.a)(Q,{notifications:F});t.default=function(){return i.a.createElement(c.j,{title:"Notifications"},i.a.createElement("span",null,i.a.createElement(c.M,{title:"Notifications"},i.a.createElement("span",null,"Notifications alert you of any configured Event when they occur. Graylog can send Notifications directly to you or to other systems you use for that purpose."),i.a.createElement("span",null,"Remember to assign Notifications while creating or editing an Event Definition."),i.a.createElement(r.g,null,i.a.createElement(a.b,{to:y.a.ALERTS.LIST},i.a.createElement(r.e,{bsStyle:"info"},"Alerts & Events")),i.a.createElement(a.b,{to:y.a.ALERTS.DEFINITIONS.LIST},i.a.createElement(r.e,{bsStyle:"info"},"Event Definitions")),i.a.createElement(a.b,{to:y.a.ALERTS.NOTIFICATIONS.LIST},i.a.createElement(r.e,{bsStyle:"info"},"Notifications")))),i.a.createElement(r.L,{className:"content"},i.a.createElement(r.j,{md:12},i.a.createElement(W,null)))))}},"qj+Oxxul":function(e,t,n){"use strict";var o=n("dZUWVuuc"),i=n.n(o),a=n("DjJvgDaP"),r=n.n(a)()(i.a);r.push([e.i,"._1Yg4C4BYEqK0davLbQBWxS {\n    margin-top: 10px;\n}\n\n._2k6FGfh2VPcOyo6xN5gZbN {\n    display: inline-block;\n}\n\n._1dKq29xdO2-0vgZKC2MLqV {\n    margin-left: 5px;\n}\n","",{version:3,sources:["webpack://./src/components/event-notifications/event-notifications/EventNotifications.css"],names:[],mappings:"AAAA;IACI,gBAAgB;AACpB;;AAEA;IACI,qBAAqB;AACzB;;AAEA;IACI,gBAAgB;AACpB",sourcesContent:[":local(.notificationList) {\n    margin-top: 10px;\n}\n\n:local(.inline) {\n    display: inline-block;\n}\n\n:local(.createButton) {\n    margin-left: 5px;\n}\n"],sourceRoot:""}]),r.locals={notificationList:"_1Yg4C4BYEqK0davLbQBWxS",inline:"_2k6FGfh2VPcOyo6xN5gZbN",createButton:"_1dKq29xdO2-0vgZKC2MLqV"},t.a=r}}]);
//# sourceMappingURL=57e33c6c-75.11b9f72925818240e61d.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy