aboutsummaryrefslogtreecommitdiffstats
path: root/metrics-proxy/src/test/java/ai/vespa/metricsproxy/service/DownService.java
blob: ccd1351f2d58639c7a0f8d27179370bd8b59b4d3 (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
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.metricsproxy.service;

import ai.vespa.metricsproxy.metric.HealthMetric;

/**
 * @author gjoranv
 */
public class DownService extends VespaService {
    public static final String NAME = "down-service";

    private final HealthMetric healthMetric;

    public DownService(HealthMetric healthMetric) {
        super(NAME, "");
        this.healthMetric = healthMetric;
    }

    @Override
    public void consumeMetrics(MetricsParser.Collector consumer) {
    }

   @Override
   public HealthMetric getHealth() {
        return healthMetric;
   }
}