blob: b9f16a27d73263694989377ae532b308d307e808 (
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 com.yahoo.vespa.hosted.provision.autoscale;
import com.yahoo.collections.Pair;
import com.yahoo.config.provision.ApplicationId;
import java.time.Instant;
import java.util.Collection;
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);
}
|