#include <userver/components/statistics_storage.hpp>
Component that keeps a utils::statistics::Storage storage for metrics.
Returned references to utils::statistics::Storage live for a lifetime of the component and are safe for concurrent use.
The component does not have any options for service config.
Definition at line 32 of file statistics_storage.hpp.
Public Member Functions | |
StatisticsStorage (const ComponentConfig &config, const ComponentContext &context) | |
void | OnAllComponentsLoaded () override |
utils::statistics::Storage & | GetStorage () |
const utils::statistics::Storage & | GetStorage () const |
utils::statistics::MetricsStoragePtr | GetMetricsStorage () |
virtual ComponentHealth | GetComponentHealth () const |
virtual void | OnLoadingCancelled () |
virtual void | OnAllComponentsAreStopping () |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr std::string_view | kName = "statistics-storage" |
The default name of components::StatisticsStorage component. | |
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, and server::handlers::Restart.
Definition at line 49 of file raw_component_base.hpp.
|
inline |
Definition at line 48 of file statistics_storage.hpp.
|
inline |
Definition at line 44 of file statistics_storage.hpp.
|
inline |
Definition at line 46 of file statistics_storage.hpp.
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, and components::Server.
Definition at line 55 of file raw_component_base.hpp.
|
overridevirtual |
Reimplemented from components::RawComponentBase.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 51 of file raw_component_base.hpp.