update example script

This commit is contained in:
Alexander Lukyanchikov 2019-06-22 00:38:33 -04:00 committed by GitHub
parent 167093c30d
commit 4efff66179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ sudo chmod +x /usr/local/bin/sampler
``` ```
### Linux ### Linux
```bash ```bash
sudo curl -Lo /usr/local/bin/sampler https://github.com/sqshq/sampler/releases/download/v0.9.1-beta/sampler-0.9.1-linux-amd64 sudo wget https://github.com/sqshq/sampler/releases/download/v0.9.1-beta/sampler-0.9.1-linux-amd64 -O /usr/local/bin/sampler
sudo chmod +x /usr/local/bin/sampler sudo chmod +x /usr/local/bin/sampler
``` ```
### Windows ### Windows
@ -194,7 +194,7 @@ runcharts:
### Interactive shell support ### Interactive shell support
In addition to the `sample` command, one can specify `init` command (executed only once before sampling) and `transform` command (to post-process `sample` command output). That covers interactive shell use case, e.g. to establish connection to a database only once, and then perform polling within interactive shell session. In addition to the `sample` command, one can specify `init` command (executed only once before sampling) and `transform` command (to post-process `sample` command output). That covers interactive shell use case, e.g. to establish connection to a database only once, and then perform polling within interactive shell session.
#### Default mode #### Basic mode
```yml ```yml
textboxes: textboxes:
- title: MongoDB polling - title: MongoDB polling
@ -231,13 +231,13 @@ barcharts:
items: items:
- label: IN_PROGRESS - label: IN_PROGRESS
init: $mongoconnection init: $mongoconnection
sample: db.getCollection('events').find({status:'IN_PROGRESS'}).itcount() sample: db.getCollection('events').find({status:'IN_PROGRESS'}).count()
- label: SUCCESS - label: SUCCESS
init: $mongoconnection init: $mongoconnection
sample: db.getCollection('events').find({status:'SUCCESS'}).itcount() sample: db.getCollection('events').find({status:'SUCCESS'}).count()
- label: FAIL - label: FAIL
init: $mongoconnection init: $mongoconnection
sample: db.getCollection('events').find({status:'FAIL'}).itcount() sample: db.getCollection('events').find({status:'FAIL'}).count()
``` ```
### Color theme ### Color theme