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

web-interface.assets.NewDashboardPage.5e7c1df97fbfe6f95906.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([["bb8c8232-4324"],{iPvR7dhw:(B,o,e)=>{e.d(o,{A:()=>n});var r=e("Z7aTuO5B"),l=e("g2NQZb9A");const n=u=>(0,r.useMemo)(()=>u.then(async d=>(await(0,l.A)(d.search),d)),[u])},NEG5q9sE:(B,o,e)=>{e.d(o,{A:()=>d});var r=e("gbXdylj1"),l=e("UmnljV2q"),a=e("dcP8FKpJ"),n=e("/coHI+Jz"),u=e("ZJjLtB2e");const d=async({type:v,streamId:h,timeRange:m,queryString:A,parameters:P})=>{const g=(0,u.A)(h,void 0,m,A),M=n.A.create().toBuilder().queries([g]).parameters(P).build(),t=await(0,a.A)(v,h),i=l.A.create().toBuilder().newId().type(v).state({[g.id]:t}).search(M).build();return(0,r.A)(i)}},"9/bZdhqf":(B,o,e)=>{e.r(o),e.d(o,{default:()=>M});var r=e("Z7aTuO5B"),l=e("0t7Ye+61"),a=e("VPaD/Np4"),n=e("UmnljV2q");const d=t=>{const i=(0,a.Map)(t.search.queries.map(s=>[s.id,s])),E=(t.state||(0,a.Map)()).map((s,T)=>{const{timerange:w,query:L,filter:O=(0,a.Map)()}=i.get(T),f=(O?O.get("filters",(0,a.List)()):(0,a.List)()).filter(c=>a.Map.isMap(c)&&c.get("type")==="stream").map(c=>c.get("id")).toList().toArray(),C=s.widgets.map(c=>c.toBuilder().timerange(w).query(L).streams(f).build()).toList();return s.toBuilder().widgets(C).build()}).toMap(),D=t.search.queries.map(s=>s.toBuilder().query({...s.query,query_string:""}).build()).toSet(),y=t.search.toBuilder().queries(D).build();return t.toBuilder().newId().type(n.A.Type.Dashboard).state(E).search(y).build()};var v=e("IOI9nV80"),h=e("NEG5q9sE"),m=e("iPvR7dhw"),A=e("gbXdylj1"),P=e("MDn/VShH");const M=()=>{var t;const i=(0,l.A)(),E=(t=i==null?void 0:i.state)==null?void 0:t.view,D=(0,r.useMemo)(()=>E!=null&&E.search?Promise.resolve((0,A.A)(d(E))):(0,h.A)({type:n.A.Type.Dashboard}),[]),y=(0,m.A)(D);return r.createElement(v.Wj,{permissions:"dashboards:create"},r.createElement(P.A,{view:y,isNew:!0}))}}}]);})();

//# sourceMappingURL=NewDashboardPage.5e7c1df97fbfe6f95906.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy