CroupierCroupier
指南
架构
API 参考
开发
  • C++ SDK
  • Go SDK
  • Java SDK
  • JavaScript SDK
  • Python SDK
  • C# SDK
  • Lua SDK
分析
GitHub
指南
架构
API 参考
开发
  • C++ SDK
  • Go SDK
  • Java SDK
  • JavaScript SDK
  • Python SDK
  • C# SDK
  • Lua SDK
分析
GitHub
  • API 参考

    • API 概览
    • gRPC API
    • REST API
  • 运维管理

    • 运维 API
    • 运维核心 API
    • 运维简化 API
    • 管理员 API
    • 备份 API
    • 配置 API
    • 迁移 API
    • 监控 API
    • 节点 API
  • Agent & 函数

    • Agent API
    • 函数 API
    • 任务 API
    • /api/pack.html
    • Schema API
  • 认证与权限

    • 认证 API
    • 审批 API
    • 审计 API
    • 限流 API
  • 游戏管理

    • 游戏 API
    • 玩家 API
    • 实体 API
    • /api/component.html
    • 注册表 API
  • 消息通知

    • 消息 API
    • 告警 API
    • 支持 API
    • 工单 API
    • 反馈 API
  • 平台与集成

    • 平台 API
    • Provider API
    • 证书 API
    • 存储 API
  • 数据分析

    • 数据分析 API
    • 行为分析 API
    • 分析概览 API
    • 支付分析 API
    • 留存分析 API
  • 其他

    • 分配 API
    • 常见问题
    • 元数据 API
    • 配置文件 API
    • Workspace API

行为分析 API

1. "获取行为分析"

  1. route definition
  • Url: /api/v1/analytics/behavior
  • Method: GET
  • Request: BehaviorRequest
  • Response: BehaviorResponse
  1. request definition
type BehaviorRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
}
  1. response definition
type BehaviorResponse struct {
	TopActions interface{} `json:"topActions"`
	UserFlows interface{} `json:"userFlows"`
	HeatMap interface{} `json:"heatMap"`
}

2. "获取功能采用率"

  1. route definition
  • Url: /api/v1/analytics/behavior/adoption
  • Method: GET
  • Request: BehaviorAdoptionRequest
  • Response: BehaviorAdoptionResponse
  1. request definition
type BehaviorAdoptionRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	Feature string `form:"feature,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
}
  1. response definition
type BehaviorAdoptionResponse struct {
	Features []FeatureAdoption `json:"features"`
}

3. "获取采用率明细"

  1. route definition
  • Url: /api/v1/analytics/behavior/adoption/breakdown
  • Method: GET
  • Request: BehaviorAdoptionBreakdownRequest
  • Response: BehaviorAdoptionBreakdownResponse
  1. request definition
type BehaviorAdoptionBreakdownRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	Feature string `form:"feature"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
}
  1. response definition
type BehaviorAdoptionBreakdownResponse struct {
	BySegment interface{} `json:"bySegment"`
	ByTime interface{} `json:"byTime"`
}

4. "获取行为事件"

  1. route definition
  • Url: /api/v1/analytics/behavior/events
  • Method: GET
  • Request: BehaviorEventsRequest
  • Response: BehaviorEventsResponse
  1. request definition
type BehaviorEventsRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	EventType string `form:"eventType,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
	Limit int `form:"limit,optional,default=100"`
}
  1. response definition
type BehaviorEventsResponse struct {
	Items []BehaviorEvent `json:"items"`
	Total int64 `json:"total"`
}

5. "获取行为漏斗"

  1. route definition
  • Url: /api/v1/analytics/behavior/funnel
  • Method: POST
  • Request: BehaviorFunnelRequest
  • Response: BehaviorFunnelResponse
  1. request definition
type BehaviorFunnelRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	Steps []string `json:"steps"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
}
  1. response definition
type BehaviorFunnelResponse struct {
	Steps []FunnelStep `json:"steps"`
}

6. "获取行为路径"

  1. route definition
  • Url: /api/v1/analytics/behavior/paths
  • Method: GET
  • Request: BehaviorPathsRequest
  • Response: BehaviorPathsResponse
  1. request definition
type BehaviorPathsRequest struct {
	GameId string `form:"gameId,optional"`
	Env string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate string `form:"endDate,optional"`
	Depth int `form:"depth,optional,default=5"`
}
  1. response definition
type BehaviorPathsResponse struct {
	Paths interface{} `json:"paths"`
}
在 GitHub 上编辑此页
最后更新: 2026/3/19 10:26
Prev
数据分析 API
Next
分析概览 API