@tsuga/cli 1.150.0 → 1.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -12
- package/dist/cli.js +100 -101
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,7 +203,7 @@ Every command prints the API response as the API returns it: the payload under `
|
|
|
203
203
|
|
|
204
204
|
`totalCount` is the number of items matching the query and `pageCount` the number of pages for the requested `--limit`. The next page starts at `--offset` plus the number of items in `data`. With `--all`, `data` holds every item and `pageCount` is `1`.
|
|
205
205
|
|
|
206
|
-
When a page leaves items behind, the CLI also prints a notice to **stderr** with the command for the next page, filters included
|
|
206
|
+
When a page leaves items behind, the CLI also prints a notice to **stderr** with the command for the next page, filters included:
|
|
207
207
|
|
|
208
208
|
```
|
|
209
209
|
Showing 100 of 4212 (offset 0). Next page: tsuga monitors list --limit 100 --offset 100
|
|
@@ -277,13 +277,6 @@ tsuga logs search --from 1704067200 --to 1704153600 --query 'context.service.nam
|
|
|
277
277
|
# Logs under `data`, each projected to selected fields (preserves nested objects)
|
|
278
278
|
tsuga logs search --from=-10m \
|
|
279
279
|
--fields timestamp,level,message,context.k8s.pod.name
|
|
280
|
-
|
|
281
|
-
# TSV with default columns: timestamp, level, message
|
|
282
|
-
tsuga logs search --from=-10m --query 'level:ERROR' -o tsv
|
|
283
|
-
|
|
284
|
-
# CSV with custom columns
|
|
285
|
-
tsuga logs search --from=-10m -o csv \
|
|
286
|
-
--fields timestamp,level,message,context.k8s.pod.name
|
|
287
280
|
```
|
|
288
281
|
|
|
289
282
|
### Log attributes
|
|
@@ -312,9 +305,6 @@ tsuga logs error-pattern-increases --from=-24h --team my-team --env prod
|
|
|
312
305
|
|
|
313
306
|
```bash
|
|
314
307
|
tsuga traces search --from=-30m --query 'span.name:GET'
|
|
315
|
-
|
|
316
|
-
# TSV with default columns: start_time, duration, context.service.name, span.name, status_code, trace_id
|
|
317
|
-
tsuga traces search --from=-30m --query 'span.name:GET' -o tsv
|
|
318
308
|
```
|
|
319
309
|
|
|
320
310
|
### Search RUM events
|
|
@@ -469,7 +459,6 @@ tsuga promql query -d '{"query":"sum by (\"context.service.name\") (sum_over_tim
|
|
|
469
459
|
```bash
|
|
470
460
|
# Rank functions by self (flat) and inclusive (cum) sample value, like `go tool pprof -top`
|
|
471
461
|
tsuga profiles top --service api --type cpu --from=-1h
|
|
472
|
-
tsuga profiles top --service api --type alloc_space --from=-1h --limit 10 -o tsv
|
|
473
462
|
|
|
474
463
|
# Download the merged profile as raw pprof protobuf and open it with pprof
|
|
475
464
|
tsuga profiles pprof --service api --type cpu --from=-1h -O cpu.pb
|