finish metric api
rename package to dogapi in package.json