FINERACT-1241-elastic-web-hook-update (#1488)

This commit is contained in:
Manoj
2020-11-10 03:44:27 +05:30
committed by GitHub
parent ef3e2e3c92
commit 169b01d72b
9 changed files with 245 additions and 14 deletions
@@ -0,0 +1,33 @@
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.
--
INSERT INTO m_hook_templates
( name)
VALUES('Elastic Search');
INSERT INTO m_hook_schema
(hook_template_id, field_type, field_name, placeholder, optional)
VALUES( (select id from m_hook_templates mht where name = 'Elastic Search'), 'string', 'Payload URL', 'http://<host>/<index name>/<type name>', 0);
INSERT INTO m_hook_schema
( hook_template_id, field_type, field_name, placeholder, optional)
VALUES( (select id from m_hook_templates mht where name = 'Elastic Search'), 'string', 'Content Type', 'json', 0);
INSERT INTO m_hook_schema
( hook_template_id, field_type, field_name, placeholder, optional)
VALUES( (select id from m_hook_templates mht where name = 'Elastic Search'), 'string', 'Index Name', NULL, 1);