I have a requirement to find the Peak usage of Quota defined on specific resource in last 7 days programmatically.
I am able to find the Quota value and Current Usage using CLI for Persistent Disk SSD(as example).
gcloud compute regions describe us-central1 --project=project_learing \
--format="json" | jq '.quotas[] | select(.metric == "SSD_TOTAL_GB")'
But unable to find the way to get the peak usage using CLI or API.
User | Count |
---|---|
22 | |
17 | |
8 | |
5 | |
2 |