metric api example change