-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38588aa
commit eeb6fec
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ Supports Node.js `>=14.0.0`, if you are a Node.js `v12` user refer to `[email protected]. | |
- [`Client.gauge(string, value)`](#clientgaugestring-value) | ||
- [`Client.set(string, value)`](#clientsetstring-value) | ||
- [Dats Mock](#dats-mock) | ||
- [CLI Interface](#cli-interface) | ||
- [CLI Usage](#cli-usage) | ||
- [Benchmarks](#benchmarks) | ||
- [Powered Apps](#powered-apps) | ||
- [Support & Contribute](#support--contribute) | ||
|
@@ -240,6 +242,31 @@ console.log(client.metrics); | |
*/ | ||
``` | ||
|
||
## CLI Interface | ||
|
||
dats is also exposed as a CLI that can both be installed as a npm global package or a precompiled binary. | ||
|
||
The precompile binary can be found in the [release section](https://github.com/immobiliare/dats/releases) for linux, macos or window. | ||
|
||
### CLI Usage | ||
|
||
```sh | ||
$ npm i -g @immobiliarelabs/dats | ||
dats --help | ||
# ℹ️ The following are required input flags: | ||
# | ||
# --host {string} [] | ||
# --port {string} [] | ||
# --type {string} [Metric type can be one of: counter, timing, gauge, set] | ||
# --prefix {string} [Metric prefix] | ||
# --namespace {string} [Metric full namespace, use dots `.` to separate metrics] | ||
# --value {string} [Metric value] | ||
# --quiet {boolean} [Suppress all console output] | ||
# --dryRun {boolean} [Metric wont be sent, use for debug] | ||
# | ||
# If unsure of output run the command prepended with `DRY_RUN=1` | ||
``` | ||
|
||
## Benchmarks | ||
|
||
The automatic benchmarking for every commit can be found at the following links: [next](https://immobiliare.github.io/dats/next/bench/index.html) and | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters