@tsuga/cli 1.202.0 → 1.203.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +87 -87
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -192,7 +192,7 @@ tsuga monitors list --limit 500 --offset 500
192
192
  tsuga monitors list --all
193
193
  ```
194
194
 
195
- Every command prints the API response as the API returns it: the payload under `data`, and for a paginated command the pagination metadata beside it, so a truncated list is visible in the JSON itself. `--fields` projects the payload under `data`, item by item for a collection:
195
+ Every command prints the API response as the API returns it: the payload under `data`, and for a paginated command the pagination metadata beside it, so a truncated list is visible in the JSON itself. `--fields` paths start at the root of this JSON, and a path through an array applies to each element, so `--fields data.id,metadata` keeps the ID of each item and the pagination metadata:
196
196
 
197
197
  ```json
198
198
  {
@@ -275,7 +275,7 @@ tsuga logs search --from 1704067200 --to 1704153600 --query 'context.service.nam
275
275
  ```bash
276
276
  # Logs under `data`, each projected to selected fields (preserves nested objects)
277
277
  tsuga logs search --from=-10m \
278
- --fields timestamp,level,message,context.k8s.pod.name
278
+ --fields data.timestamp,data.level,data.message,data.context.k8s.pod.name
279
279
  ```
280
280
 
281
281
  ```bash