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

web-interface.assets.6e61897c-11.472622149827c1587209.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["6e61897c-11"],{"5YwkyBYR":function(e,t,n){"use strict";n.d(t,"q",(function(){return gn})),n.d(t,"n",(function(){return xn})),n.d(t,"p",(function(){return zn})),n.d(t,"o",(function(){return ra})),n.d(t,"f",(function(){return Ra})),n.d(t,"a",(function(){return xa})),n.d(t,"c",(function(){return Ja})),n.d(t,"b",(function(){return ar})),n.d(t,"d",(function(){return mr})),n.d(t,"e",(function(){return _r})),n.d(t,"l",(function(){return Yr})),n.d(t,"g",(function(){return no})),n.d(t,"i",(function(){return mo})),n.d(t,"h",(function(){return Oo})),n.d(t,"j",(function(){return Bo})),n.d(t,"k",(function(){return Mo})),n.d(t,"m",(function(){return Zo}));var a=n("AztyBNMT"),r=n("ii0bleBb"),o=n.n(r),l=n("ivGQtwpr"),i=n.n(l),c=n("s2hN4RJZ"),u=n("B4BR5PLd"),s=n("0tVB/fkh");function p(e){return(p="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 f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}))}}])&&m(t.prototype,n),a&&m(t,a),o}(i.a.Component);E(g,"propTypes",{config:o.a.object.isRequired,updateConfig:o.a.func.isRequired,handleFormEvent:o.a.func.isRequired,validationState:o.a.func.isRequired,validationMessage:o.a.func.isRequired});var _=g;function S(e){return(S="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 C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n0,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}),i.a.createElement(s.gb,{label:"Expire after write",help:"If enabled, entries are removed from the cache after the specified time from when they were first used.",update:this.updateAfterWrite,value:e.expire_after_write,unit:e.expire_after_write_unit||"SECONDS",defaultEnabled:e.expire_after_write>0,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}))}}])&&yt(t.prototype,n),a&&yt(t,a),o}(i.a.Component);St(Ct,"propTypes",{config:o.a.object.isRequired,updateConfig:o.a.func.isRequired,handleFormEvent:o.a.func.isRequired,validationState:o.a.func.isRequired,validationMessage:o.a.func.isRequired});var wt=Ct;function Ot(e){return(Ot="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 Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e,t){for(var n=0;n0&&jn.purgeKey(e.props.table,e.state.purgeKey)})),Rn(Pn(e),"_onPurgeAll",(function(t){t.preventDefault(),jn.purgeAll(e.props.table)})),Rn(Pn(e),"_lookupKey",(function(t){t.preventDefault(),jn.lookup(e.props.table.name,e.state.lookupKey).then((function(t){e.setState({lookupResult:t})}))})),e}return t=o,(n=[{key:"render",value:function(){return i.a.createElement(L.L,{className:"content"},i.a.createElement(L.j,{md:6},i.a.createElement("h2",null,this.props.table.title),i.a.createElement("p",null,this.props.table.description),i.a.createElement("dl",null,i.a.createElement("dt",null,"Data adapter"),i.a.createElement("dd",null,i.a.createElement(Kt.a,{to:Vt.a.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.show(this.props.dataAdapter.name)},this.props.dataAdapter.title)),i.a.createElement("dt",null,"Cache"),i.a.createElement("dd",null,i.a.createElement(Kt.a,{to:Vt.a.SYSTEM.LOOKUPTABLES.CACHES.show(this.props.cache.name)},this.props.cache.title))),i.a.createElement(Kt.b,{to:Vt.a.SYSTEM.LOOKUPTABLES.edit(this.props.table.name)},i.a.createElement(L.e,{bsStyle:"success"},"Edit")),(this.props.table.default_single_value||this.props.table.default_multi_value)&&i.a.createElement("dl",null,i.a.createElement("dt",null,"Default single value"),i.a.createElement("dd",null,i.a.createElement("code",null,this.props.table.default_single_value)," ","(",this.props.table.default_single_value_type.toLowerCase(),")"),i.a.createElement("dt",null,"Default multi value"),i.a.createElement("dd",null,i.a.createElement("code",null,this.props.table.default_multi_value)," ","(",this.props.table.default_multi_value_type.toLowerCase(),")")),i.a.createElement("hr",null),i.a.createElement("h2",null,"Purge Cache"),i.a.createElement("p",null,"You can purge the complete cache for this lookup table or only the cache entry for a single key."),i.a.createElement("form",{onSubmit:this._onPurgeKey},i.a.createElement("fieldset",null,i.a.createElement(u.d,{type:"text",id:"purge-key",name:"purge-key",label:"Key",onChange:this._onChangePurgeKey,help:"Key to purge from cache",required:!0,value:this.state.purgeKey}),i.a.createElement(L.g,null,i.a.createElement(L.e,{type:"submit",bsStyle:"success"},"Purge key"),i.a.createElement(L.e,{type:"button",bsStyle:"info",onClick:this._onPurgeAll},"Purge all"))))),i.a.createElement(L.j,{md:6},i.a.createElement("h2",null,"Test lookup"),i.a.createElement("p",null,"You can manually query the lookup table using this form. The data will be cached as configured by Graylog."),i.a.createElement("form",{onSubmit:this._lookupKey},i.a.createElement("fieldset",null,i.a.createElement(u.d,{type:"text",id:"key",name:"key",label:"Key",required:!0,onChange:this._onChange,help:"Key to look up a value for.",value:this.state.lookupKey}),i.a.createElement(L.e,{type:"submit",bsStyle:"success"},"Look up"))),this.state.lookupResult&&i.a.createElement("div",null,i.a.createElement("h4",null,"Lookup result"),i.a.createElement("pre",null,JSON.stringify(this.state.lookupResult,null,2)))))}}])&&wn(t.prototype,n),a&&wn(t,a),o}(i.a.Component);Rn(Nn,"propTypes",{table:o.a.object.isRequired,cache:o.a.object.isRequired,dataAdapter:o.a.object.isRequired});var xn=Nn,Ln=n("nHcjWeCO"),Bn=n.n(Ln);function Dn(e){return(Dn="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 qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function In(e,t){for(var n=0;n0){var m=c[0];f=m.displayName,s=i.a.createElement(m.formComponent,{config:t.config,handleFormEvent:this._onConfigChange,updateConfig:this._updateConfig,validationMessage:this._validationMessage,validationState:this._validationState}),m.documentationComponent&&(p=i.a.createElement(m.documentationComponent))}var d=null,h=8;return p&&(h=6,d=i.a.createElement(L.j,{lg:h},p)),i.a.createElement(i.a.Fragment,null,this._renderTitle(l,f,r),i.a.createElement(L.L,null,i.a.createElement(L.j,{lg:h},i.a.createElement("form",{className:"form form-horizontal",onSubmit:this._save},i.a.createElement("fieldset",null,i.a.createElement(u.d,{type:"text",id:"title",name:"title",label:"Title",autoFocus:!0,required:!0,onChange:this._onChange,help:"A short title for this cache.",value:t.title,ref:function(t){e._input=t},labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}),i.a.createElement(u.d,{type:"text",id:"description",name:"description",label:"Description",onChange:this._onChange,help:"Cache description.",value:t.description,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}),i.a.createElement(u.d,{type:"text",id:"name",name:"name",label:"Name",required:!0,onChange:this._onChange,help:this._validationMessage("name","The name that is being used to refer to this cache. Must be unique."),bsStyle:this._validationState("name"),value:t.name,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"})),s,i.a.createElement("fieldset",null,i.a.createElement(L.L,null,i.a.createElement(L.j,{mdOffset:3,md:9},i.a.createElement(L.e,{type:"submit",bsStyle:"success"},r?"Create Cache":"Update Cache")))))),d))}}])&&Ba(t.prototype,n),r&&Ba(t,r),l}(i.a.Component);Fa(Va,"propTypes",{type:o.a.string.isRequired,saved:o.a.func.isRequired,title:o.a.string.isRequired,create:o.a.bool,cache:o.a.object,validate:o.a.func,validationErrors:o.a.object}),Fa(Va,"defaultProps",{create:!0,cache:{id:void 0,title:"",description:"",name:"",config:{}},validate:null,validationErrors:{}});var Ja=Va,Ya=n("8FtKQWAV"),Ha=n.n(Ya);function za(e){return(za="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 Wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ga(e,t){for(var n=0;n0){var y=f[0];h=y.displayName,m=i.a.createElement(y.formComponent,{config:n.config,handleFormEvent:this._onConfigChange,updateConfig:this._updateConfig,validationMessage:this._validationMessage,validationState:this._validationState,setDisableFormSubmission:this._setIsFormDisabled}),y.documentationComponent&&(d=i.a.createElement(y.documentationComponent,{dataAdapterId:n.id}))}var b=null,v=8;return d&&(v=6,b=i.a.createElement(L.j,{lg:v},d)),i.a.createElement(i.a.Fragment,null,this._renderTitle(p,h,l),i.a.createElement(L.L,null,i.a.createElement(L.j,{lg:v},i.a.createElement("form",{className:"form form-horizontal",onSubmit:this._save},i.a.createElement("fieldset",null,i.a.createElement(u.d,{type:"text",id:"title",name:"title",label:"Title",autoFocus:!0,required:!0,onChange:this._onChange,help:"A short title for this data adapter.",value:n.title,labelClassName:"col-sm-3",ref:function(t){e._input=t},wrapperClassName:"col-sm-9"}),i.a.createElement(u.d,{type:"text",id:"description",name:"description",label:"Description",onChange:this._onChange,help:"Data adapter description.",value:n.description,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"}),i.a.createElement(u.d,{type:"text",id:"name",name:"name",label:"Name",required:!0,onChange:this._onChange,help:this._validationMessage("name","The name that is being used to refer to this data adapter. Must be unique."),value:n.name,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",bsStyle:this._validationState("name")}),i.a.createElement(s.gb,{label:"Custom Error TTL",help:"Define a custom TTL for caching erroneous results. Otherwise the default of 5 seconds is used",update:this.updateCustomErrorTTL,value:n.custom_error_ttl,unit:n.custom_error_ttl_unit||"MINUTES",units:["MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"],enabled:n.custom_error_ttl_enabled,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"})),m,i.a.createElement("fieldset",null,i.a.createElement(L.L,null,i.a.createElement(L.j,{mdOffset:3,md:9},i.a.createElement(L.e,{type:"submit",bsStyle:"success",disabled:r},l?"Create Adapter":"Update Adapter")))))),b))}}])&&ro(t.prototype,n),r&&ro(t,r),l}(i.a.Component);so(fo,"propTypes",{type:o.a.string.isRequired,title:o.a.string.isRequired,saved:o.a.func.isRequired,create:o.a.bool,dataAdapter:o.a.object,validate:o.a.func,validationErrors:o.a.object}),so(fo,"defaultProps",{create:!0,dataAdapter:{id:void 0,title:"",description:"",name:"",custom_error_ttl_enabled:!1,custom_error_ttl:null,custom_error_ttl_unit:null,config:{}},validate:null,validationErrors:{}});var mo=fo;function ho(e){return(ho="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 yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e,t){for(var n=0;n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy