Files
Maxwell bd3719ca4b Revamp/server input pagination (#24057)
* first iteration of pagination

* commit state

* fix import and add license header

* fix import

* fix compliation issues

* fix static field deserilization

* Move inputsList to  PaginatedEntityDataTable (#24113)

* Implement entity data table for Inputs

* Update InputsDotBadge with cluster endpoint

* Delete graylog2-web-interface/src/components/inputs/InputsOveriew/cells/.#ThroughputCell.tsx

* add Expanded Title section to show config and static fields

* remove InputList and InputListItem 

- format files

* make row clickable and have a single expanded section

- remove unnecessary components

* fix linter

* fix lint

* fix lint

* refactor imports

* fix review

---------

Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>

* continue refactoring

* Remove unused CatApi impl (#24215)

* Position leftCol component to the left in ModalSubmit (#24111)

* Updating yarn lockfile (#24217)

Co-authored-by: Gary Bot <garybot2@graylog.com>

* Bump auto-value.version from 1.11.0 to 1.11.1 (#24201)

Bumps `auto-value.version` from 1.11.0 to 1.11.1.

Updates `com.google.auto.value:auto-value-annotations` from 1.11.0 to 1.11.1
- [Release notes](https://github.com/google/auto/releases)
- [Commits](https://github.com/google/auto/compare/auto-value-1.11.0...auto-value-1.11.1)

Updates `com.google.auto.value:auto-value` from 1.11.0 to 1.11.1
- [Release notes](https://github.com/google/auto/releases)
- [Commits](https://github.com/google/auto/compare/auto-value-1.11.0...auto-value-1.11.1)

---
updated-dependencies:
- dependency-name: com.google.auto.value:auto-value-annotations
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.auto.value:auto-value
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump io.modelcontextprotocol.sdk:mcp-bom from 0.15.0 to 0.16.0 (#24211)

Bumps [io.modelcontextprotocol.sdk:mcp-bom](https://github.com/modelcontextprotocol/java-sdk) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/modelcontextprotocol/java-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/java-sdk/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: io.modelcontextprotocol.sdk:mcp-bom
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump org.hibernate.validator:hibernate-validator (#24173)

Bumps [org.hibernate.validator:hibernate-validator](https://github.com/hibernate/hibernate-validator) from 9.0.1.Final to 9.1.0.Final.
- [Release notes](https://github.com/hibernate/hibernate-validator/releases)
- [Changelog](https://github.com/hibernate/hibernate-validator/blob/main/changelog.txt)
- [Commits](https://github.com/hibernate/hibernate-validator/compare/9.0.1.Final...9.1.0.Final)

---
updated-dependencies:
- dependency-name: org.hibernate.validator:hibernate-validator
  dependency-version: 9.1.0.Final
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump software.amazon.msk:aws-msk-iam-auth from 2.3.4 to 2.3.5 (#24157)

Bumps [software.amazon.msk:aws-msk-iam-auth](https://github.com/aws/aws-msk-iam-auth) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/aws/aws-msk-iam-auth/releases)
- [Commits](https://github.com/aws/aws-msk-iam-auth/compare/v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: software.amazon.msk:aws-msk-iam-auth
  dependency-version: 2.3.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Refactor ClusterStateApi to use os3 client (#24196)

* Refactor ClusterStateApi to use os3 client

* fix empty properties indices

* fix conflict

* better index deletion handling for unavailable indices

* fix deletion of indices

* code cleanup

* better record name and javadoc

* commit compiling state

* switch pagination

* fix removed class

* fix encrypted values

* fix extractors

* add missing headers

* remove import

* fix forbidden api call

* fix test

* fix forbidden api failure

* Update InputsOverview.tsx

* fix updating input

* add back validation

* add changelog

* fix lint

* ignore os java client (#24285)

* Refector data_node_status (#24267)

* refector data_node_status

* Revert "refector data_node_status"

This reverts commit 29c78d4017.

* Refector data_node_status to datanode_status

---------

Co-authored-by: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com>

* add more test cases

* fix imports

* linter fixes

* linter fixes

* add node filter when node is set

* clean up input to use set pattern on builder

* remove not needed prop

* Add additional column to inputs page  (#24268)

* add additional columns

- add InputActions test

* add expanded section actions

* use product name

* fix lint

* fix lint

---------

Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>

* fix lint errors

* fix desired state and buildFromMap

* make returned list immutable again

* Update InputsOverview.tsx

* add Inputs notifications for failed, setup and stopped state and improve input creation (#24283)

* add Inputs notifications for failed, setup and stopped state

* fix lint

* improve input creation

- open wizard after saving input

* remove navigation

* remove filter copy

* adjust to upstream changes

* Update InputsPage.tsx

* Update graylog2-web-interface/src/util/DocsHelper.ts

Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>

* reset field after opening wizard

* fix typo

* add column width

---------

Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com>
Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ousmane SAMBA <ousmane@graylog.com>
Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com>
Co-authored-by: Tomas Dvorak <tomas.dvorak@graylog.com>
Co-authored-by: Maksym Yadlovskyi <maksym.yadlovskyi@graylog.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gary Bot <garybot2@graylog.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ousmane Samba <ousmane.samba@graylog.com>
Co-authored-by: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com>
Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com>
Co-authored-by: Patrick Mann <patrickmann@users.noreply.github.com>
Co-authored-by: patrickmann <patrick.mann@graylog.com>
2025-12-01 07:47:19 +01:00

246 lines
7.0 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>.
*/
import type { InputStates } from 'hooks/useInputsStates';
// eslint-disable-next-line import/prefer-default-export
export const mockInputStates: InputStates = {
input1: {
node1: {
id: 'input1',
state: 'RUNNING',
detailed_message: null,
message_input: {
title: 'CEF UDP',
global: true,
name: 'CEF UDP',
content_pack: null,
id: 'input1',
created_at: '2025-10-16T12:29:53.157Z',
type: 'org.graylog.plugins.cef.input.CEFUDPInput',
creator_user_id: 'admin',
attributes: {
recv_buffer_size: 262144,
port: 5555,
number_worker_threads: 10,
timezone: 'Europe/Berlin',
locale: '',
bind_address: '0.0.0.0',
use_full_names: false,
},
static_fields: {},
node: null,
},
},
node2: {
id: 'input1',
state: 'FAILED',
detailed_message: null,
message_input: {
title: 'CEF UDP',
global: true,
name: 'CEF UDP',
content_pack: null,
id: 'input1',
created_at: '2025-10-16T12:29:53.157Z',
type: 'org.graylog.plugins.cef.input.CEFUDPInput',
creator_user_id: 'admin',
attributes: {
recv_buffer_size: 262144,
port: 5555,
number_worker_threads: 10,
timezone: 'Europe/Berlin',
locale: '',
bind_address: '0.0.0.0',
use_full_names: false,
},
static_fields: {},
node: null,
},
},
},
input2: {
node1: {
id: 'input2',
state: 'STOPPED',
detailed_message: null,
message_input: {
title: 'Test Beats',
global: true,
name: 'Beats',
content_pack: null,
id: 'input2',
created_at: '2025-10-16T12:24:57.370Z',
type: 'org.graylog.plugins.beats.Beats2Input',
creator_user_id: 'admin',
attributes: {
recv_buffer_size: 1048576,
tcp_keepalive: false,
number_worker_threads: 10,
tls_client_auth_cert_file: '',
bind_address: '0.0.0.0',
tls_cert_file: '',
port: 5044,
tls_key_file: '',
tls_enable: false,
tls_key_password: '',
tls_client_auth: 'disabled',
override_source: null,
charset_name: 'UTF-8',
no_beats_prefix: false,
},
static_fields: {},
node: null,
},
},
node2: {
id: 'input2',
state: 'SETUP',
detailed_message: null,
message_input: {
title: 'Test Beats',
global: true,
name: 'Beats',
content_pack: null,
id: 'input2',
created_at: '2025-10-16T12:24:57.370Z',
type: 'org.graylog.plugins.beats.Beats2Input',
creator_user_id: 'admin',
attributes: {
recv_buffer_size: 1048576,
tcp_keepalive: false,
number_worker_threads: 10,
tls_client_auth_cert_file: '',
bind_address: '0.0.0.0',
tls_cert_file: '',
port: 5044,
tls_key_file: '',
tls_enable: false,
tls_key_password: '',
tls_client_auth: 'disabled',
override_source: null,
charset_name: 'UTF-8',
no_beats_prefix: false,
},
static_fields: {},
node: null,
},
},
},
input3: {
node1: {
id: 'input3',
state: 'SETUP',
detailed_message: null,
message_input: {
title: 'Test AWS Security Lake Integrations',
global: true,
name: 'AWS Security Lake',
content_pack: null,
id: 'input3',
created_at: '2025-10-16T12:23:19.786Z',
type: 'org.graylog.enterprise.integrations.awssecuritylake.SecurityLakeInput',
creator_user_id: 'admin',
attributes: {
AWSSecurityLakeCodec: 'Test AWS Security Lake Integrations',
security_lake_queue_name: 'gl-security-lake',
polling_time_unit: 'MINUTES',
aws_region: 'us-east-1',
throttling_allowed: false,
aws_access_key: 'AKIAW4PN4Y76SJS3ISVQ',
assume_role_arn: 'arn:aws:iam::473482184701:role/s3-assume-role',
aws_secret_key: {
is_set: true,
},
store_full_message: true,
polling_interval: 1,
},
static_fields: {},
node: null,
},
},
node2: {
id: 'input3',
state: 'SETUP',
detailed_message: null,
message_input: {
title: 'Test AWS Security Lake Integrations',
global: true,
name: 'AWS Security Lake',
content_pack: null,
id: 'input3',
created_at: '2025-10-16T12:23:19.786Z',
type: 'org.graylog.enterprise.integrations.awssecuritylake.SecurityLakeInput',
creator_user_id: 'admin',
attributes: {
AWSSecurityLakeCodec: 'Test AWS Security Lake Integrations',
security_lake_queue_name: 'gl-security-lake',
polling_time_unit: 'MINUTES',
aws_region: 'us-east-1',
throttling_allowed: false,
aws_access_key: 'AKIAW4PN4Y76SJS3ISVQ',
assume_role_arn: 'arn:aws:iam::473482184701:role/s3-assume-role',
aws_secret_key: {
is_set: true,
},
store_full_message: true,
polling_interval: 1,
},
static_fields: {},
node: null,
},
},
},
input4: {
node1: {
id: 'input4',
state: 'STOPPED',
detailed_message: null,
message_input: {
title: 'SON path value from HTTP API',
global: true,
name: 'JSON path value from HTTP API',
content_pack: null,
id: 'input4',
created_at: '2025-10-16T12:35:22.217Z',
type: 'org.graylog2.inputs.misc.jsonpath.JsonPathInput',
creator_user_id: 'admin',
attributes: {
headers: '',
target_url: 'http://example.org/api',
encrypted_headers: {
is_set: false,
},
enable_flattening: false,
source: 'yourapi',
timeunit: 'MINUTES',
path: '$.store.book[1].number_of_orders',
http_method: 'GET',
content_type: '',
throttling_allowed: false,
http_body: '',
interval: 1,
override_source: null,
charset_name: 'UTF-8',
},
static_fields: {},
node: null,
},
},
},
};