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

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

There is a newer version: 6.0.6
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["d5f85445-82"],{"mEiGM7E/":function(e,t,r){"use strict";r.r(t);var a=r("ii0bleBb"),n=r.n(a),o=r("ivGQtwpr"),i=r.n(o),s=r("PcYM+wZ7"),c=r.n(s),l=r("4KF7VOU5"),p=r.n(l),u=r("oBIKikY9"),m=r("qoq4u5Uq"),d=r("B4BR5PLd"),E=r("dkQTzQ9h"),x=r("JBQWIv26"),g=r("1VnJesae"),h=x.a.getActions("Extractors"),f=g.a.getStore("Extractors"),y=c()({displayName:"ExportExtractors",propTypes:{input:n.a.object.isRequired},mixins:[p.a.connect(f),p.a.ListenerMethods],componentDidMount:function(){h.list.triggerPromise(this.props.input.id)},_isLoading:function(){return!this.state.extractors},render:function(){if(this._isLoading())return i.a.createElement(u.L,null);var e={extractors:this.state.extractors.map((function(e){var t={};return Object.keys(e).forEach((function(r){switch(r){case"type":t.extractor_type=e[r];break;case"id":case"metrics":case"creator_user_id":case"exceptions":case"converter_exceptions":break;default:t[r]=e[r]}})),t})),version:E.a.getFullVersion()},t=JSON.stringify(e,null,2);return i.a.createElement(m.I,{className:"content"},i.a.createElement(m.h,{md:12},i.a.createElement(m.I,null,i.a.createElement(m.h,{md:8},i.a.createElement("h2",null,"Extractors JSON")),i.a.createElement(m.h,{md:4},i.a.createElement(u.a,{title:"Copy extractors",className:"pull-right",target:"#extractor-export-textarea"}))),i.a.createElement(m.I,null,i.a.createElement(m.h,{md:12},i.a.createElement(d.d,{type:"textarea",id:"extractor-export-textarea",rows:30,defaultValue:t})))))}}),b=x.a.getActions("Inputs"),k=g.a.getStore("Inputs"),v=c()({displayName:"ExportExtractorsPage",propTypes:{params:n.a.object.isRequired},mixins:[p.a.connect(k)],componentDidMount:function(){var e=this.props.params;b.get.triggerPromise(e.inputId)},_isLoading:function(){return!this.state.input},render:function(){if(this._isLoading())return i.a.createElement(u.L,null);var e=this.state.input;return i.a.createElement(u.i,{title:"Export extractors of ".concat(e.title)},i.a.createElement("div",null,i.a.createElement(u.A,{title:i.a.createElement("span",null,"Export extractors of ",i.a.createElement("em",null,e.title))},i.a.createElement("span",null,"The extractors of an input can be exported to JSON for importing into other setups or sharing in ",i.a.createElement("a",{href:"https://marketplace.graylog.org/",rel:"noopener noreferrer",target:"_blank"},"the Graylog Marketplace"),".")),i.a.createElement(y,{input:e})))}});t.default=v}}]);
//# sourceMappingURL=d5f85445-82.a49ba8ace624afae35ed.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy