当前位置:网站首页>benthos杂记
benthos杂记
2022-07-23 13:33:00 【Chise1】
概述
记录一些平时可能会用到的边边角角
错误处理
如果使用kafka等一些自带的input,当中间有流程返回error的时候,会自动重试,这一点挺烦的,可以用fallback解决。
如下
output:
fallback:
- sql_raw:
driver: mysql
dsn: ${
Alarm.Db.Dsn}
query: "INSERT INTO cm_ala_corr_relation (rule_id, father_alarm_id, child_alarm_id, relation_time) VALUES (?, ?, ?, ?);"
args_mapping: | root = [ this.RuleId, this.FatherAlarmId, this.ChildAlarmId, this.RelationTime ]
- file:
path: ./error_relation.txt
输出的时候报错的话自动跳到下一个输出。
边栏推荐
猜你喜欢

考过PMP对实际工作帮助大吗?

【Error】TypeError: expected str, bytes or os.PathLike object, not int

Royal O'Brien, executive director of o3df: open source has no boundaries, and all shared sounds will become the actual direction

【30. n-皇后问题】

48:第五章:开发admin管理服务:1:创建子工程【imooc-news-dev-service-admin】,管理服务模块;

Summary of after class homework of Microcomputer Principle and technical interface

Direct exchange

系统内存介绍和内存管理

Lake Shore—EMPX-H2 型低温探针台

Bag of tricks for image classification "with convolutional neural networks"
随机推荐
Navicat15下载安装
Tensorflow2.x actual combat series softmax function
VMware虚拟机的三种网络模式
通用分页功能
【Error】TypeError: expected str, bytes or os.PathLike object, not int
主成分分析(MATLAB)
层次分析法(MATLAB)
一文带你了解什么是TypeScript
Study note 7 -- traffic environment behavior prediction
小米集团副总裁崔宝秋:开源是人类技术进步的最佳平台和模式
[untitled]
FreeRTOS个人笔记-挂起/解挂任务
Detector: detect objects with recursive feature pyramid and switchable atolos convolution
SurFace家族选购参照
UPC 2022暑期个人训练赛第12场(B 组合数)
无心剑英汉双语诗006.《致爱妻》
Microcomputer principle and technical interface practice in class
General paging function
【Flutter -- 布局】线性布局(Row 和 Column)
Eureka笔记