mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-18 22:53:09 +00:00

* Schema for Alerts #9248 * 1. Api for alerts 2. Api for alertAction API for Alert and AlertAction #9266 * missing file * fix ui failures * Added Api to give function parameter type and additional Context for UI * Added default Triggers in Alerts * checkstyle fix * docs update * function names updated * added timestamp for alert status update * receiver should be unique in json schema and alerts publishers * updated bootstrap filters * updatated review comments * added functions to match eventType for entities * added migrations for alerts * added alert config in alertACtionConfig * Fix issue in sending mails * removed commented part Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
32 lines
1.3 KiB
SQL
32 lines
1.3 KiB
SQL
-- Remove markDeletedTablesFromFilterOnly
|
|
UPDATE ingestion_pipeline_entity
|
|
SET json = json::jsonb #- '{sourceConfig,config,markDeletedTablesFromFilterOnly}';
|
|
|
|
UPDATE data_insight_chart
|
|
SET json = jsonb_set(
|
|
json,
|
|
'{dimensions}',
|
|
'[{"name":"entityFqn","chartDataType":"STRING"},{"name":"entityType","chartDataType":"STRING"},{"name":"owner","chartDataType":"STRING"},{"name":"entityHref","chartDataType":"STRING"}]'
|
|
)
|
|
WHERE name = 'mostViewedEntities';
|
|
|
|
DROP TABLE webhook_entity;
|
|
|
|
CREATE TABLE IF NOT EXISTS alert_entity (
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
json JSONB NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (name)
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS alert_action_def (
|
|
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
|
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
|
alertActionType VARCHAR(36) GENERATED ALWAYS AS (json ->> 'alertActionType') STORED NOT NULL,
|
|
deleted BOOLEAN GENERATED ALWAYS AS ((json ->> 'deleted')::boolean) STORED,
|
|
json JSONB NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (name)
|
|
); |