Skip to content

More efficient filtering with range #18

@flozanorht

Description

@flozanorht

See the json path for apirequestcount
https://access.redhat.com/articles/6955985

$ oc get apirequestcounts -o jsonpath='{range .items[?(@.status.removedInRelease!="")]}{.status.removedInRelease}{"\t"}{.status.requestCount}{"\t"}{.metadata.name}{"\n"}{end}'

This seems more efficient than my usage of filters to return object names only and them looping all names to get the attributes I need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions