| // Copyright 2019 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef SRC_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_DOCKYARD_PROXY_LOCAL_H_ |
| #define SRC_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_DOCKYARD_PROXY_LOCAL_H_ |
| |
| #include <string> |
| |
| #include "dockyard_proxy.h" |
| |
| namespace harvester { |
| |
| // A local harvester that simply prints to stdout rather than sending messages |
| // to the Dockyard. |
| class DockyardProxyLocal : public DockyardProxy { |
| public: |
| DockyardProxyLocal() {} |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus Init() override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendLogs( |
| const std::vector<const std::string>& batch) override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendInspectJson(const std::string& stream_name, |
| const std::string& json) override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendSample(const std::string& stream_name, |
| uint64_t value) override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendSampleList(const SampleList& list) override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendStringSampleList( |
| const StringSampleList& list) override; |
| |
| // |DockyardProxy|. |
| DockyardProxyStatus SendSamples( |
| const SampleList& int_samples, |
| const StringSampleList& string_samples) override; |
| }; |
| |
| } // namespace harvester |
| |
| #endif // SRC_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_DOCKYARD_PROXY_LOCAL_H_ |