Scala API for remote monitoring and control