fix parameter type from hash to string.
Add component test for monitoring API.