aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/net/http/health_producer.h
blob: a16ffbd225fb5780094e277d0d53f8a9ff8d46b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace vespalib {

struct HealthProducer {
    struct Health {
        bool ok;
        vespalib::string msg;
        Health(bool o, const vespalib::string &m) : ok(o), msg(m) {}
    };
    virtual Health getHealth() const = 0;
    virtual ~HealthProducer() {}
};

} // namespace vespalib