aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/DeploymentResult.java
blob: e73d783c530208d2f6be9312596a1a361c136acc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.configserver;

import java.util.List;
import java.util.logging.Level;

import static java.util.Objects.requireNonNull;

/**
 * The result of a deployment, carried out against a {@link ConfigServer}.
 *
 * @author jonmv
 */
public record DeploymentResult(String message, List<LogEntry> log) {

    public DeploymentResult {
        requireNonNull(message);
        requireNonNull(log);
    }

    public record LogEntry(long epochMillis, String message, Level level, boolean concernsPackage) {

        public LogEntry {
            requireNonNull(message);
            requireNonNull(level);
        }

    }

}