blob: 9074ae409d7284108c0aecc6b827422204a6e11d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. 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
|