This repository was archived by the owner on Nov 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
-o json doesn't produce JSON formatted output #101
Copy link
Copy link
Open
Description
The command using -o json still produces table-formatted output:
> fsoc -o json uql "FETCH id FROM entities(k8s:workload)"
✓ Platform API call (POST /monitoring/v1/query/execute)
id
===============================================
k8s:deployment:JT6tRLs2ODen18HIbDIB1w
k8s:deployment:b6N73TQ4P0CPIzgOXcJ59Q
k8s:deployment:Ez43uF6+O4qSdb1JCHzn/Q
k8s:deployment:KdZMpMLAMBu5pr9fr+thQg
k8s:deployment:dLbyCKq/OSChG8DXlHC7sg
k8s:deployment:4we+hv8mPpOqzQpFV7DE+g
...Using latest FSOC:
> fsoc version
fsoc version 0.37.0While moving the -o json to the end of the command works:
> fsoc uql "FETCH id FROM entities(k8s:workload)" -o json
✓ Platform API call (POST /monitoring/v1/query/execute)
{
"model": {
"id": "string"
},
"data": [
{
"id": "k8s:deployment:JT6tRLs2ODen18HIbDIB1w"
},
{
"id": "k8s:deployment:b6N73TQ4P0CPIzgOXcJ59Q"
},
{
..., the above is still a bug IMHO.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels