diff --git a/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts b/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts index 4c8e1040b5..59250ef87f 100644 --- a/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts +++ b/graylog2-web-interface/src/@types/graylog-web-plugin/index.d.ts @@ -137,13 +137,30 @@ type DataTiering = { }>, } +type FieldValueProvider = { + type: string, + displayName: string, + formComponent: React.ComponentType, + summaryComponent: React.ComponentType, + defaultConfig: { + template?: string, + table_name?: string, + key_field?: string, + }, + requiredFields: { + template?: string, + table_name?: string, + key_field?: string, + }, +} declare module 'graylog-web-plugin/plugin' { interface PluginExports { navigation?: Array; dataTiering?: Array defaultNavigation?: Array; navigationItems?: Array; - globalNotifications?: Array + globalNotifications?: Array; + fieldValueProviders?:Array; // Global context providers allow to fetch and process data once // and provide the result for all components in your plugin. globalContextProviders?: Array>>, diff --git a/graylog2-web-interface/src/components/event-definitions/event-definition-form/EventConditionForm.tsx b/graylog2-web-interface/src/components/event-definitions/event-definition-form/EventConditionForm.tsx index b44647e5bf..a838034e27 100644 --- a/graylog2-web-interface/src/components/event-definitions/event-definition-form/EventConditionForm.tsx +++ b/graylog2-web-interface/src/components/event-definitions/event-definition-form/EventConditionForm.tsx @@ -25,10 +25,10 @@ import { Select } from 'components/common'; import { Clearfix, Col, ControlLabel, FormGroup, HelpBlock, Row } from 'components/bootstrap'; import { HelpPanel } from 'components/event-definitions/common/HelpPanel'; import type User from 'logic/users/User'; -import { getPathnameWithoutId } from 'util/URLUtils'; import useSendTelemetry from 'logic/telemetry/useSendTelemetry'; import useLocation from 'routing/useLocation'; import { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants'; +import { getPathnameWithoutId } from 'util/URLUtils'; import styles from './EventConditionForm.css'; @@ -143,9 +143,10 @@ const EventConditionForm = ({ action, entityTypes, eventDefinition, validation, Configure how Graylog should create Events of this kind. You can later use those Events as input on other Conditions, making it possible to build powerful Conditions based on others.

- - Condition Type + + Condition Type