aboutsummaryrefslogtreecommitdiffstats
path: root/service-monitor/src/main/java/com/yahoo/vespa/service/manager/HealthMonitorApi.java
blob: c24d65f29ce4f06f27c53ec7405fb3d32aefe506 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.service.manager;

import com.yahoo.config.provision.ApplicationId;
import com.yahoo.vespa.applicationmodel.ServiceStatusInfo;
import com.yahoo.vespa.service.health.HealthMonitorManager;
import com.yahoo.vespa.service.monitor.ServiceId;
import com.yahoo.vespa.service.monitor.ServiceStatusProvider;

import java.util.List;
import java.util.Map;

/**
 * The API of {@link HealthMonitorManager} which is exported to other bundles (typically for REST).
 *
 * @author hakonhall
 */
public interface HealthMonitorApi extends ServiceStatusProvider {
    List<ApplicationId> getMonitoredApplicationIds();
    Map<ServiceId, ServiceStatusInfo> getServices(ApplicationId applicationId);
}