@thinkingai/ae-cli 1.0.28 → 6.0.16-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -16
- package/README.zh.md +1 -16
- package/dist/{auth-H2376DEF.js → auth-DYC2BGLM.js} +2 -2
- package/dist/{auth-5NSDQFQB.js → auth-GHBMJ5ZR.js} +31 -12
- package/dist/{chunk-CLJF7MQA.js → chunk-2DUEAXV3.js} +1 -1
- package/dist/chunk-5OC7CYCG.js +98 -0
- package/dist/{chunk-SRJIAOBN.js → chunk-6W4QOZAL.js} +10 -0
- package/dist/{chunk-LU7SXK4Q.js → chunk-BJX3GXWC.js} +2 -2
- package/dist/{chunk-WCHI7725.js → chunk-DMMEPCST.js} +47 -6
- package/dist/{chunk-IMBKVXKY.js → chunk-EGEIXA2Z.js} +82 -10
- package/dist/{chunk-AD5V3ZPJ.js → chunk-I5CRVM2S.js} +98 -10
- package/dist/chunk-NOO24N7W.js +11 -0
- package/dist/{chunk-GSJGPNKK.js → chunk-PN3OS34E.js} +1 -1
- package/dist/{chunk-CAQYQA4R.js → chunk-RSHMZ3LG.js} +15 -1
- package/dist/{client-FCMK3XEK.js → client-2UJ63MVQ.js} +3 -3
- package/dist/{config-64G36TJL.js → config-NCUGK6NS.js} +3 -3
- package/dist/index.js +2553 -29
- package/dist/{model-EZ6K7FXI.js → model-SJSOZTRS.js} +5 -7
- package/dist/{raw-VEF3D6UD.js → raw-7NVWSVJP.js} +4 -4
- package/dist/{sync-NRODEVNH.js → sync-GRVO4K3U.js} +120 -23
- package/dist/{te-agent-7U7JLJKU.js → te-agent-KZRIEN4N.js} +468 -47
- package/dist/{te-analysis-A2OSGHQ4.js → te-analysis-VAR4KUOK.js} +145 -28
- package/dist/{te-audience-LI67PPGO.js → te-audience-KMKYI2YJ.js} +23 -14
- package/dist/{te-common-35WVU3C5.js → te-common-WNCZB7R7.js} +5 -4
- package/dist/{te-community-LEAP6PWT.js → te-community-JEEFXPB3.js} +11 -10
- package/dist/{te-dataops-N2LGZBOX.js → te-dataops-GD3XBYCS.js} +33 -32
- package/dist/{te-engage-H7C72Z46.js → te-engage-4XHCTS6I.js} +5 -4
- package/dist/{te-kb-I2OKTBAI.js → te-kb-B62KFP2A.js} +97 -7
- package/dist/{te-meta-HBTIEDRO.js → te-meta-EPZGQN56.js} +10 -9
- package/dist/{te-team-EM5OWRQL.js → te-team-YY24VORI.js} +16 -12
- package/dist/tracking/i18n/resources/cli/en.json +153 -0
- package/dist/tracking/i18n/resources/cli/ja.json +153 -0
- package/dist/tracking/i18n/resources/cli/ko.json +153 -0
- package/dist/tracking/i18n/resources/cli/zh.json +153 -0
- package/package.json +9 -3
- package/skills/ae-agent/SKILL.md +66 -26
- package/skills/ae-analysis/SKILL.md +108 -8
- package/skills/ae-analysis/references/cancel_query.md +39 -0
- package/skills/ae-analysis/references/drilldown_user_events.md +4 -2
- package/skills/ae-analysis/references/drilldown_users.md +4 -2
- package/skills/ae-analysis/references/get_bi_panel_detail.md +35 -0
- package/skills/ae-analysis/references/list_alerts.md +1 -1
- package/skills/ae-analysis/references/list_bi_panels.md +35 -0
- package/skills/ae-analysis/references/list_cluster_members.md +4 -1
- package/skills/ae-analysis/references/list_dashboards.md +1 -1
- package/skills/ae-analysis/references/list_entities.md +1 -1
- package/skills/ae-analysis/references/list_events.md +1 -1
- package/skills/ae-analysis/references/list_metrics.md +1 -1
- package/skills/ae-analysis/references/list_project_mark_times.md +1 -1
- package/skills/ae-analysis/references/list_properties.md +1 -1
- package/skills/ae-analysis/references/list_public_access_links.md +1 -1
- package/skills/ae-analysis/references/list_reports.md +1 -1
- package/skills/ae-analysis/references/list_tag_members.md +4 -1
- package/skills/ae-analysis/references/query_adhoc.md +6 -5
- package/skills/ae-analysis/references/query_bi_panel_data.md +58 -0
- package/skills/ae-analysis/references/query_dashboard_report_data.md +4 -1
- package/skills/ae-analysis/references/query_entity_details.md +5 -2
- package/skills/ae-analysis/references/query_event_details.md +4 -1
- package/skills/ae-analysis/references/query_report_data.md +2 -2
- package/skills/ae-analysis-global/SKILL.md +3 -1
- package/skills/ae-analysis-intent/SKILL.md +132 -0
- package/skills/ae-data-integration-helper/SKILL.md +242 -0
- package/skills/ae-data-integration-helper/references/android_sdk_faq.md +179 -0
- package/skills/ae-data-integration-helper/references/c_sdk_compilation.md +83 -0
- package/skills/ae-data-integration-helper/references/c_sdk_faq.md +416 -0
- package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +123 -0
- package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +365 -0
- package/skills/ae-data-integration-helper/references/index.md +56 -0
- package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +118 -0
- package/skills/ae-data-integration-helper/references/java_sdk_faq.md +406 -0
- package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +129 -0
- package/skills/ae-data-integration-helper/references/logbus2_guide.md +309 -0
- package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +348 -0
- package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +115 -0
- package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +118 -0
- package/skills/ae-data-integration-helper/references/python_sdk_faq.md +232 -0
- package/skills/ae-data-integration-helper/references/restful_api_notes.md +74 -0
- package/skills/ae-data-integration-helper/references/sdk_log_guide.md +316 -0
- package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +107 -0
- package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +115 -0
- package/skills/ae-generate-tracking-code/SKILL.md +629 -0
- package/skills/ae-generate-tracking-code/references/autotrack-enum.md +183 -0
- package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +202 -0
- package/skills/ae-generate-tracking-code/references/datax-config.md +43 -0
- package/skills/ae-generate-tracking-code/references/debug-script.md +102 -0
- package/skills/ae-generate-tracking-code/references/logbus-config.md +200 -0
- package/skills/ae-generate-tracking-code/references/modes.md +83 -0
- package/skills/ae-generate-tracking-code/references/restful-call.md +36 -0
- package/skills/ae-generate-tracking-code/references/sdk-index.md +128 -0
- package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +206 -0
- package/skills/ae-generate-tracking-code/references/snippet-delivery.md +394 -0
- package/skills/ae-generate-tracking-code/references/te-api.md +181 -0
- package/skills/ae-generate-tracking-plan/SKILL.md +1083 -0
- package/skills/ae-generate-tracking-plan/references/autotrack-events.md +273 -0
- package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +425 -0
- package/skills/ae-generate-tracking-plan/references/te-api.md +100 -0
- package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +152 -0
- package/skills/ae-kb/SKILL.md +38 -5
- package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +104 -0
- package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +117 -0
- package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
- package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +72 -0
- package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +86 -0
- package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +80 -0
- package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.md" +40 -0
- package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.xlsx +0 -0
- package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.md +40 -0
- package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.xlsx +0 -0
- package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +92 -0
- package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
- package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
- package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.md +130 -0
- package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.xlsx +0 -0
- package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +52 -0
- package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +68 -0
- package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.md +108 -0
- package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.xlsx +0 -0
- package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
- package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +63 -0
- package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +101 -0
- package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
- package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +84 -0
- package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +79 -0
- package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +105 -0
- package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +83 -0
- package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
- package/wiki/te-docs/index.md +225 -0
- package/wiki/te-docs/raw/advanced-data-type/first-event-check.md +66 -0
- package/wiki/te-docs/raw/advanced-data-type/updated-event.md +87 -0
- package/wiki/te-docs/raw/advanced-data-type.md +16 -0
- package/wiki/te-docs/raw/data-ingestion-guide/about-gdpr.md +55 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/automatic-event-tracking.md +431 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/debugging-and-logging.md +49 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/multi-instance.md +66 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/preset-properties.md +466 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/third-party-integration.md +127 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced.md +513 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/release-notes.md +177 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android.md +228 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/c-advanced.md +419 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c.md +110 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/client-side-sdk-faq.md +52 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/cpp-advanced.md +366 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/release-notes.md +103 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp.md +201 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/compliance.md +26 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/automatically-track-events.md +117 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/preset-properties.md +52 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced.md +267 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/release-notes.md +82 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter.md +139 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/compliance.md +26 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/automatically-track-events.md +121 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/debugging-and-logging.md +54 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/preset-properties.md +18 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced.md +305 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/release-notes.md +79 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native.md +137 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/release-notes.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/automatically-track-events.md +54 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/debugging-and-logging.md +53 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/multi-instance.md +42 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/preset-properties.md +119 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/support-native.md +81 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced.md +331 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app.md +156 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform.md +12 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/multi-instance.md +21 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/preset-properties.md +249 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced.md +301 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/release-notes.md +51 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x.md +281 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md +70 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/debugging-and-logging.md +57 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/native-support.md +104 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/preset-properties.md +91 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance.md +374 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/compliance.md +35 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/release-notes.md +109 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator.md +170 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/compliance.md +28 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/automatic-event-tracking.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/debugging-and-logging.md +58 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/preset-properties.md +43 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced.md +204 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/release-notes.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona.md +269 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/release-notes.md +177 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/automatic-event-tracking.md +119 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/multi-instance.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/native-pluggable.md +43 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/preset-properties.md +212 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/third-party-integration.md +77 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced.md +396 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity.md +176 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/release-notes.md +81 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md +79 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/debugging-and-logging.md +31 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/preset-properties.md +25 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/third-party-integrations.md +141 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced.md +278 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal.md +190 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine.md +14 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/h5-and-app-sdk-connection.md +147 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/instant-app-and-game.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/compliance.md +24 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/automatic-event-tracking.md +272 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/debugging-and-logging.md +77 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/multi-instance.md +142 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/preset-properties.md +484 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/third-party-integrations.md +132 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced.md +682 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/release-notes.md +163 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios.md +304 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/compliance.md +29 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/automatic-event-tracking.md +136 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/debugging-and-logging.md +48 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/multi-instance.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/preset-properties.md +132 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced.md +462 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/release-notes.md +107 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript.md +208 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/debugging-and-logging.md +62 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/preset-properties.md +118 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced.md +556 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos.md +231 -0
- package/wiki/te-docs/raw/data-ingestion-guide/client-sdk.md +25 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/filebeat-logstash-user-guide.md +610 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md +1215 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/ta-datax-writer-plugin-user-guide.md +278 -0
- package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools.md +15 -0
- package/wiki/te-docs/raw/data-ingestion-guide/privacy-policy.md +38 -0
- package/wiki/te-docs/raw/data-ingestion-guide/restful-api-user-guide.md +155 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-FM9Cwz.md +37 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-RSyfw7.md +41 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging.md +89 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-OxzWw.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-VuE3wr.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-IauKwI.md +175 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-YAilwk.md +210 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced.md +211 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-PVazwa.md +62 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-TADbwY.md +50 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes.md +69 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-V2W3wv.md +131 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-Zf9Jwl.md +179 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c.md +189 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/debugging-and-logging.md +38 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced.md +113 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/release-notes.md +34 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang.md +155 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/debugging-and-logging.md +42 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced.md +157 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/release-notes.md +72 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang.md +148 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/debugging-and-logging.md +49 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced.md +223 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/release-notes.md +88 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java.md +174 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/debugging-and-logging.md +46 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced.md +182 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/release-notes.md +61 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua.md +121 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/debugging-and-logging.md +55 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced.md +225 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs.md +141 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/debugging-and-logging.md +41 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced.md +216 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/release-notes.md +45 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php.md +173 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/debugging-and-logging.md +40 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced.md +206 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/release-notes.md +51 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python.md +116 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/release-notes.md +44 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/debugging-and-logging.md +47 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/preset-properties.md +126 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced.md +189 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby.md +142 -0
- package/wiki/te-docs/raw/data-ingestion-guide/server-sdk.md +22 -0
- package/wiki/te-docs/raw/data-ingestion-guide/thinkingdata-privacy-policy.md +37 -0
- package/wiki/te-docs/raw/data-ingestion-guide.md +48 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/data-rules.md +396 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/preset-properties-and-system-fields.md +957 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion/user-identification-rules.md +723 -0
- package/wiki/te-docs/raw/preparations-before-data-ingestion.md +203 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//345/220/210/350/247/204/346/214/207/345/215/227.md +96 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//346/233/264/346/226/260/346/227/245/345/277/227.md +97 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +52 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +447 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227.md +370 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony.md +172 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//346/233/264/346/226/260/346/227/245/345/277/227.md +209 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +71 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +49 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +125 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +498 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227.md +612 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217.md +373 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//345/220/210/350/247/204/346/214/207/345/215/227.md +26 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//346/233/264/346/226/260/346/227/245/345/277/227.md +32 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +30 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +61 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227.md +236 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua.md +200 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//346/233/264/346/226/260/346/227/245/345/277/227.md +83 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +66 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +62 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +358 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227.md +615 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret.md +166 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//346/233/264/346/226/260/346/227/245/345/277/227.md +87 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +71 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +61 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +406 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227.md +597 -0
- package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair.md +179 -0
- package/wiki/te-docs/schema.md +16 -0
- package/wiki/te-docs/synthesis/batch-ingest-comparison.md +324 -0
- package/wiki/te-docs/synthesis/js-sdk-cheatsheet.md +538 -0
- package/wiki/te-docs/synthesis/restful-api-reference.md +363 -0
- package/wiki/te-docs/synthesis/sdk-selection.md +372 -0
- package/wiki/te-docs/synthesis/server-sdk-overview.md +449 -0
- package/dist/chunk-KAEZTSXN.js +0 -99
- package/dist/chunk-OJDNO5QY.js +0 -63
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# LogBus2 Configuration Generation
|
|
2
|
+
|
|
3
|
+
> **Terminology**: LogBus2 = log sync tool (Go-based, v2) | LoggerConsumer = writes events to local log files | 日志同步工具 = log sync tool | daemon.json = LogBus2 config file | push_url = TE receiver/data ingestion URL | app_id = AE project APP_ID | file_patterns = glob patterns for log files | unit_remove = file deletion unit (day/hour) | offset_remove = file deletion offset | 重命名 = rename (causes re-upload) | runtime 目录 = runtime directory (stores progress snapshots) | JSON line = JSONL format (one JSON per line)
|
|
4
|
+
|
|
5
|
+
LogBus2 is AE's official log sync tool, used together with LoggerConsumer (server-side SDK).
|
|
6
|
+
|
|
7
|
+
**Note: LogBus v1 is deprecated and no longer recommended. Use LogBus2 for all scenarios.**
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Architecture
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Server code → LoggerConsumer → Local log files
|
|
15
|
+
↓
|
|
16
|
+
LogBus2 process → AE platform
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Official Documentation
|
|
22
|
+
|
|
23
|
+
When generating config files, **must always provide the official documentation link**:
|
|
24
|
+
|
|
25
|
+
| Document Type | URL |
|
|
26
|
+
|---|---|
|
|
27
|
+
| **LogBus2 User Guide** | https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US |
|
|
28
|
+
|
|
29
|
+
Download link is in the official doc's "二、Download LogBus2" section.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Trigger Condition
|
|
34
|
+
|
|
35
|
+
- When server-side chooses `insert` or `snippet`, **generated by default**
|
|
36
|
+
- User does not need to select it separately
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Deliverables
|
|
41
|
+
|
|
42
|
+
### 1. Config File
|
|
43
|
+
|
|
44
|
+
`.ae-cli/output/daemon.json`:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"datasource": [
|
|
49
|
+
{
|
|
50
|
+
"type": "file",
|
|
51
|
+
"file_patterns": [
|
|
52
|
+
"/data/ta_log/*.log"
|
|
53
|
+
],
|
|
54
|
+
"app_id": "<appId>",
|
|
55
|
+
"unit_remove": "day",
|
|
56
|
+
"offset_remove": 7
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"push_url": "<SERVER_URL>"
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Config item descriptions**:
|
|
64
|
+
|
|
65
|
+
| Config Item | Description | Required |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| `file_patterns` | Log file matching path (Glob wildcards), must match LoggerConsumer config | ✔️ |
|
|
68
|
+
| `app_id` | AE project APP_ID | ✔️ |
|
|
69
|
+
| `push_url` | AE receiver URL (must start with http/https) | ✔️ |
|
|
70
|
+
| `unit_remove` | File deletion unit: `day` or `hour` | Optional |
|
|
71
|
+
| `offset_remove` | File deletion offset (paired with unit_remove) | Optional |
|
|
72
|
+
|
|
73
|
+
### 2. README File
|
|
74
|
+
|
|
75
|
+
`.ae-cli/output/logbus-README.md`:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
# LogBus2 Configuration Guide
|
|
79
|
+
|
|
80
|
+
## Important
|
|
81
|
+
|
|
82
|
+
- LogBus v1 is deprecated. Please use **LogBus2**
|
|
83
|
+
- This config file is in JSON format (daemon.json)
|
|
84
|
+
|
|
85
|
+
## Official Documentation
|
|
86
|
+
|
|
87
|
+
| Document | Link |
|
|
88
|
+
|---|---|
|
|
89
|
+
| **LogBus2 User Guide** | https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US |
|
|
90
|
+
|
|
91
|
+
Download link is in the official doc's "二、Download LogBus2" section.
|
|
92
|
+
|
|
93
|
+
## Prerequisites
|
|
94
|
+
|
|
95
|
+
1. **Download LogBus2** (matching OS version):
|
|
96
|
+
- Visit the official docs. Download the appropriate version from "二、Download LogBus2"
|
|
97
|
+
- Linux-amd64 / Linux-arm64 / Windows / Mac / Docker
|
|
98
|
+
|
|
99
|
+
2. **Extract and deploy**:
|
|
100
|
+
```bash
|
|
101
|
+
tar -xzf logbus2-linux-amd64.tar.gz
|
|
102
|
+
cd logbus2
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
3. **Confirm LoggerConsumer log path**:
|
|
106
|
+
- This config uses: /data/ta_log/*.log
|
|
107
|
+
- Ensure LoggerConsumer config matches this
|
|
108
|
+
|
|
109
|
+
4. **Place config file**:
|
|
110
|
+
```bash
|
|
111
|
+
cp daemon.json conf/daemon.json
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Start
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
./logbus start
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Common Commands
|
|
121
|
+
|
|
122
|
+
| Command | Description |
|
|
123
|
+
|---|---|
|
|
124
|
+
| `./logbus start` | Start LogBus2 |
|
|
125
|
+
| `./logbus stop` | Stop LogBus2 |
|
|
126
|
+
| `./logbus restart` | Restart LogBus2 |
|
|
127
|
+
| `./logbus env` | Check config and connectivity |
|
|
128
|
+
| `./logbus progress` | View transfer progress |
|
|
129
|
+
| `./logbus reset` | Reset read records (use with caution) |
|
|
130
|
+
| `./logbus dev` | Validate file format |
|
|
131
|
+
|
|
132
|
+
## Verification
|
|
133
|
+
|
|
134
|
+
1. Check running status: `./logbus progress`
|
|
135
|
+
2. Check logs: log files under `./logbus/log/` directory
|
|
136
|
+
3. Open AE Debug page to verify data ingestion
|
|
137
|
+
|
|
138
|
+
## Config Item Reference
|
|
139
|
+
|
|
140
|
+
| Config Item | Current Value | Description |
|
|
141
|
+
|---|---|---|
|
|
142
|
+
| push_url | <SERVER_URL> | AE receiver URL |
|
|
143
|
+
| app_id | <appId> | AE project APP_ID |
|
|
144
|
+
| file_patterns | /data/ta_log/*.log | Log file matching pattern |
|
|
145
|
+
|
|
146
|
+
## Notes
|
|
147
|
+
|
|
148
|
+
1. **Do not rename uploaded log files**: Renaming is equivalent to creating a new file — causes re-upload
|
|
149
|
+
2. **Do not modify the runtime directory**: This directory stores transfer progress snapshots
|
|
150
|
+
3. **Config uses glob wildcards, not regex**: e.g. `/data/log/*.log`
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## LoggerConsumer Data Format
|
|
156
|
+
|
|
157
|
+
LoggerConsumer outputs in JSON line format, automatically parsed by LogBus2:
|
|
158
|
+
|
|
159
|
+
| LoggerConsumer Field | Description |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `#event_name` | Event name |
|
|
162
|
+
| `#time` | Timestamp (ISO 8601) |
|
|
163
|
+
| `#distinct_id` | Visitor ID |
|
|
164
|
+
| `#account_id` | Account ID |
|
|
165
|
+
| Business properties | Properties from track() call |
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Customer Prompt (must display when generating)
|
|
170
|
+
|
|
171
|
+
After generating the LogBus2 config file, present to the customer:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
LogBus2 config file generated: .ae-cli/output/daemon.json
|
|
175
|
+
|
|
176
|
+
## Official Documentation
|
|
177
|
+
|
|
178
|
+
| Document | Link |
|
|
179
|
+
|---|---|
|
|
180
|
+
| **LogBus2 User Guide** | https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US |
|
|
181
|
+
|
|
182
|
+
Download link is in the official doc's "二、Download LogBus2" section.
|
|
183
|
+
|
|
184
|
+
## Usage Steps
|
|
185
|
+
|
|
186
|
+
1. Download LogBus2 from the official docs (matching OS version)
|
|
187
|
+
2. Extract and deploy
|
|
188
|
+
3. Copy daemon.json to conf/ directory
|
|
189
|
+
4. Start: ./logbus start
|
|
190
|
+
5. Verify: ./logbus progress
|
|
191
|
+
|
|
192
|
+
Note: LogBus v1 is deprecated. Please use LogBus2.
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Reference Docs
|
|
198
|
+
|
|
199
|
+
- Official docs: https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US
|
|
200
|
+
- Wiki: `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md` — LogBus2 official doc mirror
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Output Mode Architecture
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 输出方式 = output mode | 插入 = insert (inject into project) | 片段 = snippet (code file delivery) | 产物 = deliverable/output | 端/平台 = platform | 项目路径 = project path (absolute) | LoggerConsumer = writes events to local log files | LogBus2 = log sync tool | 校验脚本 = validation/debug script
|
|
4
|
+
|
|
5
|
+
## Core Choice (per platform)
|
|
6
|
+
|
|
7
|
+
| Output Mode | Description | Parameters | Deliverables |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| **insert** | Direct Edit injection into user project | Requires project path (absolute) | Code written to target directory |
|
|
10
|
+
| **snippet** | Markdown print + generate code file | No path needed | `.ae-cli/output/<platform>-sdk.<ext>` |
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Server-side Defaults
|
|
15
|
+
|
|
16
|
+
Server-side always gets the following regardless of `insert` or `snippet`:
|
|
17
|
+
|
|
18
|
+
| Deliverable | Description |
|
|
19
|
+
|---|---|
|
|
20
|
+
| LoggerConsumer code | Server SDK writes to local log files |
|
|
21
|
+
| `.ae-cli/output/daemon.json` | LogBus2 config (reads logs and uploads to TE) |
|
|
22
|
+
|
|
23
|
+
**Note: LogBus v1 is deprecated. Use LogBus2 for all scenarios.**
|
|
24
|
+
|
|
25
|
+
Official docs:
|
|
26
|
+
- User guide: https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US
|
|
27
|
+
- Download link is in the official doc's "二、Download LogBus2" section
|
|
28
|
+
|
|
29
|
+
**Architecture**:
|
|
30
|
+
```
|
|
31
|
+
Server code → LoggerConsumer → Local log files
|
|
32
|
+
↓
|
|
33
|
+
LogBus2 process → AE platform
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Advantages:
|
|
37
|
+
- Data reliability (local log persistence)
|
|
38
|
+
- Async upload (doesn't block business logic)
|
|
39
|
+
- Batch upload (high network efficiency)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Standalone Options (reserved)
|
|
44
|
+
|
|
45
|
+
| Option | Description | Deliverable |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `datax` | Database batch import | `.ae-cli/output/datax-job.json` + README |
|
|
48
|
+
| `restful` | RESTful API direct upload (HTTP POST) | `.ae-cli/output/restful-client.<ext>` |
|
|
49
|
+
| `debug` | Validation script | `.ae-cli/output/te-debug.<ext>` |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## SDK Integration Mode → Platform List
|
|
54
|
+
|
|
55
|
+
| SDK Integration Mode | Platform List |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `client_only` | Client: [client_sdk_type] (e.g. `['android']`) |
|
|
58
|
+
| `server_only` | Server: [server_language] (e.g. `['java']`) |
|
|
59
|
+
| `both` | Client: [client_sdk_type], Server: [server_language] |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Quick Selection
|
|
64
|
+
|
|
65
|
+
| Quick Option | Description |
|
|
66
|
+
|---|---|
|
|
67
|
+
| **Generate all as snippets** | All platforms use `snippet`, output all code files at once |
|
|
68
|
+
|
|
69
|
+
When to use:
|
|
70
|
+
- Not inside the project directory
|
|
71
|
+
- Just want to reference code structure
|
|
72
|
+
- Multi-platform one-shot output
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Constraints
|
|
77
|
+
|
|
78
|
+
- Any `insert` must check `git status` first; refuse if uncommitted changes exist
|
|
79
|
+
- Client code: only generate events where `platform === "client"` or `platform === "both"`
|
|
80
|
+
- Server code: only generate events where `platform === "server"` or `platform === "both"`
|
|
81
|
+
- Server defaults to LoggerConsumer + LogBus2, does NOT default to RESTful
|
|
82
|
+
- **Use LogBus2 only; do not use LogBus v1** (deprecated)
|
|
83
|
+
- When generating LogBus2 config, must always provide official documentation link (user guide + download address)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Mode E — RESTful Call
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 模板 = template | 产物 = deliverable/output | 同构版本 = isomorphic version (same logic, different language) | endpoint = API endpoint URL | 鉴权规则 = authentication rules | Edit 写文件 = Edit to write file (insert mode)
|
|
4
|
+
|
|
5
|
+
## Template Selection
|
|
6
|
+
By appType → language:
|
|
7
|
+
- node-server → `src/lib/te-track.ts` (axios)
|
|
8
|
+
- python-server → `src/lib/te_track.py` (requests)
|
|
9
|
+
- go-server → `src/lib/te_track.go` (net/http)
|
|
10
|
+
- java-server → `src/main/java/.../TeTrack.java` (OkHttp)
|
|
11
|
+
|
|
12
|
+
## Deliverable (Node example)
|
|
13
|
+
```ts
|
|
14
|
+
// src/lib/te-track.ts
|
|
15
|
+
import axios from 'axios';
|
|
16
|
+
|
|
17
|
+
const SERVER_URL = '<SERVER_URL>';
|
|
18
|
+
const APPID = '<appId>';
|
|
19
|
+
|
|
20
|
+
export async function track(event: string, props: Record<string, unknown>, distinctId: string) {
|
|
21
|
+
await axios.post(`${SERVER_URL}/sync_json`, {
|
|
22
|
+
appid: APPID,
|
|
23
|
+
event,
|
|
24
|
+
'#time': new Date().toISOString(),
|
|
25
|
+
'#distinct_id': distinctId,
|
|
26
|
+
properties: { ...props },
|
|
27
|
+
}, { headers: { 'Content-Type': 'application/json' } });
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Other languages: provide isomorphic versions. Reference `~/.ae-cli/wiki/te-docs/synthesis/restful-api-reference.md`.
|
|
32
|
+
|
|
33
|
+
## Generation Steps
|
|
34
|
+
1. Select template by appType; confirm endpoint/auth rules from wiki
|
|
35
|
+
2. If CWD is a server project → directly Edit to write file (simplified version of Mode A Stage 3 logic)
|
|
36
|
+
3. Otherwise → deliver as snippet per Mode B
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# SDK Document Path Index
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 文档路径索引 = document path index | 主文档 = main document (latest, authoritative) | 历史版本文档 = historical/versioned document (ignore) | 进阶指南 = advanced guide | 预置属性 = preset properties | 自动采集 = auto-track
|
|
4
|
+
|
|
5
|
+
> This index points to authoritative wiki documents for the skill to reference during code generation.
|
|
6
|
+
> The wiki directory is maintained by `ae-cli tracking wiki` and synced from AE official documentation.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## ⚠️ Important: Document Reading Priority
|
|
11
|
+
|
|
12
|
+
**When generating code, must prioritize reading the "main document". Do NOT read historical/versioned documents!**
|
|
13
|
+
|
|
14
|
+
| 优先级 | 文档类型 | 说明 |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| 🔴 **最高** | Main doc (e.g. `android.md`) | Latest SDK guide with correct API |
|
|
17
|
+
| 🟡 中等 | Advanced, Auto-track, Preset Props | Supplementary info |
|
|
18
|
+
| ⚫ **忽略** | Historical docs | Outdated, may use incompatible API |
|
|
19
|
+
|
|
20
|
+
**Directory naming**:
|
|
21
|
+
- `xxx.md` — latest main doc (read first)
|
|
22
|
+
- `xxx-advanced.md` — supplementary guide
|
|
23
|
+
- `advanced/` — supplementary sub-pages
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 客户端 SDK
|
|
28
|
+
|
|
29
|
+
### 原生移动端
|
|
30
|
+
|
|
31
|
+
| SDK | Main Doc | Advanced | Auto-track | Preset Props |
|
|
32
|
+
|---|---|---|---|---|
|
|
33
|
+
| Android | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/automatic-event-tracking.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/preset-properties.md` |
|
|
34
|
+
| iOS | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/automatic-event-tracking.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/preset-properties.md` |
|
|
35
|
+
|
|
36
|
+
### Web / H5
|
|
37
|
+
|
|
38
|
+
| SDK | Main Doc | Advanced | Auto-track |
|
|
39
|
+
|---|---|---|---|
|
|
40
|
+
| JavaScript | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/automatic-event-tracking.md` |
|
|
41
|
+
|
|
42
|
+
### Mini Program & Mini Game (zh-CN only)
|
|
43
|
+
|
|
44
|
+
| SDK | Main Doc | Advanced | Auto-track |
|
|
45
|
+
|---|---|---|---|
|
|
46
|
+
| 小程序小游戏 | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/小程序小游戏.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/小程序小游戏/进阶指南.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/小程序小游戏/进阶指南/自动采集.md` |
|
|
47
|
+
|
|
48
|
+
### Game Engines
|
|
49
|
+
|
|
50
|
+
| SDK | Version | Main Doc | Advanced | Auto-track |
|
|
51
|
+
|---|---|---|---|---|
|
|
52
|
+
| Unity | v3.x | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/automatic-event-tracking.md` |
|
|
53
|
+
| Unreal | v2.x | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md` |
|
|
54
|
+
| Cocos2d-x | v2.x | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md` |
|
|
55
|
+
| CocosCreator | v2.x | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md` |
|
|
56
|
+
| Cocos2d-Lua (zh-CN) | v2.x | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/cocos2d-lua.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/cocos2d-lua/进阶指南.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/cocos2d-lua/进阶指南/自动采集.md` |
|
|
57
|
+
| LayaAir (zh-CN) | v2.x | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/layaair.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/layaair/进阶指南.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/layaair/进阶指南/自动采集.md` |
|
|
58
|
+
| Egret (zh-CN) | v2.x | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/egret.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/egret/进阶指南.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/游戏引擎/egret/进阶指南/自动采集.md` |
|
|
59
|
+
|
|
60
|
+
**Note**: Unity SDK upgraded from v2.x to v3.x with significant API changes:
|
|
61
|
+
- v2.x API: `ThinkingAnalyticsAPI.Track()`
|
|
62
|
+
- v3.x API: `TDAnalytics.Track()`
|
|
63
|
+
- Main doc `unity.md` = v3.x; historical docs removed from v6.0
|
|
64
|
+
|
|
65
|
+
### Cross-Platform
|
|
66
|
+
|
|
67
|
+
| SDK | Main Doc | Advanced |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| React Native | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced.md` |
|
|
70
|
+
| Flutter | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced.md` |
|
|
71
|
+
| uni-app | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced.md` |
|
|
72
|
+
| OpenHarmony (zh-CN) | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/openharmony.md` | `~/.ae-cli/wiki/te-docs/raw/客户端-sdk/openharmony/进阶指南.md` |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Server SDK
|
|
77
|
+
|
|
78
|
+
| Language | Main Doc | Advanced |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
| Java | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced.md` |
|
|
81
|
+
| Python | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced.md` |
|
|
82
|
+
| Golang | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced.md` |
|
|
83
|
+
| Node.js | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced.md` |
|
|
84
|
+
| PHP | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced.md` |
|
|
85
|
+
| C# | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-V2W3wv.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-IauKwI.md` |
|
|
86
|
+
| C++ | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-Zf9Jwl.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-YAilwk.md` |
|
|
87
|
+
| Ruby | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced.md` |
|
|
88
|
+
| Lua | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced.md` |
|
|
89
|
+
| Erlang | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang.md` | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced.md` |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Data Import Tools
|
|
94
|
+
|
|
95
|
+
| Tool | Doc Path | Description |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| **LogBus2** | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md` | Recommended, paired with LoggerConsumer |
|
|
98
|
+
| DataX Writer | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/ta-datax-writer-plugin-user-guide.md` | Database batch import |
|
|
99
|
+
| RESTful API | `~/.ae-cli/wiki/te-docs/raw/data-ingestion-guide/restful-api-user-guide.md` | Direct HTTP upload |
|
|
100
|
+
|
|
101
|
+
**Note: LogBus v1 is deprecated. Use LogBus2 for all scenarios.**
|
|
102
|
+
|
|
103
|
+
Official docs:
|
|
104
|
+
- Guide: https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Preset Properties & System Fields
|
|
109
|
+
|
|
110
|
+
| Doc | Path |
|
|
111
|
+
|---|---|
|
|
112
|
+
| Preset Properties & System Fields | `~/.ae-cli/wiki/te-docs/raw/preparations-before-data-ingestion/preset-properties-and-system-fields.md` |
|
|
113
|
+
| User Identification Rules | `~/.ae-cli/wiki/te-docs/raw/preparations-before-data-ingestion/user-identification-rules.md` |
|
|
114
|
+
| Data Rules | `~/.ae-cli/wiki/te-docs/raw/preparations-before-data-ingestion/data-rules.md` |
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Synthesized Docs (Overview)
|
|
119
|
+
|
|
120
|
+
LLM-synthesized overview docs from multiple raw sources:
|
|
121
|
+
|
|
122
|
+
| Synthesis Doc | Path | Description |
|
|
123
|
+
|---|---|---|
|
|
124
|
+
| Server SDK Overview | `~/.ae-cli/wiki/te-docs/synthesis/server-sdk-overview.md` | Unified architecture of all server SDKs |
|
|
125
|
+
| SDK Selection Guide | `~/.ae-cli/wiki/te-docs/synthesis/sdk-selection.md` | How to choose the right SDK |
|
|
126
|
+
| RESTful API Reference | `~/.ae-cli/wiki/te-docs/synthesis/restful-api-reference.md` | RESTful API summary |
|
|
127
|
+
| JS SDK Cheatsheet | `~/.ae-cli/wiki/te-docs/synthesis/js-sdk-cheatsheet.md` | JavaScript SDK quick reference |
|
|
128
|
+
| Batch Ingestion Comparison | `~/.ae-cli/wiki/te-docs/synthesis/batch-ingest-comparison.md` | LogBus / DataX / Kafka comparison |
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Server-side Code Insertion (LoggerConsumer + LogBus2)
|
|
2
|
+
|
|
3
|
+
> **Terminology**: 服务端 SDK = server-side SDK | 代码插入 = code insertion/injection | LoggerConsumer = writes events to local log files (recommended for production) | LogBus2 = log sync tool that reads local logs and uploads to TE | 架构 = architecture | 异步上报 = async upload | 批量上传 = batch upload | 重试策略 = retry strategy | 公共属性 = super property | 用户属性 = user property | 依赖管理 = dependency management
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
Server-side SDK uses the recommended LoggerConsumer + LogBus2 architecture:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Server code → LoggerConsumer → Local log files (/data/ta_log/)
|
|
11
|
+
↓
|
|
12
|
+
LogBus2 process → AE platform
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Note: LogBus v1 is deprecated. Use LogBus2 exclusively.**
|
|
16
|
+
|
|
17
|
+
Official docs:
|
|
18
|
+
- User guide: https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US
|
|
19
|
+
- Download link is in the official doc's "二、Download LogBus2" section
|
|
20
|
+
|
|
21
|
+
Advantages:
|
|
22
|
+
- Data reliability (local log persistence, resilient to network fluctuations)
|
|
23
|
+
- Async upload (doesn't block business logic)
|
|
24
|
+
- Batch upload (high network efficiency)
|
|
25
|
+
- Controllable retry (LogBus2 configures retry strategy)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Stage 0: Wiki
|
|
30
|
+
|
|
31
|
+
1. Read `references/sdk-index.md` to find the server SDK's wiki path
|
|
32
|
+
2. Read wiki main doc (initialization, LoggerConsumer configuration)
|
|
33
|
+
3. Read wiki advanced guide (user properties, batch upload, etc.)
|
|
34
|
+
|
|
35
|
+
### Stage 0.5: SDK Integration Confirmation (must execute after Stage 0)
|
|
36
|
+
|
|
37
|
+
Based on the selected SDK, identify the dependency management method (Maven / pip / go get / npm / composer, etc.), then confirm with user:
|
|
38
|
+
|
|
39
|
+
**Integration methods that require code changes (Maven / pip / go get / npm / composer, etc.)**:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Server-side <language> SDK detected. Dependency config changes needed.
|
|
43
|
+
|
|
44
|
+
Should I modify the config file directly to add SDK dependencies?
|
|
45
|
+
- yes → Edit the config file (e.g. pom.xml / requirements.txt / go.mod / package.json / composer.json), then proceed to Stage 1
|
|
46
|
+
- no → Reference the docs below to complete SDK integration, then reply yes to continue
|
|
47
|
+
|
|
48
|
+
Documentation: <wiki doc path>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- User `yes` → Execute Edit on config file, then proceed to Stage 1
|
|
52
|
+
- User `no` → Display doc path, pause and wait for user completion
|
|
53
|
+
|
|
54
|
+
**Integration methods that don't require code changes (manual JAR download / file placement, etc.)**:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
Please reference the docs below to complete SDK integration, then reply yes to continue.
|
|
58
|
+
|
|
59
|
+
Documentation: <wiki doc path>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Wait for user confirmation, then proceed to Stage 1.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Stage 1: Explore
|
|
67
|
+
|
|
68
|
+
1. Grep entry points: `src/main.*`, `App.*`, `Application.*` (Java), `main.go` (Go)
|
|
69
|
+
2. Grep existing tracking: `TaAnalytics|TDAnalytics|thinkingdata|// @tracking`
|
|
70
|
+
3. Grep business logic locations: `(createOrder|handlePayment|userRegister)` etc. (based on plan events)
|
|
71
|
+
4. Confirm log directory: recommends `/data/ta_log/` or `/var/log/ae-tracking/`
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Stage 2: Insertion Plan (markdown table)
|
|
76
|
+
|
|
77
|
+
**Platform filtering**:
|
|
78
|
+
- xlsx "Platform" value `服务端` / `server` → `platform: "server"` (server-only collection)
|
|
79
|
+
- xlsx "Platform" value `客户端,服务端` / `client,server` → `platform: "both"` (both platforms)
|
|
80
|
+
- xlsx "Platform" value `客户端` / `client` → `platform: "client"` (client-only, do NOT generate in server)
|
|
81
|
+
- Only insert events where `platform === "server"` or `platform === "both"`
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
## SDK Initialization (LoggerConsumer)
|
|
85
|
+
- File: <path>:<line>
|
|
86
|
+
- Code: TaAnalytics.init(new LoggerConsumer("/data/ta_log/"))
|
|
87
|
+
|
|
88
|
+
## Super Properties
|
|
89
|
+
- File: <path>:<line>
|
|
90
|
+
- setSuperProperties({...})
|
|
91
|
+
|
|
92
|
+
## User Properties
|
|
93
|
+
- File: <path>:<line>
|
|
94
|
+
- user_set / user_setOnce / user_add
|
|
95
|
+
|
|
96
|
+
## Event Group: <tag>
|
|
97
|
+
- <event_name>: <file>:<symbol> or SKIP (already present)
|
|
98
|
+
- ...
|
|
99
|
+
|
|
100
|
+
## LogBus2 Configuration
|
|
101
|
+
- File: (outside project) `.ae-cli/output/daemon.json`
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
After showing, ask user `ok` to enter Stage 3, or "go back to event X to remap".
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Stage 3: Batched Edit
|
|
109
|
+
|
|
110
|
+
### Batch 1: SDK init (LoggerConsumer)
|
|
111
|
+
|
|
112
|
+
```java
|
|
113
|
+
// Java example
|
|
114
|
+
TaAnalytics.init(new LoggerConsumer("/data/ta_log/")
|
|
115
|
+
.setRotateMode(LoggerConsumer.RotateMode.DAILY)
|
|
116
|
+
.setRotateSize(1024 * 1024 * 100)); // 100MB
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Insertion point: entry file static block / start of main function
|
|
120
|
+
|
|
121
|
+
### Batch 2: Super Properties + User Properties
|
|
122
|
+
|
|
123
|
+
Generate based on `meta.user_identity`:
|
|
124
|
+
- `user_set` / `user_setOnce`: user property upload
|
|
125
|
+
- `login()` call: on user login
|
|
126
|
+
|
|
127
|
+
### Batch 3..N: Events grouped by event_tag
|
|
128
|
+
|
|
129
|
+
Insert track calls at corresponding business logic locations for each event.
|
|
130
|
+
|
|
131
|
+
Each batch: use Edit tool; print file list + added line count after completion, ask `ok / undo`.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Stage 4: LogBus2 Configuration Generation
|
|
136
|
+
|
|
137
|
+
Additionally generate `.ae-cli/output/daemon.json` (NOT written to user project):
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"datasource": [
|
|
142
|
+
{
|
|
143
|
+
"type": "file",
|
|
144
|
+
"file_patterns": [
|
|
145
|
+
"/data/ta_log/*.log"
|
|
146
|
+
],
|
|
147
|
+
"app_id": "<appId>",
|
|
148
|
+
"unit_remove": "day",
|
|
149
|
+
"offset_remove": 7
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"push_url": "<SERVER_URL>"
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Always provide official docs** (for customer download and deployment):
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
LogBus2 official documentation:
|
|
160
|
+
- User guide: https://docs-v2.thinkingdata.cn/?version=latest&code=logbus2_installation&lan=en-US
|
|
161
|
+
- Download link is in the official doc's "二、Download LogBus2" section
|
|
162
|
+
|
|
163
|
+
Note: LogBus v1 is deprecated. Please use LogBus2.
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Stage 5: Summary
|
|
169
|
+
|
|
170
|
+
- Print all modified files + newly added events per file
|
|
171
|
+
- Print LogBus2 config file path (daemon.json)
|
|
172
|
+
- **Always provide LogBus2 official documentation link**
|
|
173
|
+
- Guide user to start LogBus2:
|
|
174
|
+
1. Copy `daemon.json` to LogBus2 `conf/` directory
|
|
175
|
+
2. Run `./logbus start`
|
|
176
|
+
- Suggest user consider running debug mode for verification
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Code Style
|
|
181
|
+
|
|
182
|
+
- LoggerConsumer singleton: create `src/lib/TeTracking.java` (if not exists)
|
|
183
|
+
- Prefix each track call with `// @tracking <event_name>` comment
|
|
184
|
+
- Log path: `/data/ta_log/` (Linux) or `C:\ta_log\` (Windows)
|
|
185
|
+
- Do NOT add try/catch (LoggerConsumer is fault-tolerant on its own)
|
|
186
|
+
- Event names / property names strictly from plan, do not modify
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Pre-check
|
|
191
|
+
|
|
192
|
+
- `git status --porcelain` not empty → refuse, prompt user to commit/stash first
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## LoggerConsumer Configuration by Language
|
|
197
|
+
|
|
198
|
+
| Language | LoggerConsumer Class | Log Format |
|
|
199
|
+
|---|---|---|
|
|
200
|
+
| Java | `LoggerConsumer` | JSON line |
|
|
201
|
+
| Python | `TaLoggerConsumer` | JSON line |
|
|
202
|
+
| Go | `LoggerConsumer` | JSON line |
|
|
203
|
+
| Node.js | `LoggerConsumer` | JSON line |
|
|
204
|
+
| PHP | `TE_LoggerConsumer` | JSON line |
|
|
205
|
+
|
|
206
|
+
See wiki SDK docs for details.
|