Getting metrics via API

What I got from data explorer:

type(process_group_instance),entityId(~“PROCESS_GROUP_INSTANCE-BD475E0A43F03373~”)