Monitoring the State of a Function with the Lambda API