Hi Khaled,
You should use the new metric API. See the documentation here:
https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric/
Best greetings,
Wolfgang
Can you tell me what I need in the parameters, beside the selector, in order to get the current value?
Thank you