aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/common/hostreporter/hostreporter.h
blob: 70a11ced885dd909aabd0b9aa8acfd1e21eb0284 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/util/jsonstream.h>

namespace storage {
/**
 * Interface for reporters. Each implementation should add a json entry, e.g. for
 * cpu it should be named "cpu".
 */
class HostReporter {
public:
	virtual void report(vespalib::JsonStream& jsonreport) = 0;
	virtual ~HostReporter() = default;
};
}