mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
* Propagate datanode version through node service * Datanode version displayed in datanodes table * added changelog * lint error fixed * fixed lint errors * fixed nullable annotation import * Added datanode version to the detail page * Define datanode_version in types.ts * Provide datanode version during initial register in NodePingPeriodical * define datanode_version in preflight types.ts * fix tests --------- Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com> Co-authored-by: Mohamed Ould Hocine <mohamed.ould.hocine@graylog.com> Co-authored-by: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com>
62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
/*
|
|
* 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>.
|
|
*/
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const dataNodes = [
|
|
{
|
|
hostname: '192.168.0.10',
|
|
id: 'data-node-id-1',
|
|
is_leader: false,
|
|
is_master: false,
|
|
last_seen: '2020-01-10T10:40:00.000Z',
|
|
node_id: 'node-id-complete-1',
|
|
short_node_id: 'node-id-1',
|
|
transport_address: 'http://localhost:9200',
|
|
type: 'DATANODE',
|
|
status: 'UNCONFIGURED' as const,
|
|
cert_valid_until: '2020-02-10T20:40:00.000Z',
|
|
datanode_version: '6.1',
|
|
},
|
|
{
|
|
hostname: '192.168.0.11',
|
|
id: 'data-node-id-2',
|
|
is_leader: false,
|
|
is_master: false,
|
|
last_seen: '2020-01-10T10:40:00.000Z',
|
|
node_id: 'node-id-complete-2',
|
|
short_node_id: 'node-id-2',
|
|
transport_address: 'http://localhost:9201',
|
|
type: 'DATANODE',
|
|
status: 'UNCONFIGURED' as const,
|
|
cert_valid_until: '2020-02-10T20:40:00.000Z',
|
|
datanode_version: '6.1',
|
|
},
|
|
{
|
|
hostname: '192.168.0.12',
|
|
id: 'data-node-id-3',
|
|
is_leader: false,
|
|
is_master: false,
|
|
last_seen: '2020-01-10T10:40:00.000Z',
|
|
node_id: 'node-id-complete-3',
|
|
short_node_id: 'node-id-3',
|
|
transport_address: 'http://localhost:9202',
|
|
type: 'DATANODE',
|
|
status: 'UNCONFIGURED' as const,
|
|
cert_valid_until: '2020-02-10T20:40:00.000Z',
|
|
datanode_version: '6.1',
|
|
},
|
|
];
|