summaryrefslogtreecommitdiffstats
path: root/tenant-cd/src/main/java/ai/vespa/hosted/cd/Endpoint.java
blob: 348fc3296828c3e28185aa4040ca5f83bf80bf89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ai.vespa.hosted.cd;

import ai.vespa.hosted.cd.metric.Metrics;

/**
 * An endpoint in a Vespa application {@link Deployment}, which allows document and metrics retrieval.
 *
 * The endpoint translates {@link Query}s to {@link Search}s, and {@link Selection}s to {@link Visit}s.
 * It also supplies {@link Metrics}.
 *
 * @author jonmv
 */
public interface Endpoint {

    Search search(Query query);

    Visit visit(Selection selection);

    Metrics metrics();

}