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

web-interface.assets.325e2d4b-2870.66dafa3dc54ddf8321c5.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["325e2d4b-2870"],{pLLmkYy5:(e,t,o)=>{o.d(t,{Z:()=>g});var i=o("Z7aTuO5B"),s=o("J6y4/h8P"),a=o("F9olzlTR"),r=o("EeAwn/0x"),n=o("0zTRKSqx"),l=o("XR6lEGGZ");const c=(0,s.default)(a.Si).withConfig({displayName:"PageNavigation__Container",componentId:"sc-1if5i40-0"})(["margin-bottom:10px;"]),u=(0,s.default)(a.zx).withConfig({displayName:"PageNavigation__StyledButton",componentId:"sc-1if5i40-1"})((e=>{let{theme:t}=e;return(0,s.css)(["font-family:",";font-size:",";&&&&{color:",";:hover,:focus{text-decoration:none;}:hover{","}&.active{color:",";"," :hover,:focus{","}}}"],t.fonts.family.navigation,t.fonts.size.navigation,t.colors.variant.darker.default,(0,l.RF)(t),t.colors.global.textDefault,(0,l.A7)(t),(0,l.A7)(t))}));u.displayName="Button";const g=e=>{let{items:t}=e;return i.createElement(c,null,t.map((e=>{let{path:t,title:o,permissions:s,exactPathMatch:a}=e;return t?i.createElement(n.AE,{permissions:null!=s?s:[],key:t},i.createElement(r.J,{to:t,relativeActive:!a},i.createElement(u,{bsStyle:"link"},i.createElement(l.ZP,null,o)))):null})))}},b76tcxG5:(e,t,o)=>{o.d(t,{Z:()=>l});var i=o("Z7aTuO5B"),s=o("pLLmkYy5"),a=o("DeVaSktS"),r=o("F9olzlTR");const n=[{title:"Overview",path:a.ZP.SYSTEM.SIDECARS.OVERVIEW,exactPathMatch:!0},{title:"Administration",path:a.ZP.SYSTEM.SIDECARS.ADMINISTRATION},{title:"Configuration",path:a.ZP.SYSTEM.SIDECARS.CONFIGURATION}],l=()=>i.createElement(r.X2,null,i.createElement(s.Z,{items:n}))},NVA6hUPo:(e,t,o)=>{o.d(t,{Z:()=>h,m:()=>d});var i=o("JnTtTRmZ"),s=o.n(i),a=o("oCSEoDew"),r=o.n(a),n=o("nHcjWeCO"),l=o.n(n),c=o("0wQfx7YJ"),u=o("4af3+9mh"),g=o("OqsMdpSm"),p=o("xc00RsLr");const h=(0,p.ei)("core.CollectorConfigurations",(()=>s().createActions({all:{asyncResult:!0},list:{asyncResult:!0},listUploads:{asyncResult:!0},getConfiguration:{asyncResult:!0},getConfigurationSidecars:{asyncResult:!0},getUploads:{asyncResult:!0},createConfiguration:{asyncResult:!0},updateConfiguration:{asyncResult:!0},renderPreview:{asyncResult:!0},copyConfiguration:{asyncResult:!0},delete:{asyncResult:!0},validate:{asyncResult:!0}}))),d=(0,p.dS)("core.CollectorConfigurations",(()=>s().createStore({listenables:[h],sourceUrl:"/sidecar",configurations:void 0,pagination:{page:void 0,pageSize:void 0,total:void 0},total:void 0,paginatedConfigurations:void 0,query:void 0,propagateChanges(){this.trigger({configurations:this.configurations,query:this.query,total:this.total,pagination:this.pagination,paginatedConfigurations:this.paginatedConfigurations})},_fetchConfigurations(e){let{query:t,page:o,pageSize:i}=e;const s=`${this.sourceUrl}/configurations`,a={query:t,page:o,per_page:i},n=r()(s).search(a).toString();return(0,g.ZP)("GET",c.DC(n))},_fetchUploads(e){let{page:t}=e;const o=`${this.sourceUrl}/configurations/uploads`,i={page:t},s=r()(o).search(i).toString();return(0,g.ZP)("GET",c.DC(s))},all(){const e=this._fetchConfigurations({pageSize:0});e.then((e=>(this.configurations=e.configurations,this.propagateChanges(),e.configurations)),(e=>{u.Z.error(`Fetching collector configurations failed with status: ${e}`,"Could not retrieve configurations")})),h.all.promise(e)},list(e){let{query:t="",page:o=1,pageSize:i=10}=e;const s=this._fetchConfigurations({query:t,page:o,pageSize:i});s.then((e=>(this.query=e.query,this.pagination={page:e.pagination.page,pageSize:e.pagination.per_page,total:e.pagination.total},this.total=e.total,this.paginatedConfigurations=e.configurations,this.propagateChanges(),e.configurations)),(e=>{u.Z.error(`Fetching collector configurations failed with status: ${e}`,"Could not retrieve configurations")})),h.list.promise(s)},listUploads(e){let{page:t=1}=e;const o=this._fetchUploads({page:t});o.catch((e=>{u.Z.error(`Fetching configuration uploads failed with status: ${e}`,"Could not retrieve configurations")})),h.listUploads.promise(o)},refreshList(){this.list({query:this.query,page:this.page,pageSize:this.pageSize})},getConfiguration(e){const t=(0,g.ZP)("GET",c.DC(`${this.sourceUrl}/configurations/${e}`));t.catch((t=>{let o=`Fetching Configuration failed with status: ${t}`;404===t.status&&(o=`Unable to find a Configuration with ID <${e}>, please ensure it was not deleted.`),u.Z.error(o,"Could not retrieve Configuration")})),h.getConfiguration.promise(t)},getConfigurationSidecars(e){const t=(0,g.ZP)("GET",c.DC(`${this.sourceUrl}/configurations/${e}/sidecars`));t.catch((t=>{let o=`Fetching Configuration failed with status: ${t}`;404===t.status&&(o=`Unable to find a Configuration with ID <${e}>, please ensure it was not deleted.`),u.Z.error(o,"Could not retrieve Configuration")})),h.getConfigurationSidecars.promise(t)},renderPreview(e){const t={template:e},o=(0,g.ZP)("POST",c.DC(`${this.sourceUrl}/configurations/render/preview`),t);o.catch((e=>{u.Z.error(`Fetching configuration preview failed with status: ${e}`,"Could not retrieve preview")})),h.renderPreview.promise(o)},createConfiguration(e){const t=c.DC(`${this.sourceUrl}/configurations`),o=(0,g.ZP)("POST",t,e);o.then((e=>(u.Z.success("","Configuration successfully created"),e)),(e=>{u.Z.error(400===e.status?e.responseMessage:`Creating configuration failed with status: ${e.message}`,"Could not save configuration")})),h.createConfiguration.promise(o)},updateConfiguration(e){const t=c.DC(`${this.sourceUrl}/configurations/${e.id}`),o=(0,g.ZP)("PUT",t,e);o.then((e=>(u.Z.success("","Configuration successfully updated"),this.refreshList(),e)),(t=>{u.Z.error(`Updating Configuration failed: ${400===t.status?t.responseMessage:t.message}`,`Could not update Configuration ${e.name}`)})),h.updateConfiguration.promise(o)},copyConfiguration(e,t){const o=c.DC(`${this.sourceUrl}/configurations/${e}/${t}`),i=(0,g.ZP)("POST",o);i.then((e=>(u.Z.success("",`Configuration "${t}" successfully copied`),this.refreshList(),e)),(e=>{u.Z.error(`Saving configuration "${t}" failed with status: ${e.message}`,"Could not save Configuration")})),h.copyConfiguration.promise(i)},delete(e){const t=c.DC(`${this.sourceUrl}/configurations/${e.id}`),o=(0,g.ZP)("DELETE",t);o.then((t=>(u.Z.success("",`Configuration "${e.name}" successfully deleted`),this.refreshList(),t)),(t=>{u.Z.error(`Deleting Configuration failed: ${400===t.status?t.responseMessage:t.message}`,`Could not delete Configuration ${e.name}`)})),h.delete.promise(o)},validate(e){const t={name:" ",collector_id:" ",color:" ",template:" "};l().merge(t,e);const o=(0,g.ZP)("POST",c.DC(`${this.sourceUrl}/configurations/validate`),t);o.then((e=>e),(e=>u.Z.error(`Validating configuration "${t.name}" failed with status: ${e.message}`,"Could not validate configuration"))),h.validate.promise(o)}})))},"dfn/QTgc":(e,t,o)=>{o.d(t,{d:()=>d,v:()=>h});var i=o("JnTtTRmZ"),s=o.n(i),a=o("oCSEoDew"),r=o.n(a),n=o("nHcjWeCO"),l=o.n(n),c=o("0wQfx7YJ"),u=o("OqsMdpSm"),g=o("4af3+9mh"),p=o("xc00RsLr");const h=(0,p.ei)("core.Collectors",(()=>s().createActions({getCollector:{asyncResult:!0},all:{asyncResult:!0},list:{asyncResult:!0},create:{asyncResult:!0},update:{asyncResult:!0},delete:{asyncResult:!0},copy:{asyncResult:!0},validate:{asyncResult:!0}}))),d=(0,p.dS)("core.Collectors",(()=>s().createStore({listenables:[h],sourceUrl:"/sidecar",collectors:void 0,query:void 0,pagination:{page:void 0,pageSize:void 0,total:void 0},total:void 0,paginatedCollectors:void 0,getInitialState(){return{collectors:this.collectors}},propagateChanges(){this.trigger({collectors:this.collectors,paginatedCollectors:this.paginatedCollectors,query:this.query,total:this.total,pagination:this.pagination})},getCollector(e){const t=(0,u.ZP)("GET",c.DC(`${this.sourceUrl}/collectors/${e}`));t.catch((t=>{let o=`Fetching Collector failed with status: ${t}`;404===t.status&&(o=`Unable to find a collector with ID <${e}>, please ensure it was not deleted.`),g.Z.error(o,"Could not retrieve Collector")})),h.getCollector.promise(t)},_fetchCollectors(e){let{query:t,page:o,pageSize:i}=e;const s={query:t,page:o,per_page:i},a=r()(`${this.sourceUrl}/collectors/summary`).search(s).toString();return(0,u.ZP)("GET",c.DC(a))},all(){const e=this._fetchCollectors({pageSize:0});e.then((e=>(this.collectors=e.collectors,this.propagateChanges(),e.collectors)),(e=>{g.Z.error(`Fetching collectors failed with status: ${e}`,"Could not retrieve collectors")})),h.all.promise(e)},list(e){let{query:t="",page:o=1,pageSize:i=10}=e;const s=this._fetchCollectors({query:t,page:o,pageSize:i});s.then((e=>(this.query=e.query,this.pagination={page:e.pagination.page,pageSize:e.pagination.per_page,total:e.pagination.total},this.total=e.total,this.paginatedCollectors=e.collectors,this.propagateChanges(),e.collectors)),(e=>{g.Z.error(`Fetching collectors failed with status: ${e}`,"Could not retrieve collectors")})),h.list.promise(s)},refreshList(){this.list({query:this.query,page:this.pagination.page,pageSize:this.pagination.pageSize})},create(e){const t=(0,u.ZP)("POST",c.DC(`${this.sourceUrl}/collectors`),e);t.then((e=>(g.Z.success("","Collector successfully created"),this.collectors=e.collectors,this.propagateChanges(),this.collectors)),(e=>{g.Z.error(`Fetching collectors failed with status: ${e}`,"Could not retrieve collectors")})),h.create.promise(t)},update(e){const t=(0,u.ZP)("PUT",c.DC(`${this.sourceUrl}/collectors/${e.id}`),e);t.then((e=>(g.Z.success("","Collector successfully updated"),this.collectors=e.collectors,this.propagateChanges(),this.collectors)),(e=>{g.Z.error(`Fetching collectors failed with status: ${e}`,"Could not retrieve collectors")})),h.update.promise(t)},delete(e){const t=c.DC(`${this.sourceUrl}/collectors/${e.id}`),o=(0,u.ZP)("DELETE",t);o.then((t=>(g.Z.success("",`Collector "${e.name}" successfully deleted`),this.refreshList(),t)),(t=>{g.Z.error(`Deleting Collector failed: ${400===t.status?t.responseMessage:t.message}`,`Could not delete Collector "${e.name}"`)})),h.delete.promise(o)},copy(e,t){const o=c.DC(`${this.sourceUrl}/collectors/${e}/${t}`),i=(0,u.ZP)("POST",o);i.then((e=>(g.Z.success("",`Collector "${t}" successfully copied`),this.refreshList(),e)),(e=>{g.Z.error(`Saving collector "${t}" failed with status: ${e.message}`,"Could not save Collector")})),h.copy.promise(i)},validate(e){const t={id:" ",service_type:"exec",executable_path:" ",default_template:" "};l().merge(t,e);const o=(0,u.ZP)("POST",c.DC(`${this.sourceUrl}/collectors/validate`),t);o.then((e=>e),(e=>g.Z.error(`Validating collector "${t.name}" failed with status: ${e.message}`,"Could not validate collector"))),h.validate.promise(o)}})))}}]);
//# sourceMappingURL=325e2d4b-2870.66dafa3dc54ddf8321c5.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy