Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Jun 3, 2024
1 parent dc8ed1e commit 5b2fd4c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/adrs/202405-bidcollect.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ It should expose these as:
- Ultrasound websocket stream
- doesn't expose optimistic, thus that field is always false

clickhouse-local queries:
Useful [clickhouse-local](https://clickhouse.com/docs/en/operations/utilities/clickhouse-local) queries:

```bash
clickhouse local -q "SELECT source_type, COUNT(source_type) FROM 'top_2024-06-02_18-00.tsv' GROUP BY source_type ORDER BY source_type;"
Expand All @@ -37,8 +37,11 @@ clickhouse local -q "SELECT source_type, COUNT(source_type) FROM 'top_2024-06-02
Run:

```bash
# Collect bids from ultrasound stream + data API, save to directory "tsv/<date>/<filename>.tsv"
go run . service bidcollect --out tsv --data-api --ultrasound-stream
# CSV output (into `csv/<date>/<filename>.csv`)
go run . service bidcollect --data-api --ultrasound-stream

# TSV output (into `data/<date>/<filename>.tsv`)
go run . service bidcollect --out data --out-tsv --data-api --ultrasound-stream
```

Example output: https://gist.github.com/metachris/061c0443afb8b8d07eed477a848fa395
Expand Down

0 comments on commit 5b2fd4c

Please sign in to comment.