Procházet zdrojové kódy

docs: record realtime fields and Feishu group config

刘立冬 před 3 dny
rodič
revize
af5ccc3f80

+ 8 - 0
skills/feishu-data-publisher/references/configuration.md

@@ -9,12 +9,20 @@ export FEISHU_APP_ID='飞书自建应用 App ID'
 export FEISHU_APP_SECRET='飞书自建应用 App Secret'
 export FEISHU_APP_SECRET='飞书自建应用 App Secret'
 ```
 ```
 
 
+当前团队使用的机器人应用名称为“增长投放”。`FEISHU_APP_ID` 和 `FEISHU_APP_SECRET` 的真实值只放在环境变量或 Secret Manager,不写入 Markdown 和 Git。
+
 发送群消息时还需配置目标群,推荐使用稳定的群 ID:
 发送群消息时还需配置目标群,推荐使用稳定的群 ID:
 
 
 ```bash
 ```bash
 export FEISHU_TARGET_CHAT_ID='oc_xxx'
 export FEISHU_TARGET_CHAT_ID='oc_xxx'
 ```
 ```
 
 
+当前团队默认发送到“前端组”:
+
+```bash
+export FEISHU_TARGET_CHAT_ID='oc_a63f05d3a773e8d4d4a57955a618b63b'
+```
+
 也可使用群名,由脚本在机器人可见群中精确解析:
 也可使用群名,由脚本在机器人可见群中精确解析:
 
 
 ```bash
 ```bash

+ 7 - 0
skills/odps-product-efficiency-report/references/metrics.md

@@ -12,6 +12,13 @@ For realtime video-flow partitions, set year, month, and day consistently. For o
 ## Bucket and source definitions
 ## Bucket and source definitions
 
 
 - Read `rootSessionId` from the applicable physical column or `extparams`.
 - Read `rootSessionId` from the applicable physical column or `extparams`.
+- Realtime field mapping:
+  - `loghubods.useractive_log_per5min`: `GET_JSON_OBJECT(extparams, '$.rootSessionId')`.
+  - `loghubods.video_action_log_flow`: `GET_JSON_OBJECT(extparams, '$.rootSessionId')`.
+  - `loghubods.user_share_log_per5min`: physical column `rootsessionid`.
+- Realtime partition mapping:
+  - `useractive_log_per5min` and `user_share_log_per5min`: `dt LIKE 'yyyyMMdd%'`.
+  - `video_action_log_flow`: filter `year`, `month`, and day-valued `dt`; omit `hh` for the current-day cumulative result.
 - For position `n` from the end, use `LOWER(SUBSTR(rootSessionId, LENGTH(rootSessionId) - n + 1, 1))` and retain only `^[0-9a-f]$`.
 - For position `n` from the end, use `LOWER(SUBSTR(rootSessionId, LENGTH(rootSessionId) - n + 1, 1))` and retain only `^[0-9a-f]$`.
 - Head: `pagesource RLIKE 'user-videos-share$'`.
 - Head: `pagesource RLIKE 'user-videos-share$'`.
 - Recommendation: `pagesource RLIKE '(detail|category|recommend)$'`.
 - Recommendation: `pagesource RLIKE '(detail|category|recommend)$'`.