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

web-interface.assets.27059c95-68.567b98aaba093175141f.js Maven / Gradle / Ivy

There is a newer version: 5.2.7
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["27059c95-68"],{gZuwHbhy:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a=E(t("ii0bleBb")),n=E(t("ivGQtwpr")),l=E(t("PcYM+wZ7")),i=E(t("4KF7VOU5")),o=t("wMSvutaJ"),r=E(t("jHp4XH0b")),d=t("oBIKikY9"),u=t("7NKO1ghU"),s=t("ulKR5lF3"),c=t("V8O/dgQq"),f=E(t("W+sNG9T1")),m=E(t("mc0qlNhN")),p=E(t("+CppQpVm")),h=E(t("21p8kIWv"));function E(e){return e&&e.__esModule?e:{default:e}}var g=h.default.get("CurrentUser").CurrentUserStore,C=h.default.get("Streams").StreamsStore,w=h.default.get("AlertConditions"),S=w.AlertConditionsStore,v=w.AlertConditionsActions,b=(0,l.default)({displayName:"EditAlertConditionPage",propTypes:{params:a.default.object.isRequired},mixins:[i.default.connect(g),i.default.connect(S)],getInitialState:function(){return{stream:void 0}},componentDidMount:function(){var t=this;C.get(this.props.params.streamId,function(e){t.setState({stream:e})}),v.get(this.props.params.streamId,this.props.params.conditionId),v.available()},_handleUpdate:function(e,t){v.get(e,t)},_handleDelete:function(){p.default.push(f.default.ALERTS.CONDITIONS)},_isLoading:function(){return!this.state.stream||!this.state.alertCondition||!this.state.availableConditions},render:function(){if(this._isLoading())return n.default.createElement(d.Spinner,null);var e=this.state.alertCondition,t=this.state.availableConditions[e.type],a=this.state.stream;return n.default.createElement(d.DocumentTitle,{title:"Condition ".concat(e.title||"Untitled")},n.default.createElement("div",null,n.default.createElement(d.PageHeader,{title:n.default.createElement("span",null,"Condition ",n.default.createElement("em",null,e.title||"Untitled"))},n.default.createElement("span",null,"Define an alert condition and configure the way Graylog will notify you when that condition is satisfied."),n.default.createElement("span",null,"Are the default conditions not flexible enough? You can write your own! Read more about alerting in the"," ",n.default.createElement(r.default,{page:m.default.PAGES.ALERTS,text:"documentation"}),"."),n.default.createElement("span",null,n.default.createElement(u.AlertsHeaderToolbar,{active:f.default.ALERTS.CONDITIONS}))),n.default.createElement(o.Row,{className:"content"},n.default.createElement(o.Col,{md:12},n.default.createElement(s.EditAlertConditionForm,{alertCondition:e,conditionType:t,stream:a,onUpdate:this._handleUpdate,onDelete:this._handleDelete}))),n.default.createElement(o.Row,{className:"content"},n.default.createElement(o.Col,{md:12},n.default.createElement(c.StreamAlertNotifications,{stream:a})))))}});exports.default=b,e.exports=exports.default}}]);
//# sourceMappingURL=27059c95-68.567b98aaba093175141f.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy