/
IndicesPage.tsx
76 lines (68 loc) · 2.47 KB
/
IndicesPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
import React from 'react';
import { LinkContainer } from 'components/common/router';
import Routes from 'routing/Routes';
import { Col, Row, Button } from 'components/bootstrap';
import HideOnCloud from 'util/conditional/HideOnCloud';
import DocsHelper from 'util/DocsHelper';
import { DocumentTitle, IfPermitted, PageHeader } from 'components/common';
import { DocumentationLink } from 'components/support';
import { IndexSetsComponent } from 'components/indices';
import { IndexerClusterHealth } from 'components/indexers';
const IndicesPage = () => {
const pageHeader = (
<PageHeader title="Indices & Index Sets">
<span>
A Graylog stream write messages to an index set, which is a configuration for retention, sharding, and
replication of the stored data.
By configuring index sets, you could, for example, have different retention times for certain streams.
</span>
<span>
You can learn more about the index model in the{' '}
<DocumentationLink page={DocsHelper.PAGES.INDEX_MODEL} text="documentation" />
</span>
<span>
<LinkContainer to={Routes.SYSTEM.INDEX_SETS.CREATE}>
<Button bsStyle="success" bsSize="lg">Create index set</Button>
</LinkContainer>
</span>
</PageHeader>
);
return (
<DocumentTitle title="Indices and Index Sets">
<span>
{pageHeader}
<HideOnCloud>
<IfPermitted permissions="indexercluster:read">
<Row className="content">
<Col md={12}>
<IndexerClusterHealth minimal />
</Col>
</Row>
</IfPermitted>
</HideOnCloud>
<Row className="content">
<Col md={12}>
<IndexSetsComponent />
</Col>
</Row>
</span>
</DocumentTitle>
);
};
export default IndicesPage;