uapp

package
v0.0.0-...-02e572e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveUserData

type ActiveUserData struct {
	// 日期
	Date string `json:"date"`
	// 活跃用户
	ActiveUser int64 `json:"activeUser"`
	// 活跃账号
	ActiveAccount int64 `json:"activeAccount"`
}

活跃数据

type ActiveUserDataResult

type ActiveUserDataResult struct {
	ActiveAccountInfo []*ActiveUserData `json:"activeAccountInfo"`
}

type DateCountInfo

type DateCountInfo struct {
	// 日期
	Dates string
	// 数量
	Data string
}

DateCountInfo 获取事件统计数据,获取事件参数值统计数据的数据展示

type EventData

type EventData struct {
	// 日期数组
	Dates []string `json:"dates"`
	// 数据数组
	Data []int64 `json:"data"`
}

type EventKeyPV

type EventKeyPV struct {
	EventData []*EventData `json:"eventData"`
}

事件PV

type EventKeyUV

type EventKeyUV struct {
	EventUniqueUsers []*EventUniqueUser `json:"uniqueUsers"`
}
{
	"uniqueUsers":[
		{
			"data":"1234,5678",
			"dates":""
		}
	]
}

事件独立用户数

type EventUniqueUser

type EventUniqueUser struct {
	// 日期数组
	Dates []string `json:"dates"`
	// 数据数组
	Data []int64 `json:"data"`
}

type NewUserData

type NewUserData struct {
	// 日期
	Date string `json:"date"`
	// 新增用户
	NewUser int64 `json:"newUser"`
	// 新增账号
	NewAccount int64 `json:"newAccount"`
	// 小时新增用户(按小时查询时)
	HourNewUser []int64 `json:"hourNewUser"`
	// 小时新增账号(按小时查询时)
	HourNewAccount []int64 `json:"hourNewAccount"`
}

新增数据

type NewUserDataResult

type NewUserDataResult struct {
	NewAccountInfo []*NewUserData `json:"newAccountInfo"`
}

type Uapp

type Uapp struct {
	// ApiKey
	ApiKey string
	// ApiSecurity
	ApiSecurity string
	// GateWay
	GateWay string
	// AppKey
	AppKey string
	// Debug 调试标识
	Debug bool
}

Uapp

func NewUapp

func NewUapp(apiKey, apiSecurity, gateWay string, debug bool) *Uapp

NewUapp

func (*Uapp) GetActiveUserData

func (uapp *Uapp) GetActiveUserData(startDate, endDate string) (*ActiveUserDataResult, error)

GetNewUserData 获取活跃数据

func (*Uapp) GetEventKeyPV

func (uapp *Uapp) GetEventKeyPV(eventName, startDate, endDate string) (*EventKeyPV, error)

GetEventKeyPV 获取自定义事件PV

func (*Uapp) GetEventKeyUV

func (uapp *Uapp) GetEventKeyUV(eventName, startDate, endDate string) (*EventKeyUV, error)

GetEventKeyUV 获取自定义事件UV

func (*Uapp) GetNewUserData

func (uapp *Uapp) GetNewUserData(startDate, endDate string) (*NewUserDataResult, error)

GetNewUserData 获取新增数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL