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

web-interface.assets.b6fe2bb5-608.4cd4e42c6715a0c7c274.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["b6fe2bb5-608"],{XmWOcQPs:(e,t,n)=>{n.d(t,{Z:()=>ee});var r=n("Z7aTuO5B"),o=n("ii0bleBb"),i=n.n(o),l=n("nHcjWeCO"),a=n.n(l),c=n("AztyBNMT"),u=n("9oVghaOd"),s=n.n(u),f=(n("gtXNkEXl"),n("8FtKQWAV")),m=n.n(f),p=n("Mr++nPjW"),d=n("EUJYvlA3"),y=n("WlYEmUoB"),b=(n("nRMrOfDS"),n("1xjfhvUb"),n("4kW3fUUU"));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},v(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n0?o.join(", "):"No Keys configured for Events based on this Definition.")),e.sort(m()).map((function(e){return t.renderField(e,n[e],o)})))})),Q(H(t),"renderFields",(function(e,n){var o=Object.keys(e);return r.createElement(r.Fragment,null,r.createElement("h3",{className:b.Z.title},"Fields"),0===o.length?r.createElement("p",null,"No Fields configured for Events based on this Definition."):t.renderFieldList(o,e,n))})),Q(H(t),"renderNotification",(function(e){var n,o=t.props.notifications.find((function(t){return t.id===e.notification_id}));if(o){var i=t.getPlugin("eventNotificationTypes",o.config.type);n=i.summaryComponent?r.createElement(i.summaryComponent,{type:i.displayName,notification:o,definitionNotification:e}):r.createElement("p",null,"Notification plugin ",r.createElement("em",null,o.config.type)," does not provide a summary.")}else n=r.createElement("p",null,"Could not find information for Notification ",r.createElement("em",null,e.notification_id),".");return r.createElement(r.Fragment,{key:e.notification_id},n)})),Q(H(t),"renderNotificationSettings",(function(e){var t=s().duration(e.grace_period_ms).format("d [days] h [hours] m [minutes] s [seconds]",{trim:"all"}),n=e.grace_period_ms?"Grace Period is set to ".concat(t):"Grace Period is disabled",o=e.backlog_size?"Notifications will include ".concat(e.backlog_size," messages"):"Notifications will not include any messages.";return r.createElement(r.Fragment,null,r.createElement("h4",null,"Settings"),r.createElement("dl",null,r.createElement("dd",null,n),r.createElement("dd",null,o)))})),Q(H(t),"renderNotifications",(function(e,n){var o=t.props.currentUser,i=e.filter((function(e){return(0,d.rq)(o.permissions,"eventnotifications:read:".concat(e.notification_id))})),l=e.filter((function(e){return!i.map((function(e){return e.notification_id})).includes(e.notification_id)})),a=l.length>0?r.createElement(p.bZ,{bsStyle:"warning"},"Missing Notifications Permissions for:",r.createElement("br",null),l.map((function(e){return e.notification_id})).join(", ")):null;return r.createElement(r.Fragment,null,r.createElement("h3",{className:b.Z.title},"Notifications"),r.createElement("p",null,a),0===i.length&&l.length<=0?r.createElement("p",null,"This Event is not configured to trigger any Notifications."):r.createElement(r.Fragment,null,t.renderNotificationSettings(n),e.map(t.renderNotification)))})),t.state={showValidation:!1},t}return t=l,(n=[{key:"componentDidUpdate",value:function(){this.showValidation()}},{key:"render",value:function(){var e=this.props,t=e.eventDefinition,n=e.validation,o=this.state.showValidation;return r.createElement(p.X2,{className:J.eventSummary},r.createElement(p.JX,{md:12},r.createElement("h2",{className:b.Z.title},"Event Summary"),o&&r.createElement(k,{validation:n}),r.createElement(p.X2,null,r.createElement(p.JX,{md:5},this.renderDetails(t)),r.createElement(p.JX,{md:5,mdOffset:1},this.renderCondition(t.config))),r.createElement(p.X2,null,r.createElement(p.JX,{md:5},this.renderFields(t.field_spec,t.key_spec)),r.createElement(p.JX,{md:5,mdOffset:1},this.renderNotifications(t.notifications,t.notification_settings)))))}}])&&z(t.prototype,n),o&&z(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);Q(Y,"propTypes",{eventDefinition:i().object.isRequired,notifications:i().array.isRequired,validation:i().object,currentUser:i().object.isRequired}),Q(Y,"defaultProps",{validation:void 0});const ee=Y},WlYEmUoB:(e,t,n)=>{n.d(t,{Z:()=>r});const r={LOW:1,NORMAL:2,HIGH:3,properties:{1:{name:"low"},2:{name:"normal"},3:{name:"high"}}}},"R6vKwq+5":(e,t,n)=>{n.d(t,{Z:()=>a});var r=n("pmX897Fv"),o=n.n(r),i=n("DjJvgDaP"),l=n.n(i)()(o());l.push([e.id,".xZzz7avfOImN5wyTQXue dl dl {\n    padding-left: 10px;\n    margin-bottom: 5px;\n}\n","",{version:3,sources:["webpack://./src/components/event-definitions/event-definition-form/EventDefinitionSummary.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,kBAAkB;AACtB",sourcesContent:[":local(.eventSummary) dl dl {\n    padding-left: 10px;\n    margin-bottom: 5px;\n}\n"],sourceRoot:""}]),l.locals={eventSummary:"xZzz7avfOImN5wyTQXue"};const a=l}}]);
//# sourceMappingURL=b6fe2bb5-608.4cd4e42c6715a0c7c274.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy