publish_item

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Average

func Average(arr []uint64, cardinality uint64) uint64

func AverageFloat

func AverageFloat(arr []float64, cardinality uint64) float64

func Growth

func Growth(last, recent float64) float64

func MetricsTotal

func MetricsTotal(resp *query.MetricQueryResponse) (uint64, error)

func Round

func Round(x float64) uint64

func SevenDayAvg

func SevenDayAvg(resp *query.MetricQueryResponse) (uint64, float64, error)

func SevenDayUserRetension

func SevenDayUserRetension(firstResp, secondResp *query.MetricQueryResponse) (string, float64, error)

func VersionChannelList

func VersionChannelList(groupKey, ak, ai string, end time.Time) ([]*apistructs.PublishItemStatisticsDetailResponse, error)

Types

type PublishItem

type PublishItem struct {
}

func New

func New() *PublishItem

New 新建 PublishItem 实例,操作 PublishItem 资源

func (*PublishItem) CrashRate

func (i *PublishItem) CrashRate(point uint64, start, end time.Time, av string, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResultsInterface, error)

崩溃率

func (*PublishItem) CumulativeUsers

func (i *PublishItem) CumulativeUsers(point uint64, start, end time.Time, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResults, error)

func (*PublishItem) EffactUsersRate

func (i *PublishItem) EffactUsersRate(point uint64, start, end time.Time, av string, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResultsInterface, error)

影响用户占比

func (*PublishItem) GetCertificationlist

GetCertificationlist 获取验证列表

func (*PublishItem) GetErrList

GetErrList 获取错误报告,错误列表

func (*PublishItem) GetErrTrend

GetErrTrend 获取错误报告,错误趋势

func (*PublishItem) GetStatisticsChannelInfo

func (i *PublishItem) GetStatisticsChannelInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)

GetStatisticsChannelInfo 获取渠道详情,明细数据

func (*PublishItem) GetStatisticsTrend

GetStatisticsTrend 获取统计大盘,整体趋势

func (*PublishItem) GetStatisticsVersionInfo

func (i *PublishItem) GetStatisticsVersionInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)

GetStatisticsVersionInfo 获取版本详情,明细数据

Jump to

Keyboard shortcuts

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