talend

使用 Serverless + 飞书打造你的个性化消息提醒系统

旧城冷巷雨未停 提交于 2020-07-27 22:26:39
一、前言 在日常工作学习生活中,我们可能会遇到以下情形: 自己管理的某台服务器宕机了,但是没有得到及时的提醒,导致业务受到损失 某些自己很想注册的网站悄悄开放注册,但是自己并没有及时得知,于是只能继续漫无目的的等待 …… 如果每件事都花时间去关注,那我们的时间必然会不够用,那有没有什么办法可以让这些消息 集中 起来并且 及时 推送呢?在这里我想向大家推荐一个解决方案,那就是 使用 Serverless + 飞书打造属于自己的个性化消息提醒系统 。 二、准备工作 首先注册一个飞书账号,然后在 飞书网页版 登录 打开 飞书开放平台 ,点击 创建企业自建应用 ,并输入 应用名称 和 应用副标题 ,然后点击 确定创建 在企业自建应用列表中点击刚刚创建成功的应用,并记录 App ID 和 App Secret 二、编写代码 在本地新建一个项目目录,名称随意,这里以 feishu-notify 为例 分别创建 3 个文件: .env , index.py 和 serverless.yml 按如下说明进行编码 .env TENCENT_SECRET_ID=AKID******************************** TENCENT_SECRET_KEY=******************************** 注:这里的 TENCENT_SECRET_ID 和 TENCENT

使用 Serverless + 飞书打造你的个性化消息提醒系统

柔情痞子 提交于 2020-07-27 13:11:16
一、前言 在日常工作学习生活中,我们可能会遇到以下情形: 自己管理的某台服务器宕机了,但是没有得到及时的提醒,导致业务受到损失 某些自己很想注册的网站悄悄开放注册,但是自己并没有及时得知,于是只能继续漫无目的的等待 …… 如果每件事都花时间去关注,那我们的时间必然会不够用,那有没有什么办法可以让这些消息 集中 起来并且 及时 推送呢?在这里我想向大家推荐一个解决方案,那就是 使用 Serverless + 飞书打造属于自己的个性化消息提醒系统 。 二、准备工作 首先注册一个飞书账号,然后在 飞书网页版 登录 打开 飞书开放平台 ,点击 创建企业自建应用 ,并输入 应用名称 和 应用副标题 ,然后点击 确定创建 在企业自建应用列表中点击刚刚创建成功的应用,并记录 App ID 和 App Secret 二、编写代码 在本地新建一个项目目录,名称随意,这里以 feishu-notify 为例 分别创建 3 个文件: .env , index.py 和 serverless.yml 按如下说明进行编码 .env TENCENT_SECRET_ID=AKID******************************** TENCENT_SECRET_KEY=******************************** 注:这里的 TENCENT_SECRET_ID 和 TENCENT

Talend: Equivalent of logstash “key value” filter

∥☆過路亽.° 提交于 2020-07-09 14:53:16
问题 I'm discovering Talend Open Source Data Integrator and I would like to transform my data file into a csv file. My data are some sets of key value data like this example: A=0 B=3 C=4 A=2 C=4 A=2 B=4 A= B=3 C=1 I want to transform it into a CSV like this one: A,B,C 0,3,4 2,,4 2,4, With Logstash, I was using the "key value" filter which is able to do this job with a few lines of code. But with Talend, I don't find a similar transformation. I tried a "delimiter file" job and some other jobs

Parent-Child relationship in Talend

大兔子大兔子 提交于 2020-06-29 07:19:14
问题 Facing problem and out of ideas on figuring on how to implement parent-child relationship in Talend. Problem Statement: Having a feed file which has data in below format MemberCode|LastName|FirstName A|SHINE|MICHAEL B|SHINE|MICHELLE C|SHINE|ERIN A|RODRIGUEZ|DAMIAN A|PAVELSKY|STEPHEN B|PAVELSKY|TERESA (there are many more columns and many more rows - just few rows for reference purpose). LastName and FirstName are self-explanatory. MemberCode denotes the relationship. A will be parent, B or C

How to concatenate two column in talend tMap

ぐ巨炮叔叔 提交于 2020-05-18 05:15:20
问题 I have two column SalesID (Long 10 digit) and ItemID(Varchar 6) Now I want to concatenate these two column to make a 16 digit. For example- SalesID = 1234567899 ItemID = 32X9 Desired concatenated value should be:- 12345678990032X9 How can I achieve about output through tMap in talend? 回答1: Using Java syntax, you can easily concatenate your input data in the Tmap component: 回答2: Hi you can do it using tJavaRow component put below logic into it output_row.SALESID = input_row.SALESID; output_row

Springboot2 Tests

非 Y 不嫁゛ 提交于 2020-04-22 01:50:56
import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; @RunWith(SpringRunner.class)

Details to connect my tJIRAOutput

有些话、适合烂在心里 提交于 2020-04-21 05:03:41
问题 During my searching, I would like to know how to do to connect my componant to the Jira interface. Here you have : I know my User Id and my password huh ! Here my User Id could contain a dot ? e.g. : a.b because actually my User Id contains a dot. I don't know really the host string. I could write : "https://jira.atlassian.com" ==> doesn't work : java.io.IOException: Reason: user is not authenticated. Record wasn't created "https://a.b.atlassian.com" ==> doesn't work : Exception in component

Details to connect my tJIRAOutput

喜欢而已 提交于 2020-04-21 05:03:24
问题 During my searching, I would like to know how to do to connect my componant to the Jira interface. Here you have : I know my User Id and my password huh ! Here my User Id could contain a dot ? e.g. : a.b because actually my User Id contains a dot. I don't know really the host string. I could write : "https://jira.atlassian.com" ==> doesn't work : java.io.IOException: Reason: user is not authenticated. Record wasn't created "https://a.b.atlassian.com" ==> doesn't work : Exception in component

Details to connect my tJIRAOutput

风流意气都作罢 提交于 2020-04-21 05:02:13
问题 During my searching, I would like to know how to do to connect my componant to the Jira interface. Here you have : I know my User Id and my password huh ! Here my User Id could contain a dot ? e.g. : a.b because actually my User Id contains a dot. I don't know really the host string. I could write : "https://jira.atlassian.com" ==> doesn't work : java.io.IOException: Reason: user is not authenticated. Record wasn't created "https://a.b.atlassian.com" ==> doesn't work : Exception in component

良心推荐,我珍藏的一些Chrome插件

喜夏-厌秋 提交于 2020-02-27 04:30:36
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 <img src="https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-11/WX20200106-211814@2x.png" style="zoom:30%;" /> 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮件格式,你无需太多精力,就能写出美观的电子邮件。 下面我实际测试的效果: <img src="https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-11/markdown-here.jpg" alt="Markdown Here" style="zoom:50%;" /> Similar Sites 查看你当前所浏览的网站相似的一些网站,很不错! Octotree Octotree 可以让我们在 Github 上浏览代码更加方便和优雅。 OneTab 一键收纳你正在浏览的网页! 非常实用