APISonar


com.yahoo.vespa.hosted.controller.api.integration.configserver.PrepareResponse.log

> com > yahoo > vespa > hosted > controller > api > integration > configserver > PrepareResponse > log
com APIs yahoo APIs vespa APIs hosted APIs controller APIs api APIs integration APIs configserver APIs PrepareResponse APIs log APIs

Example 1
private ActivateResult unexpectedDeployment(ApplicationId application, ZoneId zone) {
        Log logEntry = new Log();
        logEntry.level = "WARNING";
        logEntry.time = clock.instant().toEpochMilli();
        logEntry.message = "Ignoring deployment of application '" + application + "' to " + zone +
                           " as a deployment is not currently expected";
        PrepareResponse prepareResponse = new PrepareResponse();
        prepareResponse.log = Collections.singletonList(logEntry);
        prepareResponse.configChangeActions = new ConfigChangeActions(Collections.emptyList(), Collections.emptyList());
        return new ActivateResult(new RevisionId("0"), prepareResponse, 0);
    }