private static void toSlime(Autoscaling.Metrics metrics, Cursor metricsObject) {
        metricsObject.setDouble("queryRate", metrics.queryRate());
        metricsObject.setDouble("growthRateHeadroom", metrics.growthRateHeadroom());
        metricsObject.setDouble("cpuCostPerQuery", metrics.cpuCostPerQuery());
    }
Serializes application information for nodes/v2/application responses

@author bratseth
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/restapi/ApplicationSerializer.java