Foglight REST API - Unable to fetch metric data

Hi,

I am trying to fetch some metrics data using REST API but struggling to understand the data hierarchy. Appreciate, if some could help me to understand the same.

FYI: One method would be collecting all agent ids (using /agent/allAgents/ method)..... then pass each Agent ID and try collecting metrics collected for said agent....then collect sample values for each metric.

but unable to understand by which method i could pass an agent ID and then collect all metrics ID/Name and then in next call .... pass all required Metric Ids and collect their values.

Regards, Ravi