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

web-interface.assets.StreamSearchPage.607140bad62f18c63627.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-517"],{iPvR7dhw:(i,e,_)=>{_.d(e,{Z:()=>o});var a=_("Z7aTuO5B"),t=_("g2NQZb9A");const o=s=>(0,a.useMemo)(()=>s.then(async E=>(await(0,t.Z)(E.search),E)),[s])},g8A9xjCU:(i,e,_)=>{_.d(e,{Z:()=>s});var a=_("Z7aTuO5B"),t=_("UmnljV2q"),r=_("NEG5q9sE");const s=({streamId:E,timeRange:P,queryString:c,parameters:D})=>(0,a.useMemo)(()=>(0,r.Z)({type:t.Z.Type.Search,streamId:E,timeRange:P,queryString:c,parameters:D}),[])},NEG5q9sE:(i,e,_)=>{_.d(e,{Z:()=>E});var a=_("gbXdylj1"),t=_("UmnljV2q"),r=_("dcP8FKpJ"),o=_("/coHI+Jz"),s=_("ZJjLtB2e");const E=async({type:P,streamId:c,timeRange:D,queryString:v,parameters:n})=>{const O=(0,s.Z)(c,void 0,D,v),M=o.Z.create().toBuilder().queries([O]).parameters(n).build(),d=await(0,r.Z)(P,c),C=t.Z.create().toBuilder().newId().type(P).state({[O.id]:d}).search(M).build();return(0,a.Z)(C)}},"21eHsCFI":(i,e,_)=>{_.r(e),_.d(e,{default:()=>v});var a=_("Z7aTuO5B"),t=_("g8A9xjCU"),r=_("AEcypqf3"),o=_("RhFA9EKs"),s=_("6dLKCZdN"),E=_("/7OuCFNo"),P=_("iPvR7dhw"),c=_("VcneZdh2");const v=()=>{const{streamId:n}=(0,s.Z)(),O=(0,E.Z)();if(!n)throw new Error("No stream id specified!");const{timeRange:M,queryString:d}=(0,o.k)(),C=(0,t.Z)({streamId:n,timeRange:M,queryString:d}),A=(0,P.Z)(C),l=(0,a.useCallback)(()=>(0,r.Dm)(O,n),[O,n]);return a.createElement(c.Z,{loadNewView:l,view:A,isNew:!0})}}}]);})();

//# sourceMappingURL=StreamSearchPage.607140bad62f18c63627.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy