summaryrefslogtreecommitdiffstats
path: root/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Deployment.java
blob: a04f07d5dae7e7d18763d9bf3f7034c445a63f4e (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.hosted.cd;

import java.time.Instant;

/**
 * A deployment of a Vespa application, which contains endpoints for document retrieval.
 *
 * @author jonmv
 */
public interface Deployment {

    /** Returns an Endpoint in the cluster with the given id. */
    Endpoint endpoint(String id);

    /** The Vespa runtime version of the deployment, e.g., 8.16.32. */
    String platformVersion();

    /** The build number assigned to the application revision of the deployment, e.g., 496. */
    long applicationVersion();

    /** The time at which the deployment was last updated with a new platform or application version. */
    Instant deployedAt();

}