diff --git a/README.md b/README.md index 5380501..5ee79f4 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ pb promql active-queries # Datasets pb dataset list pb dataset info +pb dataset schema pb dataset add pb dataset remove @@ -353,6 +354,7 @@ Commands that support `-o json` return structured output: pb status -o json pb profile list -o json pb dataset list -o json +pb dataset schema -o json pb sql list -o json pb sql run "SELECT count(*) FROM backend" --from=1h --output json pb promql run "up" --dataset otel_metrics --instant --output json diff --git a/cmd/agent.go b/cmd/agent.go index 9b4805a..31d0dd0 100644 --- a/cmd/agent.go +++ b/cmd/agent.go @@ -107,6 +107,7 @@ func newAgentManifest() agentManifest { {Command: "pb profile list -o json", Description: "List locally configured profiles without credentials", Scope: "local", Mutates: false, RequiresProfile: false, Constraints: []string{"Requires the local pb config file"}}, {Command: "pb dataset list -o json", Description: "List datasets", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb dataset info -o json", Description: "Read dataset statistics and configuration", Scope: "server", Mutates: false, RequiresProfile: true}, + {Command: "pb dataset schema -o json", Description: "Read dataset field names and types", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb user list -o json", Description: "List users and their roles", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb role list -o json", Description: "List roles and privileges", Scope: "server", Mutates: false, RequiresProfile: true}, {Command: "pb sql run \"