插件
Alarm Manager
中行工作流告警通知插件
概述
帮助
具体内容
下载
chariot plugin download chariot/c_alarm_manager:1.0.1
描述
中行工作流告警通知插件
动作
- 接收告警,记录待封锁IP的次数和封锁时间
- 查询待封锁IP列表
- 标记待封锁数据封锁已生效
- 查询待解封IP列表
- 标记待解封数据解封已生效
Alarm Manager
关于
中行工作流告警通知插件动作
记录报警
接收告警,记录待封锁IP的次数和封锁时间.
输入
Name | Type | Default | Required | Description | Enum |
---|---|---|---|---|---|
ip | string | None | True | 告警IP | None |
输出
Name | Type | Required | Description |
---|---|---|---|
result | string | False | 结果 |
获取待封锁IP列表
查询待封锁IP列表.
输入
该动作不包含任何输入。
输出
Name | Type | Required | Description |
---|---|---|---|
ip_list | []string | True | 待封锁的IP列表 |
标记待封锁数据封锁已生效
标记待封锁数据封锁已生效.
输入
Name | Type | Default | Required | Description | Enum |
---|---|---|---|---|---|
ip_list | []string | None | True | 待封锁的IP列表 | None |
输出
Name | Type | Required | Description |
---|---|---|---|
result | string | False | 结果 |
查询待解封IP列表
查询待解封IP列表.
输入
该动作不包含任何输入。
输出
Name | Type | Required | Description |
---|---|---|---|
ip_list | []string | True | 待解封的IP列表 |
标记待解封数据解封已生效
标记待解封数据解封已生效.
输入
Name | Type | Default | Required | Description | Enum |
---|---|---|---|---|---|
ip_list | []string | None | True | 待解封的IP列表 | None |
输出
Name | Type | Required | Description |
---|---|---|---|
result | string | False | 结果 |
触发器
该插件不包含任何触发器。
连接
连接配置接受如下参数:
Name | Type | Default | Required | Description | Enum |
---|---|---|---|---|---|
database_type | string | PostgreSQL | True | 数据库类型(仅限 PostgreSQL/MySQL) | ["PostgreSQL", "MySQL"] |
database_url | string | postgres://username:password@127.0.0.1:5432/alarm_manager?sslmode=disable | True | 数据库连接地址 | None |
故障排除
该插件不包含任何故障排除信息。
版本
- 1.0.1 -
- 1.0.0 -
索引
该插件不包含任何索引。
plugin_spec_version: v2
extension: plugin
products: []
name: c_alarm_manager
title: 报警管理
vendor: chariot
support: community
status: []
description: 中行工作流告警通知插件
version: 1.0.1
tags:
- Alarm Manager
hub_tags:
keywords:
- alarm_manager
enable_cache: false
connection:
database_type:
title:
en: Database type (PostgreSQL/MySQL only)
zh-CN: 数据库类型(仅限 PostgreSQL/MySQL)
type: string
description:
en: Database type (PostgreSQL/MySQL only)
zh-CN: 数据库类型(仅限 PostgreSQL/MySQL)
enum:
- PostgreSQL
- MySQL
default: PostgreSQL
required: true
database_url:
title:
en: Database connection address
zh-CN: 数据库连接地址
type: string
description:
en: Database connection address
zh-CN: 数据库连接地址
required: true
default: postgres://username:password@127.0.0.1:5432/alarm_manager?sslmode=disable
actions:
record:
title: 记录报警
description: 接收告警,记录待封锁IP的次数和封锁时间
input:
ip:
title:
en: Alarm IP
zh-CN: 告警IP
description:
en: The alarm IP
zh-CN: 告警IP
type: string
required: true
output:
result:
title:
en: Result
zh-CN: 结果
description:
en: The results of
zh-CN: 结果
type: string
required: false
get_pending_block_list:
title: 获取待封锁IP列表
description: 查询待封锁IP列表
output:
ip_list:
title:
en: IP list
zh-CN: IP列表
description:
en: IP list to be blocked
zh-CN: 待封锁的IP列表
type: "[]string"
required: true
mark_block_list_done:
title: 标记待封锁数据封锁已生效
description: 标记待封锁数据封锁已生效
input:
ip_list:
title:
en: IP list
zh-CN: IP列表
description:
en: IP list to be blocked
zh-CN: 待封锁的IP列表
type: "[]string"
required: true
output:
result:
title:
en: Result
zh-CN: 结果
description:
en: The results of
zh-CN: 结果
type: string
required: false
get_pending_unblock_list:
title: 查询待解封IP列表
description: 查询待解封IP列表
output:
ip_list:
title:
en: IP list
zh-CN: IP列表
description:
en: IP list to unpack
zh-CN: 待解封的IP列表
type: "[]string"
required: true
mark_unblock_list_done:
title: 标记待解封数据解封已生效
description: 标记待解封数据解封已生效
input:
ip_list:
title:
en: IP list
zh-CN: IP列表
description:
en: IP list to unpack
zh-CN: 待解封的IP列表
type: "[]string"
required: true
output:
result:
title:
en: Result
zh-CN: 结果
description:
en: The results of
zh-CN: 结果
type: string
required: false