forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
37 lines (27 loc) · 1.06 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "envoy/extensions/watchdog/profile_action/v3alpha/profile_action.pb.h"
#include "envoy/server/guarddog_config.h"
#include "common/protobuf/protobuf.h"
namespace Envoy {
namespace Extensions {
namespace Watchdog {
namespace ProfileAction {
class ProfileActionFactory : public Server::Configuration::GuardDogActionFactory {
public:
ProfileActionFactory() : name_("envoy.watchdog.profile_action"){};
Server::Configuration::GuardDogActionPtr createGuardDogActionFromProto(
const envoy::config::bootstrap::v3::Watchdog::WatchdogAction& config,
Server::Configuration::GuardDogActionFactoryContext& context) override;
ProtobufTypes::MessagePtr createEmptyConfigProto() override {
return std::make_unique<ProfileActionConfig>();
}
std::string name() const override { return name_; }
private:
using ProfileActionConfig =
envoy::extensions::watchdog::profile_action::v3alpha::ProfileActionConfig;
const std::string name_;
};
} // namespace ProfileAction
} // namespace Watchdog
} // namespace Extensions
} // namespace Envoy