ae-tracking 0.1.0
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/CHANGELOG.md +43 -0
- package/README.md +50 -0
- package/dist/bin/ae-tracking.d.ts +2 -0
- package/dist/bin/ae-tracking.js +20 -0
- package/dist/scripts/postinstall.d.ts +1 -0
- package/dist/scripts/postinstall.js +17 -0
- package/dist/src/auth.d.ts +12 -0
- package/dist/src/auth.js +215 -0
- package/dist/src/cli/auth.d.ts +8 -0
- package/dist/src/cli/auth.js +81 -0
- package/dist/src/cli/code.d.ts +2 -0
- package/dist/src/cli/code.js +85 -0
- package/dist/src/cli/debug.d.ts +2 -0
- package/dist/src/cli/debug.js +152 -0
- package/dist/src/cli/home.d.ts +4 -0
- package/dist/src/cli/home.js +15 -0
- package/dist/src/cli/init.d.ts +14 -0
- package/dist/src/cli/init.js +107 -0
- package/dist/src/cli/package-root.d.ts +1 -0
- package/dist/src/cli/package-root.js +20 -0
- package/dist/src/cli/plan.d.ts +2 -0
- package/dist/src/cli/plan.js +242 -0
- package/dist/src/cli/wiki.d.ts +2 -0
- package/dist/src/cli/wiki.js +20 -0
- package/dist/src/client.d.ts +62 -0
- package/dist/src/client.js +56 -0
- package/dist/src/config.d.ts +4 -0
- package/dist/src/config.js +29 -0
- package/dist/src/plan/autotrack.d.ts +18 -0
- package/dist/src/plan/autotrack.js +350 -0
- package/dist/src/plan/conflict.d.ts +34 -0
- package/dist/src/plan/conflict.js +106 -0
- package/dist/src/plan/draft.d.ts +39 -0
- package/dist/src/plan/draft.js +104 -0
- package/dist/src/plan/fix.d.ts +32 -0
- package/dist/src/plan/fix.js +187 -0
- package/dist/src/plan/types.d.ts +57 -0
- package/dist/src/plan/types.js +1 -0
- package/dist/src/project-detect/detect.d.ts +2 -0
- package/dist/src/project-detect/detect.js +120 -0
- package/dist/src/project-detect/types.d.ts +9 -0
- package/dist/src/project-detect/types.js +1 -0
- package/dist/src/te-debug/client.d.ts +12 -0
- package/dist/src/te-debug/client.js +54 -0
- package/dist/src/te-debug/types.d.ts +16 -0
- package/dist/src/te-debug/types.js +1 -0
- package/dist/src/te-plan/fetch.d.ts +3 -0
- package/dist/src/te-plan/fetch.js +47 -0
- package/dist/src/te-plan/types.d.ts +7 -0
- package/dist/src/te-plan/types.js +1 -0
- package/dist/src/wiki/block-to-md.d.ts +74 -0
- package/dist/src/wiki/block-to-md.js +88 -0
- package/dist/src/wiki/crawler.d.ts +3 -0
- package/dist/src/wiki/crawler.js +71 -0
- package/dist/src/wiki/index-writer.d.ts +4 -0
- package/dist/src/wiki/index-writer.js +70 -0
- package/dist/src/wiki/slugify.d.ts +1 -0
- package/dist/src/wiki/slugify.js +11 -0
- package/dist/src/wiki/types.d.ts +29 -0
- package/dist/src/wiki/types.js +1 -0
- package/dist/src/wiki-query/query.d.ts +8 -0
- package/dist/src/wiki-query/query.js +32 -0
- package/dist/src/xlsx/read.d.ts +2 -0
- package/dist/src/xlsx/read.js +457 -0
- package/dist/src/xlsx/write.d.ts +3 -0
- package/dist/src/xlsx/write.js +251 -0
- package/package.json +47 -0
- package/skills/generate-tracking-code/SKILL.md +551 -0
- package/skills/generate-tracking-code/references/client-sdk-insert.md +92 -0
- package/skills/generate-tracking-code/references/datax-config.md +41 -0
- package/skills/generate-tracking-code/references/debug-script.md +99 -0
- package/skills/generate-tracking-code/references/logbus-config.md +224 -0
- package/skills/generate-tracking-code/references/modes.md +81 -0
- package/skills/generate-tracking-code/references/restful-call.md +34 -0
- package/skills/generate-tracking-code/references/sdk-index.md +123 -0
- package/skills/generate-tracking-code/references/server-sdk-insert.md +175 -0
- package/skills/generate-tracking-code/references/snippet-delivery.md +240 -0
- package/skills/generate-tracking-code/references/te-api.md +181 -0
- package/skills/generate-tracking-plan/SKILL.md +826 -0
- package/skills/generate-tracking-plan/references/autotrack-events.md +238 -0
- package/skills/generate-tracking-plan/references/te-api.md +97 -0
- package/skills/generate-tracking-plan/references/xlsx-schema.md +149 -0
- package/skills/te-wiki-synthesize/SKILL.md +142 -0
- package/wiki/te-docs/index.md +223 -0
- package/wiki/te-docs/log.md +28 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/345/211/215/345/207/206/345/244/207/345/267/245/344/275/234//346/225/260/346/215/256/350/247/204/345/210/231.md +379 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/345/211/215/345/207/206/345/244/207/345/267/245/344/275/234//347/224/250/346/210/267/350/257/206/345/210/253/350/247/204/345/210/231.md +461 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/345/211/215/345/207/206/345/244/207/345/267/245/344/275/234//351/242/204/347/275/256/345/261/236/346/200/247/344/270/216/347/263/273/347/273/237/345/255/227/346/256/265.md +634 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/345/211/215/345/207/206/345/244/207/345/267/245/344/275/234.md +190 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227/restful-api-/344/275/277/347/224/250/346/214/207/345/215/227.md +195 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227/sdk-information-collection-rules.md +63 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/205/263/344/272/216-gdpr.md +81 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//345/220/210/350/247/204/346/214/207/345/215/227.md +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//346/233/264/346/226/260/346/227/245/345/277/227.md +502 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//350/277/233/351/230/266/346/214/207/345/215/227//344/270/211/346/226/271/346/225/260/346/215/256.md +367 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +117 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//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 +96 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//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 +947 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//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 +686 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android//350/277/233/351/230/266/346/214/207/345/215/227.md +1126 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/android.md +461 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//346/233/264/346/226/260/346/227/245/345/277/227-RCu1wk.md +64 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//346/233/264/346/226/260/346/227/245/345/277/227.md +167 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225-T57MwB.md +56 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//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 +57 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227-JARDwp.md +455 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227.md +477 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c-Uicgw2.md +145 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/c.md +253 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/h5-/344/270/216-app-sdk-/346/211/223/351/200/232.md +179 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//346/233/264/346/226/260/346/227/245/345/277/227.md +491 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//350/277/233/351/230/266/346/214/207/345/215/227//344/270/211/346/226/271/346/225/260/346/215/256.md +154 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +148 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//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 +92 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//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 +479 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//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 +587 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//350/277/233/351/230/266/346/214/207/345/215/227.md +912 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios//351/232/220/347/247/201/346/270/205/345/215/225.md +183 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/ios.md +397 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//345/220/210/350/247/204/346/214/207/345/215/227.md +39 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//346/233/264/346/226/260/346/227/245/345/277/227.md +239 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +55 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//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//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//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 +113 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//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 +267 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript//350/277/233/351/230/266/346/214/207/345/215/227.md +455 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/javascript.md +257 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/macos//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 +77 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/macos//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 +249 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/macos//350/277/233/351/230/266/346/214/207/345/215/227.md +738 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/macos.md +317 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/openharmony//345/220/210/350/247/204/346/214/207/345/215/227.md +345 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/openharmony//346/233/264/346/226/260/346/227/245/345/277/227.md +128 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +60 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +54 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/openharmony//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 +121 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +286 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227.md +408 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk/openharmony.md +209 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//345/256/242/346/210/267/347/253/257-sdk-/345/270/270/350/247/201/351/227/256/351/242/230.md +72 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +56 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +313 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +78 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +58 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +192 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +301 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +644 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +440 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +35 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +49 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +53 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +32 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +65 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +288 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +236 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//345/220/210/350/247/204/346/214/207/345/215/227.md +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//346/233/264/346/226/260/346/227/245/345/277/227.md +122 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +27 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//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 +53 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//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 +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//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 +177 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x//350/277/233/351/230/266/346/214/207/345/215/227.md +368 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-x.md +311 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//345/220/210/350/247/204/346/214/207/345/215/227.md +42 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//346/233/264/346/226/260/346/227/245/345/277/227.md +184 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +142 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//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 +60 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//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 +96 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//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 +255 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator//350/277/233/351/230/266/346/214/207/345/215/227.md +659 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocoscreator.md +213 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//345/220/210/350/247/204/346/214/207/345/215/227.md +39 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//346/233/264/346/226/260/346/227/245/345/277/227.md +42 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//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 +59 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//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 +37 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//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 +50 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona//350/277/233/351/230/266/346/214/207/345/215/227.md +281 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/corona.md +304 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +129 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +74 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +60 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +74 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +228 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +640 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret.md +210 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +129 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +79 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +60 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +73 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +254 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//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 +626 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair.md +228 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//345/216/206/345/217/262/347/211/210/346/234/254-unity-sdk-/344/275/277/347/224/250/346/214/207/345/215/227.md +503 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//345/220/210/350/247/204/346/214/207/345/215/227.md +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//346/233/264/346/226/260/346/227/245/345/277/227.md +505 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//350/277/233/351/230/266/346/214/207/345/215/227//344/270/211/346/226/271/346/225/260/346/215/256.md +86 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//350/277/233/351/230/266/346/214/207/345/215/227//345/216/237/347/224/237-sdk-/345/217/257/346/217/222/346/213/224.md +44 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +55 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//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 +53 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//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 +156 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//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 +293 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity//350/277/233/351/230/266/346/214/207/345/215/227.md +667 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unity.md +203 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//345/220/210/350/247/204/346/214/207/345/215/227.md +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//346/233/264/346/226/260/346/227/245/345/277/227.md +209 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//350/277/233/351/230/266/346/214/207/345/215/227//344/270/211/346/226/271/346/225/260/346/215/256.md +152 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//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 +41 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//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 +81 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//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 +181 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal//350/277/233/351/230/266/346/214/207/345/215/227.md +346 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/unreal.md +228 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216.md +20 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//346/233/264/346/226/260/346/227/245/345/277/227.md +201 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//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//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//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 +139 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//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 +65 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter//350/277/233/351/230/266/346/214/207/345/215/227.md +356 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/flutter.md +176 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//346/233/264/346/226/260/346/227/245/345/277/227.md +162 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//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 +60 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//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 +140 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//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 +23 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native//350/277/233/351/230/266/346/214/207/345/215/227.md +375 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/react-native.md +176 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//346/233/264/346/226/260/346/227/245/345/277/227.md +34 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +96 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +48 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//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 +57 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//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 +68 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//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 +249 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app//350/277/233/351/230/266/346/214/207/345/215/227.md +420 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266/uni-app.md +193 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk//350/267/250/345/271/263/345/217/260/346/241/206/346/236/266.md +15 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//345/256/242/346/210/267/347/253/257-sdk.md +35 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/225/260/346/215/256/345/257/274/345/205/245/filebeat-logstash-/344/275/277/347/224/250/346/214/207/345/215/227.md +638 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/225/260/346/215/256/345/257/274/345/205/245/logbus2-/344/275/277/347/224/250/346/214/207/345/215/227.md +1140 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/225/260/346/215/256/345/257/274/345/205/245/ta-datax-writer-/346/217/222/344/273/266/344/275/277/347/224/250/346/214/207/345/215/227.md +256 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/225/260/346/215/256/345/257/274/345/205/245.md +17 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/225/260/346/225/260/347/247/221/346/212/200sdk/351/232/220/347/247/201/345/243/260/346/230/216.md +298 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//346/233/264/346/226/260/346/227/245/345/277/227-HZrPwz.md +80 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//346/233/264/346/226/260/346/227/245/345/277/227-U1zKwj.md +108 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//346/233/264/346/226/260/346/227/245/345/277/227.md +114 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225-LEb9wx.md +46 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225-TfR3wg.md +46 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//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 +93 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247-U1Qvwk.md +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247-X08Fw7.md +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227-Jc1dwk.md +245 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227-YGuuwc.md +237 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c//350/277/233/351/230/266/346/214/207/345/215/227.md +242 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c-D4KBwg.md +211 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c-HF7Dwv.md +169 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/c.md +225 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/erlang//346/233/264/346/226/260/346/227/245/345/277/227.md +55 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/erlang//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 +51 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/erlang//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/erlang//350/277/233/351/230/266/346/214/207/345/215/227.md +151 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/erlang.md +204 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/golang//346/233/264/346/226/260/346/227/245/345/277/227.md +135 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/golang//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 +46 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/golang//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/golang//350/277/233/351/230/266/346/214/207/345/215/227.md +208 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/golang.md +193 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/java//346/233/264/346/226/260/346/227/245/345/277/227.md +138 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/java//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 +52 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/java//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/java//350/277/233/351/230/266/346/214/207/345/215/227.md +289 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/java.md +214 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/lua//346/233/264/346/226/260/346/227/245/345/277/227.md +123 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/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 +57 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/lua//350/277/233/351/230/266/346/214/207/345/215/227.md +234 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/lua.md +165 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/nodejs//346/233/264/346/226/260/346/227/245/345/277/227.md +89 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/nodejs//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 +65 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/nodejs//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/nodejs//350/277/233/351/230/266/346/214/207/345/215/227.md +263 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/nodejs.md +161 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/php//346/233/264/346/226/260/346/227/245/345/277/227.md +86 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/php//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//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/php//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/php//350/277/233/351/230/266/346/214/207/345/215/227.md +269 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/php.md +206 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/python//346/233/264/346/226/260/346/227/245/345/277/227.md +155 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/python//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 +47 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/python//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/python//350/277/233/351/230/266/346/214/207/345/215/227.md +274 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/python.md +162 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/ruby//346/233/264/346/226/260/346/227/245/345/277/227.md +53 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/ruby//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 +50 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/ruby//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 +75 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/ruby//350/277/233/351/230/266/346/214/207/345/215/227.md +226 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk/ruby.md +165 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227//346/234/215/345/212/241/347/253/257-sdk.md +23 -0
- package/wiki/te-docs/raw//346/216/245/345/205/245/346/214/207/345/215/227.md +64 -0
- package/wiki/te-docs/raw//350/277/233/351/230/266/346/225/260/346/215/256/347/261/273/345/236/213//345/217/257/346/233/264/346/226/260/344/272/213/344/273/266.md +109 -0
- package/wiki/te-docs/raw//350/277/233/351/230/266/346/225/260/346/215/256/347/261/273/345/236/213//351/246/226/346/254/241/344/272/213/344/273/266/346/240/241/351/252/214.md +88 -0
- package/wiki/te-docs/raw//350/277/233/351/230/266/346/225/260/346/215/256/347/261/273/345/236/213.md +22 -0
- package/wiki/te-docs/schema.md +17 -0
- package/wiki/te-docs/synthesis/batch-ingest-comparison.md +117 -0
- package/wiki/te-docs/synthesis/js-sdk-cheatsheet.md +136 -0
- package/wiki/te-docs/synthesis/restful-api-reference.md +142 -0
- package/wiki/te-docs/synthesis/sdk-selection.md +79 -0
- package/wiki/te-docs/synthesis/server-sdk-overview.md +124 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: c_sdk_advanced
|
|
3
|
+
name: "进阶指南"
|
|
4
|
+
wikiToken: TDQVw9hTRi2KYjkieoScuelXnIh
|
|
5
|
+
parentWikiToken: SLlQwuOYRifeDVkRAxTc08pVnMg
|
|
6
|
+
updateTime: 1745309867000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v5.0&lan=zh-CN&code=c_sdk_advanced
|
|
8
|
+
---
|
|
9
|
+
# 进阶指南
|
|
10
|
+
|
|
11
|
+
### 一、发送事件
|
|
12
|
+
|
|
13
|
+
在 SDK 初始化完成之后,您就可以进行数据埋点,收集用户的的行为信息。一般情况下普通事件即可满足业务场景需求,您也可以根据自己的实际业务场景使用首次、可更新等事件。
|
|
14
|
+
|
|
15
|
+
#### 1.1 普通事件
|
|
16
|
+
|
|
17
|
+
您可以调用 `td_track` 来上传事件,建议您根据先前梳理的文档来设置事件的属性以及发送事件的条件,此处以用户购买某商品作为范例:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
// 设置事件属性
|
|
21
|
+
TDProperties *properties = td_init_properties();
|
|
22
|
+
TD_ASSERT(*TD_OK *== td_add_string("product_name", "goods_name", strlen("goods_name"), properties));
|
|
23
|
+
// 上报带有自定义属性的事件数据,同样account_id 和 distinct_id 必须至少设置其中一个
|
|
24
|
+
TD_ASSERT(*TD_OK *== td_track("account_id", "distinct_id", "product_buy", properties, ta));
|
|
25
|
+
td_free_properties(properties);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### 1.2 首次事件
|
|
29
|
+
|
|
30
|
+
首次事件是指针对某个设备或者其他维度的 ID,只会记录一次的事件。例如在一些场景下,您可能希望记录在某个设备上的激活事件,则可以用首次事件来上报数据。
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
TD_ASSERT(*TD_OK *== td_track_first_event("account_id", "distinct_id", "device_activation", "first_id", properties, ta));
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<!-- unsupported block: 34 -->
|
|
37
|
+
|
|
38
|
+
注意:由于在服务端完成对是否首次的校验,首次事件默认会延时 1 小时入库。
|
|
39
|
+
|
|
40
|
+
#### 1.3 可更新事件
|
|
41
|
+
|
|
42
|
+
您可以通过可更新事件实现特定场景下需要修改事件数据的需求。可更新事件需要指定标识该事件的 ID,并在创建可更新事件对象时传入。AE 后台将根据事件名和事件 ID 来确定需要更新的数据。
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
// 上报可更新事件,事件名为UPDATABLE_EVENT,事件ID为event_id
|
|
46
|
+
// 上报后事件属性 status 为 3, price 为 100
|
|
47
|
+
TDProperties *properties = td_init_properties();
|
|
48
|
+
TD_ASSERT(*TD_OK *== td_add_int("price",100,properties));
|
|
49
|
+
TD_ASSERT(*TD_OK *== td_add_int("status",3,properties));
|
|
50
|
+
TD_ASSERT(*TD_OK *== td_track_update("account_id", "distinct_id", "UPDATABLE_EVENT", "event_id",properties, ta));
|
|
51
|
+
td_free_properties(properties);
|
|
52
|
+
// 上报后同样的事件属性 status 被更新为 5, price 不变
|
|
53
|
+
TDProperties *new_properties = td_init_properties();
|
|
54
|
+
TD_ASSERT(*TD_OK *== td_add_int("status",5,new_properties));
|
|
55
|
+
TD_ASSERT(*TD_OK *== td_track_update("account_id", "distinct_id", "UPDATABLE_EVENT", "event_id",new_properties, ta));
|
|
56
|
+
td_free_properties(new_properties);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### 1.4 可重写事件
|
|
60
|
+
|
|
61
|
+
可重写事件与可更新事件类似,区别在于可重写事件会用最新的数据完全覆盖历史数据,从效果上看相当于删除前一条数据,并入库最新的数据。AE 后台将根据事件名和事件 ID 来确定需要更新的数据。
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
// 上报可重写事件,事件名为OVERWRITE_EVENT,事件ID为event_id
|
|
65
|
+
// 上报后事件属性 status 为 3, price 为 100
|
|
66
|
+
TDProperties *properties = td_init_properties();
|
|
67
|
+
TD_ASSERT(*TD_OK *== td_add_int("price",100,properties));
|
|
68
|
+
TD_ASSERT(*TD_OK *== td_add_int("status",3,properties));
|
|
69
|
+
TD_ASSERT(*TD_OK *== td_track_overwrite("account_id", "distinct_id", "OVERWRITE_EVENT", "event_id",properties, ta));
|
|
70
|
+
td_free_properties(properties);
|
|
71
|
+
// 上报后同样的事件属性 status 被更新为 5, price 属性被删除
|
|
72
|
+
TDProperties *new_properties = td_init_properties();
|
|
73
|
+
TD_ASSERT(*TD_OK *== td_add_int("status",5,new_properties));
|
|
74
|
+
TD_ASSERT(*TD_OK *== td_track_overwrite("account_id", "distinct_id", "OVERWRITE_EVENT", "event_id",new_properties, ta));
|
|
75
|
+
td_free_properties(new_properties);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 二、用户属性
|
|
79
|
+
|
|
80
|
+
AE 平台支持的用户属性设置API有: `td_user_set`、`td_user_setOnce`、`td_user_add`、`td_user_unset`、`td_user_delete`、`td_user_append`、`td_user_uniq_append`。
|
|
81
|
+
|
|
82
|
+
#### 2.1 td_user_set
|
|
83
|
+
|
|
84
|
+
对于一般的用户属性,您可以调用`td_user_set`来进行设置。使用该接口上传的属性将会覆盖原有的属性值,如果之前不存在该用户属性,则会新建该用户属性,类型与传入属性的类型一致,此处以设置用户名为例:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
//此时username为TA
|
|
88
|
+
TDProperties *user_properties = td_init_properties();
|
|
89
|
+
TD_ASSERT(*TD_OK *== td_add_string("user_name", "TA", strlen("TA"), user_properties));
|
|
90
|
+
TD_ASSERT(*TD_OK *== td_user_set("account_id", "distinct_id", user_properties,ta));
|
|
91
|
+
td_free_properties(user_properties);
|
|
92
|
+
|
|
93
|
+
//此时userName为TE
|
|
94
|
+
TDProperties *user_properties2 = td_init_properties();
|
|
95
|
+
TD_ASSERT(*TD_OK *== td_add_string("user_name", "TE", strlen("TE"), user_properties2));
|
|
96
|
+
TD_ASSERT(*TD_OK *== td_user_set("account_id", "distinct_id", user_properties2,ta));
|
|
97
|
+
td_free_properties(user_properties2);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
#### 2.2 td_user_setOnce
|
|
101
|
+
|
|
102
|
+
如果您要上传的用户属性只要设置一次,则可以调用`t``d``_user_setOnce`来进行设置,当该属性之前已经有值的时候,将会忽略这条信息,再以设置用户名为例:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
//first_payment_time为2018-01-01 01:23:45.678
|
|
106
|
+
TDProperties *user_properties = td_init_properties();
|
|
107
|
+
TD_ASSERT(*TD_OK *== td_add_string("first_payment_time", "2018-01-01 01:23:45.678", strlen("2018-01-01 01:23:45.678"), user_properties));
|
|
108
|
+
TD_ASSERT(*TD_OK *== td_user_setOnce("account_id", "distinct_id", user_properties,ta));
|
|
109
|
+
td_free_properties(user_properties);
|
|
110
|
+
|
|
111
|
+
//first_payment_time仍然为2018-01-01 01:23:45.678
|
|
112
|
+
TDProperties *user_properties2 = td_init_properties();
|
|
113
|
+
TD_ASSERT(*TD_OK *== td_add_string("first_payment_time", "2018-12-31 01:23:45.678", strlen("2018-12-31 01:23:45.678"), user_properties2));
|
|
114
|
+
TD_ASSERT(*TD_OK *== td_user_setOnce("account_id", "distinct_id", user_properties2,ta));
|
|
115
|
+
td_free_properties(user_properties2);
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### 2.3 td_user_add
|
|
119
|
+
|
|
120
|
+
当您要上传数值型的属性时,您可以调用`t``d``_user_add`来对该属性进行累加操作,如果该属性还未被设置,则会赋值 0 后再进行计算,可传入负值,等同于相减操作。此处以累计付费金额为例:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
// 上传用户属性,此时"total_revenue"的值为30
|
|
124
|
+
TDProperties *user_properties = td_init_properties();
|
|
125
|
+
TD_ASSERT(*TD_OK *== td_add_int("total_revenue", 30, user_properties));
|
|
126
|
+
TD_ASSERT(*TD_OK *== td_user_add("account_id", "distinct_id", user_properties, ta));
|
|
127
|
+
td_free_properties(user_properties);
|
|
128
|
+
|
|
129
|
+
// 上传用户属性,此时"total_revenue"的值为678
|
|
130
|
+
TDProperties *new_user_properties = td_init_properties();
|
|
131
|
+
TD_ASSERT(*TD_OK *== td_add_int("total_revenue",648 , new_user_properties));
|
|
132
|
+
TD_ASSERT(*TD_OK *== td_user_add("account_id", "distinct_id", new_user_properties, ta));
|
|
133
|
+
td_free_properties(new_user_properties);
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
<!-- unsupported block: 34 -->
|
|
137
|
+
|
|
138
|
+
设置的属性key为字符串,Value 只允许为数值。
|
|
139
|
+
|
|
140
|
+
#### 2.4 td_user_append
|
|
141
|
+
|
|
142
|
+
您可以调用 `t``d``_user_append` 对数组类型的用户属性进行追加操作。
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
// 此时user_list的属性值为["apple","ball"]
|
|
146
|
+
TDProperties *array_properties = td_init_properties();
|
|
147
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "apple", strlen("apple"), array_properties));
|
|
148
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "ball", strlen("ball"), array_properties));
|
|
149
|
+
TD_ASSERT(*TD_OK *== td_user_append("account_id", "distinct_id", array_properties, ta));
|
|
150
|
+
td_free_properties(array_properties);
|
|
151
|
+
|
|
152
|
+
// 此时user_list的属性值为["apple","apple","ball","cube"]
|
|
153
|
+
TDProperties *new_array_properties = td_init_properties();
|
|
154
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "apple", strlen("apple"), new_array_properties));
|
|
155
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "cube", strlen("cube"), new_array_properties));
|
|
156
|
+
TD_ASSERT(*TD_OK *== td_user_append("account_id", "distinct_id", new_array_properties, ta));
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
#### 2.5 td_user_uniq_append
|
|
160
|
+
|
|
161
|
+
您可以调用 `t``d``_user_uniq``_a``ppend` 对 数组类型的用户属性进行追加操作。调用 `t``d``_user_uniq``_a``ppend` 接口会对追加的用户属性进行去重, `t``d``_user_append` 接口不做去重,用户属性可存在重复。
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
// 此时user_list的属性值为["apple","ball"]
|
|
165
|
+
TDProperties *array_properties = td_init_properties();
|
|
166
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "apple", strlen("apple"), array_properties));
|
|
167
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "ball", strlen("ball"), array_properties));
|
|
168
|
+
TD_ASSERT(*TD_OK *== td_user_append("account_id", "distinct_id", array_properties, ta));
|
|
169
|
+
td_free_properties(array_properties);
|
|
170
|
+
|
|
171
|
+
// 此时user_list的属性值为["apple","ball","cube"]
|
|
172
|
+
TDProperties *new_array_properties = td_init_properties();
|
|
173
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "apple", strlen("apple"), new_array_properties));
|
|
174
|
+
TD_ASSERT(*TD_OK *== td_append_array("user_list", "cube", strlen("cube"), new_array_properties));
|
|
175
|
+
TD_ASSERT(*TD_OK *== td_user_uniq_append("account_id","distinct_id", new_array_properties, ta));
|
|
176
|
+
td_free_properties(new_array_properties);
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
#### 2.6 td_user_unset
|
|
180
|
+
|
|
181
|
+
当您要清空用户的用户属性值时,您可以调用`t``d``_user_unset`来对指定属性进行清空操作,如果该属性还未在集群中被创建,则`t``d``_user_unset`不会创建该属性
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
TD_ASSERT(*TD_OK *== td_user_unset("account_id", "distinct_id", "test", ta));
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
<!-- unsupported block: 34 -->
|
|
188
|
+
|
|
189
|
+
td_user_unset: 的传入值为被清空属性的 Key 值。
|
|
190
|
+
|
|
191
|
+
#### 2.7 td_user_delete
|
|
192
|
+
|
|
193
|
+
如果您要删除某个用户,可以调用`td_user_delete`将这名用户删除,您将无法再查询该名用户的用户属性,但该用户产生的事件仍然可以被查询到,该操作可能产生不可逆的后果,请慎用
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
TD_ASSERT(*TD_OK *== td_user_delete("account_id", "distinct_id", ta));
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### 三、其他功能
|
|
200
|
+
|
|
201
|
+
#### 3.1 BatchConsumer
|
|
202
|
+
|
|
203
|
+
::: warning 注意
|
|
204
|
+
|
|
205
|
+
当数据量过大或者网络异常时,有数据丢失的风险,不建议在正式环境中使用
|
|
206
|
+
|
|
207
|
+
:::
|
|
208
|
+
|
|
209
|
+
批量实时地向 AE 服务器传输数据,不需要搭配传输工具,可设置缓存区大小,默认20,即缓存区保留的数据总数最大为20(20为每次上传的batch值,可设置)。
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
// 首先:修改 CMakeList.txt 文件,打包 TDBatchConsumer 类型的库文件
|
|
213
|
+
|
|
214
|
+
struct TDAnalytics* ta = NULL;
|
|
215
|
+
struct TDConsumer* consumer = NULL;
|
|
216
|
+
|
|
217
|
+
//生成config
|
|
218
|
+
TDConfig *config = td_init_config();
|
|
219
|
+
// 配置appid和url
|
|
220
|
+
char* appid = "APPID";
|
|
221
|
+
char* serverURL = "SERVER_URL";
|
|
222
|
+
TD_ASSERT(*TD_OK *== td_add_string("push_url", serverURL, strlen(serverURL), config));
|
|
223
|
+
TD_ASSERT(*TD_OK *== td_add_string("appid", appid, strlen(appid), config));
|
|
224
|
+
|
|
225
|
+
// 生成SDK实例
|
|
226
|
+
if (*TD_OK *!= td_init_consumer(&consumer, config)) {
|
|
227
|
+
fprintf(stderr, "Failed to initialize the consumer.");
|
|
228
|
+
return 1;
|
|
229
|
+
}
|
|
230
|
+
td_free_properties(config);
|
|
231
|
+
if (*TD_OK *!= td_init(consumer, &ta)) {
|
|
232
|
+
fprintf(stderr, "Failed to initialize the SDK.");
|
|
233
|
+
return 1;
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
参数说明:
|
|
238
|
+
|
|
239
|
+
- `APPID`: 您的项目的 APPID,可通过在 AE 后台项目管理页面获取
|
|
240
|
+
- `SERVER_URL`: 数据上传的 URL
|
|
241
|
+
- 如果您对接的是云服务,填入: https://global-receiver-ta.thinkingdata.cn
|
|
242
|
+
- 如果您使用私有化部署版本,请为数据采集地址绑定域名,并配置 HTTPS 证书:https://数据采集地址绑定域名
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: cpp_server_sdk_installation
|
|
3
|
+
name: "C++"
|
|
4
|
+
wikiToken: D4KBwgaZjiQA3Nklwdtc9z1EnGf
|
|
5
|
+
parentWikiToken: O3YxwgHGiiEnvYkHCcIcX51inkf
|
|
6
|
+
updateTime: 1762772307000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v5.0&lan=zh-CN&code=cpp_server_sdk_installation
|
|
8
|
+
---
|
|
9
|
+
# C++
|
|
10
|
+
|
|
11
|
+
::: tip 提示
|
|
12
|
+
|
|
13
|
+
在接入前, 请先阅读接入前准备。
|
|
14
|
+
|
|
15
|
+
c++ 版本要求 c++ 11。需要 g++ 5.1.0 以上版本。
|
|
16
|
+
|
|
17
|
+
:::
|
|
18
|
+
|
|
19
|
+
**最新版本**:v2.0.0
|
|
20
|
+
|
|
21
|
+
**更新时间**:2023-11-30
|
|
22
|
+
|
|
23
|
+
**资源下载:**源代码
|
|
24
|
+
|
|
25
|
+
::: warning 注意
|
|
26
|
+
|
|
27
|
+
当前文档适用于 v2.0.0 及以后的版本,历史版本请参考 C++ SDK 接入指南(V1)
|
|
28
|
+
|
|
29
|
+
:::
|
|
30
|
+
|
|
31
|
+
### 一、集成SDK
|
|
32
|
+
|
|
33
|
+
###### Ⅰ. 编译源码,获取`libthinkingdata.a`文件
|
|
34
|
+
|
|
35
|
+
1. AE SDK 依赖 rapidjson 解析库,你需要下载 rapidjson 库到本地。
|
|
36
|
+
1. 下载 C++ SDK 源码,修改 SDK 中的 `CMakeLists.txt` 文件,选择你需要的数据消费者进行打包(详细内容可以参考SDK源码内的 `CMakeLists.txt` 文件)。这里以最常用的 `log``consumer` 举例:
|
|
37
|
+
```
|
|
38
|
+
cmake_minimum_required(VERSION 3.12)
|
|
39
|
+
project(ThinkingData)
|
|
40
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
41
|
+
set(CMAKE_CXX_STANDARD 11)
|
|
42
|
+
|
|
43
|
+
message(STATUS "[${PROJECT_NAME}] current cmake version: ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
|
|
44
|
+
message(STATUS "[${PROJECT_NAME}] CMAKE_HOST_SYSTEM: ${CMAKE_HOST_SYSTEM} ")
|
|
45
|
+
|
|
46
|
+
if(NOT CMAKE_BUILD_TYPE)
|
|
47
|
+
set(CMAKE_BUILD_TYPE release CACHE STRING "Build Type" FORCE)
|
|
48
|
+
endif()
|
|
49
|
+
|
|
50
|
+
message(STATUS "[${PROJECT_NAME}] Build type:${CMAKE_BUILD_TYPE}")
|
|
51
|
+
|
|
52
|
+
message(STATUS "[${PROJECT_NAME}] Debug configuration:${CMAKE_CXX_FLAGS_DEBUG}")
|
|
53
|
+
|
|
54
|
+
message(STATUS "[${PROJECT_NAME}] release configuration:${CMAKE_CXX_FLAGS_RELEASE}")
|
|
55
|
+
|
|
56
|
+
message(STATUS "[${PROJECT_NAME}] release configuration with debug info:${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
|
57
|
+
|
|
58
|
+
message(STATUS "[${PROJECT_NAME}] minimal release configuration:${CMAKE_CXX_FLAGS_MINSIZEREL}")
|
|
59
|
+
|
|
60
|
+
include_directories(include)
|
|
61
|
+
|
|
62
|
+
#
|
|
63
|
+
# log consumer. Recommended for production environments
|
|
64
|
+
#
|
|
65
|
+
set(TE_LIB_NAME thinkingdata)
|
|
66
|
+
add_library(${TE_LIB_NAME} src/TDAnalytics.cpp src/TDUtils.cpp src/TDLoggerConsumer.cpp src/TDConsumer.cpp)
|
|
67
|
+
if(UNIX)
|
|
68
|
+
find_package(Threads REQUIRED)
|
|
69
|
+
target_link_libraries(${TE_LIB_NAME} Threads::Threads)
|
|
70
|
+
endif()
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
1. rapidjson 库是一个纯 `.h` 库,所以以头文件的形式引入到你的工程。
|
|
74
|
+
1. 如果你的工程没有引入 rapidjson 库,那么请导入如下头文件即可:
|
|
75
|
+
|
|
76
|
+
1. 如果你的工程之前已经引入了 rapidjson 库,那么请只需导入 AE SDK 的头文件。然后需要修改并确认 `TDJsonParse.h` 文件内的内容,核对文件内对 rapidjson 库的引入路径是否正确:
|
|
77
|
+
###### Ⅱ. 安装Logbus
|
|
78
|
+
|
|
79
|
+
我们推荐使用SDK+LogBus的形式,完成服务端数据的采集上报.您可以参考以下文档完成Logbus的安装:LogBus使用指南
|
|
80
|
+
|
|
81
|
+
### 二、初始化
|
|
82
|
+
|
|
83
|
+
导入头文件:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
#include "../include/TDAnalytics.h"
|
|
87
|
+
#include "../include/TDLoggerConsumer.h"
|
|
88
|
+
#include "../include/TDDebugConsumer.h"
|
|
89
|
+
#include "../include/TDBatchConsumer.h"
|
|
90
|
+
|
|
91
|
+
using namespace thinkingDataAnalytics;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
以下是SDK初始化的示例代码:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
TDLoggerConsumer::Config config = TDLoggerConsumer::Config("LOG_DIRECTORY", 20, 500, TDLoggerConsumer::*HOURLY*);
|
|
98
|
+
config.fileNamePrefix = "te";
|
|
99
|
+
config.rotateMode = TDLoggerConsumer::*HOURLY*;
|
|
100
|
+
|
|
101
|
+
TDConsumer *consumer = new TDLoggerConsumer(config);
|
|
102
|
+
TDAnalytics te(*consumer, false);
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`LOG_DIRECTORY`为写入本地的文件夹地址。您只需将 LogBus 的监听文件夹地址设置为此处的地址,即可使用 LogBus 进行数据的监听上传。
|
|
106
|
+
|
|
107
|
+
### 三、常用功能
|
|
108
|
+
|
|
109
|
+
为了保证访客 ID 与账号 ID 能够顺利进行绑定,如果您的游戏中会用到访客 ID 与账号 ID,我们极力建议您同时上传这两个 ID,否则将会出现账号无法匹配的情况,导致用户重复计算,具体的 ID 绑定规则可参考用户识别规则一章。
|
|
110
|
+
|
|
111
|
+
#### 3.1 发送事件
|
|
112
|
+
|
|
113
|
+
您可以调用`track`来上传事件,建议您根据先前梳理的文档来设置事件的属性以及发送信息的条件,以下是发送事件的示例代码:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
TDPropertiesNode event_properties;
|
|
117
|
+
event_properties.SetString("name1", "XZ_debug");
|
|
118
|
+
event_properties.SetString("name2", "logbugs");
|
|
119
|
+
event_properties.SetString("name3", "name3");
|
|
120
|
+
event_properties.SetString("#uuid", "1234567890");
|
|
121
|
+
event_properties.SetNumber("test_number_int", 3);
|
|
122
|
+
event_properties.SetNumber("test_number_double", 3.14);
|
|
123
|
+
event_properties.SetBool("test_bool", true);
|
|
124
|
+
std::string test_string = "test_string";
|
|
125
|
+
event_properties.SetString("test_stl_string1", test_string);
|
|
126
|
+
event_properties.SetDateTime("test_time1", time(nullptr), 0);
|
|
127
|
+
timeb t = {};
|
|
128
|
+
ftime(&t);
|
|
129
|
+
event_properties.SetDateTime("#time", t.time, t.millitm);
|
|
130
|
+
std::vector<std::string> test_list;
|
|
131
|
+
test_list.emplace_back("item11");
|
|
132
|
+
test_list.emplace_back("item21");
|
|
133
|
+
event_properties.SetList("test_list1", test_list);
|
|
134
|
+
|
|
135
|
+
// track event
|
|
136
|
+
te.track("accountId", "distinctId", "eventName", event_properties);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
- 事件的名称是字符串类型,只能以字母开头,可包含数字,字母和下划线 "_",长度最大为 50 个字符。
|
|
140
|
+
- Key 为该属性的名称,为字符串类型,规定只能以字母开头,包含数字,字母和下划线 "_",长度最大为 50 个字符,对字母大小写不敏感,TE会统一转化为小写字母
|
|
141
|
+
- Value 为该属性的值,支持字符串、数字、布尔、时间、对象、对象组、数组
|
|
142
|
+
<!-- unsupported block: 34 -->
|
|
143
|
+
|
|
144
|
+
**用户属性的要求与事件属性保持一致**
|
|
145
|
+
|
|
146
|
+
#### 3.2 设置用户属性
|
|
147
|
+
|
|
148
|
+
对于一般的用户属性,您可以调用 `user_set` 来进行设置,使用该接口上传的属性将会覆盖原有的属性值,如果之前不存在该用户属性,则会新建该用户属性,类型与传入属性的类型一致,此处以设置用户名为例:
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
// user_set
|
|
152
|
+
TDPropertiesNode userSet_properties;
|
|
153
|
+
userSet_properties.SetString("userName", "test");
|
|
154
|
+
// 上传用户属性
|
|
155
|
+
te.user_set("accountId", "distinctId", userSet_properties);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
#### 3.3 数据上报
|
|
159
|
+
|
|
160
|
+
使用 `TDLoggerConsumer` 时,采集到的事件会先转成 json 字符串,然后添加到缓存数组中。当数组元素个数超出设置的容量时才会将数据写入磁盘。默认容量限制为20条数据。
|
|
161
|
+
|
|
162
|
+
在某些业务场景下,如果您期望数据立即上报到TE服务器,可以通过调用`flush()`接口完成。需要注意,频繁调用`flush()`会导致服务性能下降。
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
te.flush();
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### 3.4 关闭SDK
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
te.close();
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
<!-- unsupported block: 34 -->
|
|
175
|
+
|
|
176
|
+
关闭并退出 SDK,请在关闭服务器前调用本接口,以避免缓存内的数据丢失
|
|
177
|
+
|
|
178
|
+
### 四、最佳实践
|
|
179
|
+
|
|
180
|
+
以下示例代码包含以上所有操作,我们推荐按照如下步骤使用:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
// 导入头文件(每个平台以及IDE的路径不一样,自行适合调整)
|
|
184
|
+
#include "../include/TDAnalytics.h"
|
|
185
|
+
#include "../include/TDLoggerConsumer.h"
|
|
186
|
+
|
|
187
|
+
using namespace thinkingDataAnalytics;
|
|
188
|
+
|
|
189
|
+
TDLoggerConsumer::Config config = TDLoggerConsumer::Config("LOG_DIRECTORY", 20, 500, TDLoggerConsumer::*HOURLY*);
|
|
190
|
+
config.fileNamePrefix = "te";
|
|
191
|
+
config.rotateMode = TDLoggerConsumer::*HOURLY*;
|
|
192
|
+
|
|
193
|
+
TDConsumer *consumer = new TDLoggerConsumer(config);
|
|
194
|
+
TDAnalytics te(*consumer, false);
|
|
195
|
+
|
|
196
|
+
//上传事件
|
|
197
|
+
TDPropertiesNode event_properties;
|
|
198
|
+
event_properties.SetString("name1", "XZ_debug");;
|
|
199
|
+
event_properties.SetNumber("test_number_int", 3);
|
|
200
|
+
event_properties.SetBool("test_bool", true);
|
|
201
|
+
te.track("accountId", "distinctId", "eventName", event_properties);
|
|
202
|
+
|
|
203
|
+
//上传用户属性
|
|
204
|
+
TDPropertiesNode userSet_properties;
|
|
205
|
+
userSet_properties.SetString("userName", "test");
|
|
206
|
+
te.user_set("accountId", "distinctId", userSet_properties);
|
|
207
|
+
|
|
208
|
+
// 调用flush接口数据会立即写入文件,生产环境注意避免频繁调用flush引发IO或网络开销问题
|
|
209
|
+
// 一般情况不需要手动调用
|
|
210
|
+
te.flush();
|
|
211
|
+
```
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
code: csharp_sdk_installation
|
|
3
|
+
name: "C#"
|
|
4
|
+
wikiToken: HF7Dwv171ibMQtkmV1UcOhownPc
|
|
5
|
+
parentWikiToken: O3YxwgHGiiEnvYkHCcIcX51inkf
|
|
6
|
+
updateTime: 1756884342000
|
|
7
|
+
sourceUrl: https://docs-v2.thinkingdata.cn/?version=v5.0&lan=zh-CN&code=csharp_sdk_installation
|
|
8
|
+
---
|
|
9
|
+
# C#
|
|
10
|
+
|
|
11
|
+
::: tip 提示
|
|
12
|
+
|
|
13
|
+
在接入前, 请先阅读接入前准备。
|
|
14
|
+
|
|
15
|
+
:::
|
|
16
|
+
|
|
17
|
+
**最新版本为**:v2.0.3
|
|
18
|
+
|
|
19
|
+
**更新时间为**:2025-09-03
|
|
20
|
+
|
|
21
|
+
**资源下载****:**源代码
|
|
22
|
+
|
|
23
|
+
::: warning 注意
|
|
24
|
+
|
|
25
|
+
当前文档适用于 v2.0.0 及以后的版本,历史版本请参考 C# SDK 接入指南(V1)
|
|
26
|
+
|
|
27
|
+
:::
|
|
28
|
+
|
|
29
|
+
### 一、集成SDK
|
|
30
|
+
|
|
31
|
+
#### 方式一:NuGet 集成
|
|
32
|
+
|
|
33
|
+
1. 在 NuGet 中搜索 ThinkingDataAnalytics 库,安装到你的项目中
|
|
34
|
+
1. ThinkingDataAnalytics 库同时会自动安装 Newtonsoft.Json 库
|
|
35
|
+
#### 方式二:集成 dll 文件
|
|
36
|
+
|
|
37
|
+
1. 下载 SDK 源码
|
|
38
|
+
1. 打开源码中的解决方案,手动编译出 SDK 的 dll 文件
|
|
39
|
+
1. 将 ThinkingDataAnalytics SDK 的 dll 文件引入到你的工程
|
|
40
|
+
1. SDK 依赖 Newtonsoft.Json 框架用作json解析,请手动添加 Newtonsoft.Json 库到你的项目。
|
|
41
|
+
#### 安装Logbus
|
|
42
|
+
|
|
43
|
+
我们推荐使用SDK+LogBus的形式,完成服务端数据的采集上报.您可以参考以下文档完成Logbus的安装:LogBus使用指南
|
|
44
|
+
|
|
45
|
+
### 二、初始化
|
|
46
|
+
|
|
47
|
+
以下是SDK初始化的示例代码:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
using ThinkingData.Analytics
|
|
51
|
+
|
|
52
|
+
TDAnalytics te = new TDAnalytics(new TDLoggerConsumer("LOG_DIRECTORY"));
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`LOG_DIRECTORY`为写入本地的文件夹地址。您只需将 LogBus 的监听文件夹地址设置为此处的地址,即可使用 LogBus 进行数据的监听上传。
|
|
56
|
+
|
|
57
|
+
### 三、常用功能
|
|
58
|
+
|
|
59
|
+
为了保证访客 ID 与账号 ID 能够顺利进行绑定,如果您的游戏中会用到访客 ID 与账号 ID,我们极力建议您同时上传这两个 ID,否则将会出现账号无法匹配的情况,导致用户重复计算,具体的 ID 绑定规则可参考用户识别规则一章。
|
|
60
|
+
|
|
61
|
+
#### 3.1 发送事件
|
|
62
|
+
|
|
63
|
+
您可以调用`track`来上传事件,建议您根据先前梳理的文档来设置事件的属性以及发送信息的条件,以下是发送事件的示例代码:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Dictionary<string, object> properties = new Dictionary<string, object>();
|
|
67
|
+
// 设置用户的ip地址,TE系统会根据IP地址解析用户的地理位置信息
|
|
68
|
+
properties.Add("#ip", "123.123.123.123");
|
|
69
|
+
//设置事件属性
|
|
70
|
+
properties.Add("channel", "TE");//字符串
|
|
71
|
+
properties.Add("age", 1);//数字
|
|
72
|
+
properties.Add("is_success", true);//布尔value
|
|
73
|
+
List<string> list = new List<string>();
|
|
74
|
+
list.Add("value");
|
|
75
|
+
properties.Add("array", list);//数组
|
|
76
|
+
//对象
|
|
77
|
+
Dictionary<string, Object> objectTest = new Dictionary<string, object>();
|
|
78
|
+
objectTest.Add("key", "vale");
|
|
79
|
+
properties.Add("object", objectTest);
|
|
80
|
+
//对象组
|
|
81
|
+
List<Object> object_arr = new List<Object>();
|
|
82
|
+
object_arr.Add(objectTest);
|
|
83
|
+
properties.Add("object_arr", object_arr);
|
|
84
|
+
|
|
85
|
+
//上报带有自定义属性的事件,accountId 和 distinctId至少一个不为空
|
|
86
|
+
te.Track("accountId", "distinctId", "Payment", properties);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- 事件的名称是字符串类型,只能以字母开头,可包含数字,字母和下划线 "_",长度最大为 50 个字符。
|
|
90
|
+
- Key 为该属性的名称,为字符串类型,规定只能以字母开头,包含数字,字母和下划线 "_",长度最大为 50 个字符,对字母大小写不敏感,TE会统一转化为小写字母
|
|
91
|
+
- Value 为该属性的值,支持字符串、数字、布尔、时间、对象、对象组、数组
|
|
92
|
+
<!-- unsupported block: 34 -->
|
|
93
|
+
|
|
94
|
+
**用户属性的要求与事件属性保持一致**
|
|
95
|
+
|
|
96
|
+
#### 3.2 设置用户属性
|
|
97
|
+
|
|
98
|
+
对于一般的用户属性,您可以调用 `UserSet` 来进行设置,使用该接口上传的属性将会覆盖原有的属性值,如果之前不存在该用户属性,则会新建该用户属性,类型与传入属性的类型一致,此处以设置用户名为例:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
//此时username为TA
|
|
102
|
+
Dictionary<string, object> properties= new Dictionary<string, object>();
|
|
103
|
+
properties.Add("user_name","TA");
|
|
104
|
+
te.UserSet("accountId","distinctId", properties);
|
|
105
|
+
//此时userName为TE
|
|
106
|
+
Dictionary<string, object> newProperties= new Dictionary<string, object>();
|
|
107
|
+
newProperties.Add("user_name","TE");
|
|
108
|
+
//设置用户属性,accountId 和 distinctId 必须至少设置其中一个
|
|
109
|
+
te.UserSet("accountId","distinctId", newProperties);
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### 3.3 数据上报
|
|
113
|
+
|
|
114
|
+
使用 TDLoggerConsumer 时,采集到的事件会先编码成 json 字符串,然后添加到缓存字符串中。当缓存字符串长度超出设置的长度时才会将数据写入磁盘。默认最大长度为 8192。
|
|
115
|
+
|
|
116
|
+
在某些业务场景下,如果您期望数据立即上报到TE服务器,可以通过调用`flush()`接口完成。需要注意,频繁调用`flush()`会导致服务性能下降。
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
te.Flush();
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### 3.4 关闭SDK
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
te.Close();
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
<!-- unsupported block: 34 -->
|
|
129
|
+
|
|
130
|
+
关闭并退出 SDK,请在关闭服务器前调用本接口,以避免缓存内的数据丢失
|
|
131
|
+
|
|
132
|
+
### 四、最佳实践
|
|
133
|
+
|
|
134
|
+
以下示例代码包含以上所有操作,我们推荐按照如下步骤使用:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
using ThinkingData.Analytics
|
|
138
|
+
//初始化SDK
|
|
139
|
+
TDAnalytics te = new TDAnalytics(new TDLoggerConsumer("LOG_DIRECTORY"));
|
|
140
|
+
|
|
141
|
+
Dictionary<string, object> properties = new Dictionary<string, object>();
|
|
142
|
+
// 设置用户的ip地址,TE系统会根据IP地址解析用户的地理位置信息
|
|
143
|
+
properties.Add("#ip", "123.123.123.123");
|
|
144
|
+
//设置事件属性
|
|
145
|
+
properties.Add("channel", "TE");//字符串
|
|
146
|
+
properties.Add("age", 1);//数字
|
|
147
|
+
properties.Add("is_success", true);//布尔value
|
|
148
|
+
List<string> list = new List<string>();
|
|
149
|
+
list.Add("value");
|
|
150
|
+
properties.Add("array", list);//数组
|
|
151
|
+
Dictionary<string, Object> objectTest = new Dictionary<string, object>();
|
|
152
|
+
objectTest.Add("key", "vale");
|
|
153
|
+
properties.Add("object", objectTest);
|
|
154
|
+
//对象组
|
|
155
|
+
List<Object> object_arr = new List<Object>();
|
|
156
|
+
object_arr.Add(objectTest);
|
|
157
|
+
properties.Add("object_arr", object_arr);
|
|
158
|
+
|
|
159
|
+
//上报带有自定义属性的事件,accountId 和 distinctId至少一个不为空
|
|
160
|
+
te.Track("accountId", "distinctId", "Payment", properties);
|
|
161
|
+
|
|
162
|
+
//此时username为TA
|
|
163
|
+
Dictionary<string, object> userProperties = new Dictionary<string, object>();
|
|
164
|
+
userProperties.Add("user_name", "TA");
|
|
165
|
+
te.UserSet("accountId", "distinctId", userProperties);
|
|
166
|
+
|
|
167
|
+
//调用flush接口数据会立即写入文件,生产环境注意避免频繁调用flush引发IO或网络开销问题
|
|
168
|
+
te.Flush();
|
|
169
|
+
```
|