aboutsummaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/net/health_producer.h
blob: f61afa3b716a97083c7dc0ea162d8747d4e1128f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 Yahoo Inc. 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