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

web-interface.assets.1255d548-2746.e82e5a9a4a0ad4696a95.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-2746"],{Sc4QlGNN:(F,m,e)=>{e.r(m),e.d(m,{default:()=>A});var n=e("Z7aTuO5B"),v=e("ii0bleBb"),r=e.n(v),S=e("9oVghaOd"),y=e.n(S),C=e("ty2gyrHp"),i=e("uZqmR+ju"),s=e("/GOzvPf6"),I=e("6Wzh2oiG"),E=e("E+CaPsQD"),d=e("d4kzUuQm"),D=e("8fnsnG21"),c=e("PhRf2fIG"),l=e("vJyCiK5D"),x=e("6bzBY7Xo"),h=e("IZYxBTgT"),T=e("DUKaTDO2"),p=e("jAGDuYSC"),Z=e("eFxcQyPT"),P=e("MdYBRjRJ"),O=e("U1Iufsob");const R=()=>(0,Z.ZP)("GET",(0,P.DC)(`${O.Z.ClusterConfigResource.config().url}/org.graylog2.configuration.IndexSetsDefaultConfiguration`)),L=()=>{const{data:a,isLoading:o}=(0,T.useQuery)(["index-defaults"],R,{onError:g=>{p.Z.error(`Error fetching index defaults: ${g.message}`)},retry:1});return{loadingIndexDefaultsConfig:o,indexDefaultsConfig:a}};var N=e("/7OuCFNo"),z=e("8OvTct/Z"),G=e("v4GbOr/o");const f=({retentionStrategies:a,rotationStrategies:o,retentionStrategiesContext:g})=>{const B=(0,N.Z)(),U=(0,z.Z)();(0,n.useEffect)(()=>{l.A.loadRotationStrategies(),l.A.loadRetentionStrategies()},[]);const Y=j=>{U(G.A.INDICES.INDEX_SET_CREATED,{app_pathname:"indexsets"});const u=j;return u.creation_date=(0,h.Od)(new Date,"internal"),c.p1.create(u).then(()=>{B.push(d.ZP.SYSTEM.INDICES.LIST)})},{loadingIndexDefaultsConfig:M,indexDefaultsConfig:t}=L();if((()=>!o||!a||M)())return n.createElement(s.$j,null);const Q={title:"",description:"",index_prefix:t.index_prefix,writable:!0,can_be_default:!0,shards:t.shards,replicas:t.replicas,rotation_strategy_class:t.rotation_strategy_class,rotation_strategy:t.rotation_strategy_config,retention_strategy_class:t.retention_strategy_class,retention_strategy:t.retention_strategy_config,index_analyzer:t.index_analyzer,index_optimization_max_num_segments:t.index_optimization_max_num_segments,index_optimization_disabled:t.index_optimization_disabled,field_type_refresh_interval:y().duration(t.field_type_refresh_interval,t.field_type_refresh_interval_unit).asMilliseconds()};return n.createElement(s.$4,{title:"Create Index Set"},n.createElement("div",null,n.createElement(s.mr,{title:"Create Index Set",documentationLink:{title:"Index model documentation",path:E.Z.PAGES.INDEX_MODEL},topActions:n.createElement(C.J,{to:d.ZP.SYSTEM.INDICES.LIST},n.createElement(i.Button,{bsStyle:"info"},"Index sets overview"))},n.createElement("span",null,"Create a new index set that will let you configure the retention, sharding, and replication of messages coming from one or more streams.")),n.createElement(i.Row,{className:"content"},n.createElement(i.Col,{md:12},n.createElement(I.r_,{indexSet:Q,retentionStrategiesContext:g,rotationStrategies:o,retentionStrategies:a,submitButtonText:"Create index set",submitLoadingText:"Creating index set...",create:!0,cancelLink:d.ZP.SYSTEM.INDICES.LIST,onUpdate:Y})))))};f.propTypes={retentionStrategies:r().arrayOf(x.Go),rotationStrategies:r().arrayOf(x.Oi),retentionStrategiesContext:r().shape({max_index_retention_period:r().string})},f.defaultProps={retentionStrategies:void 0,rotationStrategies:void 0,retentionStrategiesContext:{max_index_retention_period:void 0}};const A=(0,D.Z)(f,{indexSets:c.Fp,indicesConfigurations:l.X},({indexSets:a,indicesConfigurations:o})=>({indexSet:a.indexSet,rotationStrategies:o.rotationStrategies,retentionStrategies:o.retentionStrategies,retentionStrategiesContext:o.retentionStrategiesContext}))}}]);})();

//# sourceMappingURL=1255d548-2746.e82e5a9a4a0ad4696a95.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy