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

web-interface.assets.d5f85445-9.a49ba8ace624afae35ed.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["d5f85445-9"],{"5YwkyBYR":function(e,t,n){"use strict";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("oBIKikY9");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);v(E,"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=E;function _(e){return(_="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){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.O,{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"}))}}])&&rt(t.prototype,n),a&&rt(t,a),o}(i.a.Component);ut(st,"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 pt=st;function ft(e){return(ft="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 mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n0&&pn.purgeKey(e.props.table,e.state.purgeKey)})),sn(cn(e),"_onPurgeAll",(function(t){t.preventDefault(),pn.purgeAll(e.props.table)})),sn(cn(e),"_lookupKey",(function(t){t.preventDefault(),pn.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(N.I,{className:"content"},i.a.createElement(N.h,{md:6},i.a.createElement("h2",null,this.props.table.title,i.a.createElement(s.e,{contentPack:this.props.table.content_pack,marginLeft:5})),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(jt.Link,{to:Pt.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(jt.Link,{to:Pt.a.SYSTEM.LOOKUPTABLES.CACHES.show(this.props.cache.name)},this.props.cache.title))),i.a.createElement(kt.LinkContainer,{to:Pt.a.SYSTEM.LOOKUPTABLES.edit(this.props.table.name)},i.a.createElement(N.c,{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(N.e,null,i.a.createElement(N.c,{type:"submit",bsStyle:"success"},"Purge key"),i.a.createElement(N.c,{type:"button",bsStyle:"info",onClick:this._onPurgeAll},"Purge all"))))),i.a.createElement(N.h,{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(N.c,{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)))))}}])&&rn(t.prototype,n),a&&rn(t,a),o}(i.a.Component);sn(fn,"propTypes",{table:o.a.object.isRequired,cache:o.a.object.isRequired,dataAdapter:o.a.object.isRequired});var mn=fn,dn=n("nHcjWeCO"),hn=n.n(dn);function yn(e){return(yn="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 bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(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(N.h,{lg:h},p)),i.a.createElement(i.a.Fragment,null,this._renderTitle(l,f,r),i.a.createElement(N.I,null,i.a.createElement(N.h,{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(N.I,null,i.a.createElement(N.h,{mdOffset:3,md:9},i.a.createElement(N.c,{type:"submit",bsStyle:"success"},r?"Create Cache":"Update Cache")))))),d))}}])&&fa(t.prototype,n),r&&fa(t,r),l}(i.a.Component);ba(Ea,"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}),ba(Ea,"defaultProps",{create:!0,cache:{id:void 0,title:"",description:"",name:"",config:{}},validate:null,validationErrors:{}});var ga=Ea,_a=n("8FtKQWAV"),Sa=n.n(_a);function wa(e){return(wa="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 Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ta(e,t){for(var n=0;n0){var d=c[0];m=d.displayName,p=i.a.createElement(d.formComponent,{config:t.config,handleFormEvent:this._onConfigChange,updateConfig:this._updateConfig,validationMessage:this._validationMessage,validationState:this._validationState}),d.documentationComponent&&(f=i.a.createElement(d.documentationComponent,{dataAdapterId:t.id}))}var h=null,y=8;return f&&(y=6,h=i.a.createElement(N.h,{lg:y},f)),i.a.createElement(i.a.Fragment,null,this._renderTitle(l,m,r),i.a.createElement(N.I,null,i.a.createElement(N.h,{lg:y},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:t.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: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 data adapter. Must be unique."),value:t.name,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",bsStyle:this._validationState("name")}),i.a.createElement(s.O,{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:t.custom_error_ttl,unit:t.custom_error_ttl_unit||"MINUTES",units:["MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"],enabled:t.custom_error_ttl_enabled,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9"})),p,i.a.createElement("fieldset",null,i.a.createElement(N.I,null,i.a.createElement(N.h,{mdOffset:3,md:9},i.a.createElement(N.c,{type:"submit",bsStyle:"success"},r?"Create Adapter":"Update Adapter")))))),h))}}])&&jr(t.prototype,n),r&&jr(t,r),l}(i.a.Component);Lr(Ir,"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}),Lr(Ir,"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 Mr=Ir;function Br(e){return(Br="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 Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(e,t){for(var n=0;n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy