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

web-interface.assets.b999a7e7-87.9472d5d0a285679cf68d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/pages/IndexSetCreationPage.jsx"],"names":["CombinedProvider","get","IndexSetsStore","IndexSetsActions","IndicesConfigurationStore","IndicesConfigurationActions","IndexSetCreationPage","createReactClass","displayName","mixins","Reflux","connect","getInitialState","indexSet","title","description","index_prefix","writable","shards","replicas","retention_strategy_class","retention_strategy","max_number_of_indices","type","rotation_strategy_class","rotation_strategy","max_docs_per_index","index_analyzer","index_optimization_max_num_segments","index_optimization_disabled","field_type_refresh_interval","componentDidMount","loadRotationStrategies","loadRetentionStrategies","_saveConfiguration","copy","creation_date","DateTime","now","toISOString","create","then","history","push","Routes","SYSTEM","INDICES","LIST","_isLoading","this","state","rotationStrategies","retentionStrategies","render","page","DocsHelper","PAGES","INDEX_MODEL","text","to","bsStyle","className","md","cancelLink","onUpdate"],"mappings":"6GAAA,sP,EAgB6CA,IAAiBC,IAAI,aAA1DC,E,EAAAA,eAAgBC,E,EAAAA,iB,EAC2CH,IAAiBC,IAAI,wBAAhFG,E,EAAAA,0BAA2BC,E,EAAAA,4BAE7BC,EAAuBC,IAAiB,CAC5CC,YAAa,uBACbC,OAAQ,CAACC,IAAOC,QAAQT,GAAiBQ,IAAOC,QAAQP,IAExDQ,gBAJ4C,WAK1C,MAAO,CACLC,SAAU,CACRC,MAAO,GACPC,YAAa,GACbC,aAAc,GACdC,UAAU,EACVC,OAAQ,EACRC,SAAU,EACVC,yBAA0B,sEAC1BC,mBAAoB,CAClBC,sBAAuB,GACvBC,KAAM,6EAERC,wBAAyB,wEACzBC,kBAAmB,CACjBC,mBAAoB,IACpBH,KAAM,+EAERI,eAAgB,WAChBC,oCAAqC,EACrCC,6BAA6B,EAC7BC,4BAA6B,OAKnCC,kBA/B4C,WAgC1C1B,EAA4B2B,yBAC5B3B,EAA4B4B,2BAG9BC,mBApC4C,SAoCzBrB,GACjB,IAAMsB,EAAOtB,EACbsB,EAAKC,cAAgBC,IAASC,MAAMC,cACpCpC,EAAiBqC,OAAOL,GAAMM,MAAK,WACjCC,IAAQC,KAAKC,IAAOC,OAAOC,QAAQC,UAIvCC,WA5C4C,WA6C1C,OAAQC,KAAKC,MAAMC,qBAAuBF,KAAKC,MAAME,qBAGvDC,OAhD4C,WAiD1C,GAAIJ,KAAKD,aACP,OAAO,kBAAC,IAAD,MAFF,IAKCnC,EAAaoC,KAAKC,MAAlBrC,SAER,OACE,kBAAC,IAAD,CAAeC,MAAM,oBACnB,6BACE,kBAAC,IAAD,CAAYA,MAAM,oBAChB,0KAIA,gFACkD,IAChD,kBAAC,IAAD,CAAmBwC,KAAMC,IAAWC,MAAMC,YAAaC,KAAK,mBAE9D,8BACE,kBAAC,gBAAD,CAAeC,GAAIf,IAAOC,OAAOC,QAAQC,MACvC,kBAAC,IAAD,CAAQa,QAAQ,QAAhB,0BAKN,kBAAC,IAAD,CAAKC,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAA2BjD,SAAUA,EACVsC,mBAAoBF,KAAKC,MAAMC,mBAC/BC,oBAAqBH,KAAKC,MAAME,oBAChCZ,QAAM,EACNuB,WAAYnB,IAAOC,OAAOC,QAAQC,KAClCiB,SAAUf,KAAKf,4BASzC5B","file":"b999a7e7-87.9472d5d0a285679cf68d.js","sourcesContent":["import React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\nimport { LinkContainer } from 'react-router-bootstrap';\n\nimport { Row, Col, Button } from 'components/graylog';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm } from 'components/indices';\nimport { DocumentationLink } from 'components/support';\nimport DateTime from 'logic/datetimes/DateTime';\nimport history from 'util/History';\nimport DocsHelper from 'util/DocsHelper';\nimport Routes from 'routing/Routes';\n\nimport CombinedProvider from 'injection/CombinedProvider';\n\nconst { IndexSetsStore, IndexSetsActions } = CombinedProvider.get('IndexSets');\nconst { IndicesConfigurationStore, IndicesConfigurationActions } = CombinedProvider.get('IndicesConfiguration');\n\nconst IndexSetCreationPage = createReactClass({\n  displayName: 'IndexSetCreationPage',\n  mixins: [Reflux.connect(IndexSetsStore), Reflux.connect(IndicesConfigurationStore)],\n\n  getInitialState() {\n    return {\n      indexSet: {\n        title: '',\n        description: '',\n        index_prefix: '',\n        writable: true,\n        shards: 4,\n        replicas: 0,\n        retention_strategy_class: 'org.graylog2.indexer.retention.strategies.DeletionRetentionStrategy',\n        retention_strategy: {\n          max_number_of_indices: 20,\n          type: 'org.graylog2.indexer.retention.strategies.DeletionRetentionStrategyConfig',\n        },\n        rotation_strategy_class: 'org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategy',\n        rotation_strategy: {\n          max_docs_per_index: 20000000,\n          type: 'org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategyConfig',\n        },\n        index_analyzer: 'standard',\n        index_optimization_max_num_segments: 1,\n        index_optimization_disabled: false,\n        field_type_refresh_interval: 5 * 1000, // 5 seconds\n      },\n    };\n  },\n\n  componentDidMount() {\n    IndicesConfigurationActions.loadRotationStrategies();\n    IndicesConfigurationActions.loadRetentionStrategies();\n  },\n\n  _saveConfiguration(indexSet) {\n    const copy = indexSet;\n    copy.creation_date = DateTime.now().toISOString();\n    IndexSetsActions.create(copy).then(() => {\n      history.push(Routes.SYSTEM.INDICES.LIST);\n    });\n  },\n\n  _isLoading() {\n    return !this.state.rotationStrategies || !this.state.retentionStrategies;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { indexSet } = this.state;\n\n    return (\n      \n        
\n \n \n Create a new index set that will let you configure the retention, sharding, and replication of messages\n coming from one or more streams.\n \n \n You can learn more about the index model in the{' '}\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n
\n );\n },\n});\n\nexport default IndexSetCreationPage;\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy