How to ping different websites in Genie ACS?

if I have to take the response time of google.com. Then how can i use API for that:
is this the correct way to do this…

curl -i ‘http://localhost:7557/devices/XXXXXXXX-XXXXXX-XXXXXXXXX/tasks?connection_request
-X POST
–data ‘{“name”:“setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.IPPingDiagnostics.Host”, “www.google.com”, “xsd:string”]]}’

curl -i ‘http://localhost:7557/devices?query={"_id"%3A%XXXXX--XXXXXXX-XXXXXXXXX"}&projection=InternetGatewayDevice.IPPingDiagnostics.SuccessCount

This information is in the TR-098 spec.