SiteToSiteBulletinReportingTask Reporting Task
描述
使用Site-to-Site协议发布公告事件。 注意:每个组件最多只能存储 5 个公告,控制器级别最多只能存储 10 个公告,持续时间最长为 5 分钟。 如果此报告任务安排得不够频繁,某些公告可能无法发送。
标签
属性
| 名称 | 默认值 | 可选值 | 描述 |
|---|---|---|---|
| 目标 URL | | 目标 Lynxus 实例的 URL,如果是集群,则为 http(s)://host:port/lynxus 格式的逗号分隔地址列表。此目标 URL 仅用于发起站点到站点连接。此报告任务发送的数据将在目标的所有节点上进行负载均衡(如果是集群)。 支持表达式语言:是(仅使用环境/系统变量求值) | |
| 输入端口名称 | | 要将数据传送到的输入端口的名称。 支持表达式语言:是(仅使用环境/系统变量求值) | |
| SSL 上下文服务 | | 控制器服务 API:SSLContextProvidercn.org.acal.lynxus-lynxus-standard-services-api-nar-2.11.8 | 与目标通信时使用的 SSL 上下文服务。如果未指定,通信将不安全。 |
| 实例 URL | http://${hostname(true)}:8080/lynxus | 要在每个事件的内容 URI 中使用的此实例的 URL。 支持表达式语言:是(仅使用环境/系统变量求值) | |
| 压缩事件 | true |
| 指示是否压缩正在发送的数据。 |
| 通信超时 | 30 secs | 指定在确定发生错误并取消事务之前等待来自目标的响应的时间 | |
| 传输协议 | RAW |
| 指定用于站点到站点通信的传输协议。 |
| Proxy Configuration Service | | 控制器服务 API:ProxyConfigurationServicecn.org.acal.lynxus-lynxus-standard-services-api-nar-2.11.8 | 指定代理配置 Controller Service 来代理网络请求。 |
| 记录写入器 | | 控制器服务 API:RecordSetWriterFactorycn.org.acal.lynxus-lynxus-standard-services-api-nar-2.11.8 | 指定用于写出记录的Controller Service。 |
| 包含空值 | false |
| 指示记录中是否应包含空值。默认为 false |
| 平台 | lynxus | 每个事件中用于平台字段的值。 支持表达式语言:是(仅使用环境/系统变量求值) |
状态管理
该组件不存储状态。
受限 (Restricted)
该组件不受限。
详细说明
SiteToSiteBulletinReportingTask
Site-to-Site Bulletin Reporting Task 允许用户使用 Site To Site 协议发布 Bulletin 事件。注意:每个组件最多存储 5 条公告,控制器级别最多存储 10 条, 保存时长最长 5 分钟。如果该 Reporting Task 的调度不够频繁,有些公告可能不会被发送。
Record writer
用户可以定义 Record Writer,直接指定输出格式和数据,前提是输入 schema 如下:
{
"type": "record",
"name": "bulletins",
"namespace": "bulletins",
"fields": [
{
"name": "objectId",
"type": "string"
},
{
"name": "platform",
"type": "string"
},
{
"name": "bulletinId",
"type": "long"
},
{
"name": "bulletinCategory",
"type": [
"string",
"null"
]
},
{
"name": "bulletinGroupId",
"type": [
"string",
"null"
]
},
{
"name": "bulletinGroupName",
"type": [
"string",
"null"
]
},
{
"name": "bulletinGroupPath",
"type": [
"string",
"null"
]
},
{
"name": "bulletinLevel",
"type": [
"string",
"null"
]
},
{
"name": "bulletinMessage",
"type": [
"string",
"null"
]
},
{
"name": "bulletinNodeAddress",
"type": [
"string",
"null"
]
},
{
"name": "bulletinNodeId",
"type": [
"string",
"null"
]
},
{
"name": "bulletinSourceId",
"type": [
"string",
"null"
]
},
{
"name": "bulletinSourceName",
"type": [
"string",
"null"
]
},
{
"name": "bulletinSourceType",
"type": [
"string",
"null"
]
},
{
"name": "bulletinTimestamp",
"type": [
"string",
"null"
],
"doc": "Format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
},
{
"name": "bulletinFlowFileUuid",
"type": [
"string",
"null"
]
}
]
}