@feflow/report
feflow report sdk
Last updated 2 days ago by bethon .
ISC · Original npm · Tarball · package.json
$ cnpm install @feflow/report 
SYNC missed versions from official npm registry.

Feflow report sdk

上报feflow用户的使用情况、统计命令的调用次数、耗时以及成功率信息。

Fef

上报分为两个版本,在fef中借助hook的能力,可以将上报分为两块,即HOOK_TYPE_BEFOREHOOK_TYPE_AFTERhook中,分别对应着命令执行前和执行后,前者上报命令的基本信息,后者主要上报该命令的耗时、以及成功与否

用法


import Report from "@tencent/report"

// sdk中会在hook中自动注册
// 不再需要手动调用
new Report(fakeCtx, cmd, args);

Feflow 0.16.x

在老版本中,feflow并没有hook可以让sdk,所以还是得手动上报。

用法

import Report from "@tencent/report"

const report = new Report(fakeCtx, cmd, args);

// 首次上报
report.report()

// ... 插件/脚手架执行

// 耗时上报
report.recallReport()

Current Tags

  • 0.1.9                                ...           latest (2 days ago)

15 Versions

  • 0.1.9                                ...           2 days ago
  • 0.1.8                                ...           2 days ago
  • 0.1.6                                ...           3 days ago
  • 0.1.5                                ...           2 months ago
  • 0.1.4                                ...           6 months ago
  • 0.1.3                                ...           6 months ago
  • 0.1.3-s                                ...           6 months ago
  • 0.1.2                                ...           6 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           6 months ago
  • 0.0.4                                ...           6 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.1                                ...           6 months ago
Maintainers (2)
Downloads
Today 0
This Week 59
This Month 103
Last Day 4
Last Week 28
Last Month 76
Dependencies (3)
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |