Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON metadata output should not contain scan info when --timing=on #4292

Open
pskrbasu opened this issue May 31, 2024 · 0 comments
Open

JSON metadata output should not contain scan info when --timing=on #4292

pskrbasu opened this issue May 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pskrbasu
Copy link
Contributor

JSON metadata output should not contain scan info when --timing=on. The scans info should only be there for --timing=verbose

metadata is same for both.
--timing=on --output=json

"metadata": {
  "duration_ms": 3349,
  "scans": [
   {
    "connection": "aws",
    "table": "aws_account",
    "cache_hit": false,
    "rows_fetched": 1,
    "hydrate_calls": 2,
    "start_time": "2024-05-31T14:18:01+05:30",
    "duration_ms": 3295,
    "columns": [
     "account_aliases",
     "organization_feature_set",
     "organization_master_account_id",
     "organization_id",
     "organization_arn",
     "title",
     "account_id",
     "arn",
     "organization_available_policy_types",
     "akas",
     "sp_connection_name",
     "sp_ctx",
     "organization_master_account_arn",
     "organization_master_account_email",
     "partition",
     "region",
     "_ctx"
    ]
   }
  ],
  "scan_count": 1,
  "rows_returned": 1,
  "uncached_rows_fetched": 1,
  "cached_rows_fetched": 0,
  "hydrate_calls": 2,
  "connection_count": 1
 }

--timing=verbose --output=json

"metadata": {
  "duration_ms": 3646,
  "scans": [
   {
    "connection": "aws",
    "table": "aws_account",
    "cache_hit": false,
    "rows_fetched": 1,
    "hydrate_calls": 2,
    "start_time": "2024-05-31T14:25:54+05:30",
    "duration_ms": 3590,
    "columns": [
     "sp_ctx",
     "organization_master_account_arn",
     "organization_master_account_email",
     "title",
     "region",
     "sp_connection_name",
     "arn",
     "organization_arn",
     "organization_master_account_id",
     "partition",
     "account_aliases",
     "organization_id",
     "organization_feature_set",
     "account_id",
     "organization_available_policy_types",
     "akas",
     "_ctx"
    ]
   }
  ],
  "scan_count": 1,
  "rows_returned": 1,
  "uncached_rows_fetched": 1,
  "cached_rows_fetched": 0,
  "hydrate_calls": 2,
  "connection_count": 1
 }
@pskrbasu pskrbasu added the bug Something isn't working label May 31, 2024
@pskrbasu pskrbasu transferred this issue from turbot/powerpipe May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant