aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/MetricsFetcher.java
blob: e7e826fec9183fcc35ce5de677a9bb11e0cb77e7 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.autoscale;

import com.yahoo.config.provision.ApplicationId;

import java.util.concurrent.CompletableFuture;

/**
 * Interface to retrieve metrics on (tenant) nodes.
 *
 * @author bratseth
 */
public interface MetricsFetcher {

    /**
     * Fetches metrics asynchronously for all hosts of an application. This call may be expensive.
     *
     * @param application the application to fetch metrics from
     */
    CompletableFuture<MetricsResponse> fetchMetrics(ApplicationId application);

    void deconstruct();

}