Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 382 Bytes

030-examples.md

File metadata and controls

19 lines (16 loc) · 382 Bytes
title expires_at tags
Examples
never
diego-release
cfdot

Examples

# count the total number of desired instances
$ cfdot desired-lrp-scheduling-infos | jq '.instances' | jq -s 'add'
568

# show instance counts by state
$ cfdot actual-lrps | jq -s -r 'group_by(.state)[] | .[0].state + ": " + (length | tostring)'
CRASHED: 36
RUNNING: 531
UNCLAIMED: 1