A API for System Resource Management and Detection