Added metering functionality and a view at the metering endpoint