1
#include "source/extensions/resource_monitors/fixed_heap/config.h"
2

            
3
#include "envoy/extensions/resource_monitors/fixed_heap/v3/fixed_heap.pb.h"
4
#include "envoy/extensions/resource_monitors/fixed_heap/v3/fixed_heap.pb.validate.h"
5
#include "envoy/registry/registry.h"
6

            
7
#include "source/common/protobuf/utility.h"
8
#include "source/extensions/resource_monitors/fixed_heap/fixed_heap_monitor.h"
9

            
10
namespace Envoy {
11
namespace Extensions {
12
namespace ResourceMonitors {
13
namespace FixedHeapMonitor {
14

            
15
Server::ResourceMonitorPtr FixedHeapMonitorFactory::createResourceMonitorFromProtoTyped(
16
    const envoy::extensions::resource_monitors::fixed_heap::v3::FixedHeapConfig& config,
17
1
    Server::Configuration::ResourceMonitorFactoryContext& /*unused_context*/) {
18
1
  return std::make_unique<FixedHeapMonitor>(config);
19
1
}
20

            
21
/**
22
 * Static registration for the fixed heap resource monitor factory. @see RegistryFactory.
23
 */
24
REGISTER_FACTORY(FixedHeapMonitorFactory, Server::Configuration::ResourceMonitorFactory);
25

            
26
} // namespace FixedHeapMonitor
27
} // namespace ResourceMonitors
28
} // namespace Extensions
29
} // namespace Envoy