web-interface.assets.bb8c8232-9241.9646796dfd82d485052f.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-9241"],{nW7dT6Lb:(x,i,t)=>{t.r(i),t.d(i,{default:()=>g});var e=t("Z7aTuO5B"),C=t("ii0bleBb"),o=t.n(C),_=t("rIl5IEuP"),s=t("IOI9nV80"),l=t("Zr9SSA9t"),I=t("E+CaPsQD"),d=t("d4kzUuQm"),m=t("8fnsnG21"),D=t("PhRf2fIG"),r=t("vJyCiK5D"),O=t("6bzBY7Xo"),T=t("IZYxBTgT"),c=t("/7OuCFNo"),M=t("8OvTct/Z"),S=t("v4GbOr/o");const E=({retentionStrategies:a,rotationStrategies:n,retentionStrategiesContext:A})=>{const L=(0,c.A)(),v=(0,M.A)();(0,e.useEffect)(()=>{r.Z.loadRotationStrategies(),r.Z.loadRetentionStrategies()},[]);const R=u=>{v(S.g.INDICES.INDEX_SET_CREATED,{app_pathname:"indexsets"});const P=u;return P.creation_date=(0,T.to)(new Date,"internal"),D.pG.create(P).then(()=>{L.push(d.Ay.SYSTEM.INDICES.LIST)})};return!n||!a?e.createElement(s.y$,null):e.createElement(s.Qc,{title:"Create Index Set"},e.createElement(l.TC,null),e.createElement("div",null,e.createElement(s.zY,{title:"Create Index Set",documentationLink:{title:"Index model documentation",path:I.A.PAGES.INDEX_MODEL}},e.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.")),e.createElement(_.Row,{className:"content"},e.createElement(_.Col,{md:12},e.createElement(l.Rp,{retentionStrategiesContext:A,rotationStrategies:n,retentionStrategies:a,submitButtonText:"Create index set",submitLoadingText:"Creating index set...",create:!0,cancelLink:d.Ay.SYSTEM.INDICES.LIST,onUpdate:R})))))};E.propTypes={retentionStrategies:o().arrayOf(O.Pd),rotationStrategies:o().arrayOf(O.V$),retentionStrategiesContext:o().shape({max_index_retention_period:o().string})},E.defaultProps={retentionStrategies:void 0,rotationStrategies:void 0,retentionStrategiesContext:{max_index_retention_period:void 0}};const g=(0,m.A)(E,{indexSets:D.zE,indicesConfigurations:r.X},({indexSets:a,indicesConfigurations:n})=>({indexSet:a.indexSet,rotationStrategies:n.rotationStrategies,retentionStrategies:n.retentionStrategies,retentionStrategiesContext:n.retentionStrategiesContext}))}}]);})();
//# sourceMappingURL=bb8c8232-9241.9646796dfd82d485052f.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy