@10duke/event-data-reader-cli 中文文档教程

发布于 5年前 浏览 28 项目主页 更新于 3年前

Event Data reader

用于从 10Duke 事件数据服务读取事件的命令行工具。

Usage

Usage: event-data-reader [options] <getEndpointUrl> <feed>

Command line tool for reading event data from 10Duke Event Data service. Retrieves event data internally in chunks and writes a single JSON array with all retrieved events.

Options:
  -V, --version                          output the version number
  -a, --after <after>                    Timestamp from which events are requested, in nanoseconds since the Epoch
                                         or as a parseable datetime string (ISO 8601). If not specified, reading
                                         starts from the oldest event.
  -b, --before <before>                  Timestamp until which events are requested, in nanoseconds since the Epoch
                                         or as a parseable datetime string (ISO 8601). If not specified, reads until
                                         no newer events available.
  -k, --key <privateKeyFile>             private key file, used for building authorization token
  -m, --max-event-count <maxEventCount>  maximum number of events to return per request (default: "500")
  -x, --max-rounds <maxRounds>           maximum number of requests to send in order to get all events between
                                         --after and --before, or -1 for unlimited / until all retrieved (default:
                                         "-1")
  -r, --max-retries <maxRetries>         maximum number of retries if a request fails (default: "5")
  -o, --output <filePath>                File for writing events received from the server. If not specified, writes
                                         to stdout.
  -d, --debug                            output debug info (default: no debug output)
  -h, --help                             display help for command

Example call:
  $ event-data-reader https://acme.events.10duke.com/get acme-idp -k acme.private.pem -a 2020-02-15 -b 2020-02-16T12:00:00.000Z -o acme-events.json

如果直接从项目运行而不安装命令行工具,而不是使用 event-data-reader 使用 npm run event-data-reader -- (必须有一个-- 后的空格,在其后指定参数)。

Event Data reader

Command line tool for reading events from 10Duke Event Data service.

Usage

Usage: event-data-reader [options] <getEndpointUrl> <feed>

Command line tool for reading event data from 10Duke Event Data service. Retrieves event data internally in chunks and writes a single JSON array with all retrieved events.

Options:
  -V, --version                          output the version number
  -a, --after <after>                    Timestamp from which events are requested, in nanoseconds since the Epoch
                                         or as a parseable datetime string (ISO 8601). If not specified, reading
                                         starts from the oldest event.
  -b, --before <before>                  Timestamp until which events are requested, in nanoseconds since the Epoch
                                         or as a parseable datetime string (ISO 8601). If not specified, reads until
                                         no newer events available.
  -k, --key <privateKeyFile>             private key file, used for building authorization token
  -m, --max-event-count <maxEventCount>  maximum number of events to return per request (default: "500")
  -x, --max-rounds <maxRounds>           maximum number of requests to send in order to get all events between
                                         --after and --before, or -1 for unlimited / until all retrieved (default:
                                         "-1")
  -r, --max-retries <maxRetries>         maximum number of retries if a request fails (default: "5")
  -o, --output <filePath>                File for writing events received from the server. If not specified, writes
                                         to stdout.
  -d, --debug                            output debug info (default: no debug output)
  -h, --help                             display help for command

Example call:
  $ event-data-reader https://acme.events.10duke.com/get acme-idp -k acme.private.pem -a 2020-02-15 -b 2020-02-16T12:00:00.000Z -o acme-events.json

If running directly from the project without installing the command line tool, instead of using event-data-reader use npm run event-data-reader -- (there must be a space after --, specify arguments after it).

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文