Hi.
Please have a look in the check API. There you will find the method’s for metrics.It’s a one liner
RG, Christian