Line data Source code
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 0 : Server::Configuration::ResourceMonitorFactoryContext& /*unused_context*/) { 18 0 : return std::make_unique<FixedHeapMonitor>(config); 19 0 : } 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