add REST API for creating availability metric