[api] add statsd api functions