documentation for metric-api