Documentation ¶
Index ¶
- func Average(arr []uint64, cardinality uint64) uint64
- func AverageFloat(arr []float64, cardinality uint64) float64
- func ErrTrendInfo(ak, ai string) (*apistructs.PublishItemStatisticsErrTrendResponse, error)
- func GetUserList(ak, ai string, req *apistructs.PublishItemCertificationListRequest) ([]*apistructs.PublishItemCertificationResponse, error)
- func Growth(last, recent float64) float64
- func MetricsTotal(resp *query.MetricQueryResponse) (uint64, error)
- func Round(x float64) uint64
- func SevenDayAvg(resp *query.MetricQueryResponse) (uint64, float64, error)
- func SevenDayUserRetension(firstResp, secondResp *query.MetricQueryResponse) (string, float64, error)
- func VersionChannelList(groupKey, ak, ai string, end time.Time) ([]*apistructs.PublishItemStatisticsDetailResponse, error)
- type PublishItem
- func (i *PublishItem) CrashRate(point uint64, start, end time.Time, av string, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResultsInterface, error)
- func (i *PublishItem) CumulativeUsers(point uint64, start, end time.Time, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResults, error)
- func (i *PublishItem) EffactUsersRate(point uint64, start, end time.Time, av string, mk *apistructs.MonitorKeys) (*apistructs.CardinalityResultsInterface, error)
- func (i *PublishItem) GetCertificationlist(req *apistructs.PublishItemCertificationListRequest, ...) ([]*apistructs.PublishItemCertificationResponse, error)
- func (i *PublishItem) GetErrList(start, end time.Time, av string, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsErrListResponse, error)
- func (i *PublishItem) GetErrTrend(mk *apistructs.MonitorKeys) (*apistructs.PublishItemStatisticsErrTrendResponse, error)
- func (i *PublishItem) GetStatisticsChannelInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)
- func (i *PublishItem) GetStatisticsTrend(mk *apistructs.MonitorKeys) (*apistructs.PublishItemStatisticsTrendResponse, error)
- func (i *PublishItem) GetStatisticsVersionInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageFloat ¶
func ErrTrendInfo ¶
func ErrTrendInfo(ak, ai string) (*apistructs.PublishItemStatisticsErrTrendResponse, error)
func GetUserList ¶
func GetUserList(ak, ai string, req *apistructs.PublishItemCertificationListRequest) ([]*apistructs.PublishItemCertificationResponse, error)
func MetricsTotal ¶
func MetricsTotal(resp *query.MetricQueryResponse) (uint64, error)
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 (*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 ¶
func (i *PublishItem) GetCertificationlist(req *apistructs.PublishItemCertificationListRequest, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemCertificationResponse, error)
GetCertificationlist 获取验证列表
func (*PublishItem) GetErrList ¶
func (i *PublishItem) GetErrList(start, end time.Time, av string, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsErrListResponse, error)
GetErrList 获取错误报告,错误列表
func (*PublishItem) GetErrTrend ¶
func (i *PublishItem) GetErrTrend(mk *apistructs.MonitorKeys) (*apistructs.PublishItemStatisticsErrTrendResponse, error)
GetErrTrend 获取错误报告,错误趋势
func (*PublishItem) GetStatisticsChannelInfo ¶
func (i *PublishItem) GetStatisticsChannelInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)
GetStatisticsChannelInfo 获取渠道详情,明细数据
func (*PublishItem) GetStatisticsTrend ¶
func (i *PublishItem) GetStatisticsTrend(mk *apistructs.MonitorKeys) (*apistructs.PublishItemStatisticsTrendResponse, error)
GetStatisticsTrend 获取统计大盘,整体趋势
func (*PublishItem) GetStatisticsVersionInfo ¶
func (i *PublishItem) GetStatisticsVersionInfo(end time.Time, mk *apistructs.MonitorKeys) ([]*apistructs.PublishItemStatisticsDetailResponse, error)
GetStatisticsVersionInfo 获取版本详情,明细数据
Click to show internal directories.
Click to hide internal directories.