Component that keeps a utils::statistics::Storage storage for metrics. More...
#include <userver/components/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 () |
![]() | |
LoggableComponentBase (const ComponentConfig &, const ComponentContext &) | |
LoggableComponentBase (LoggableComponentBase &&)=delete | |
LoggableComponentBase (const LoggableComponentBase &)=delete | |
~LoggableComponentBase () override=default | |
ComponentHealth | GetComponentHealth () const override |
void | OnLoadingCancelled () override |
void | OnAllComponentsLoaded () override |
void | OnAllComponentsAreStopping () override |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
![]() | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr auto | kName = "statistics-storage" |
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 31 of file statistics_storage.hpp.
|
inline |
Definition at line 46 of file statistics_storage.hpp.
|
inline |
Definition at line 42 of file statistics_storage.hpp.
|
inline |
Definition at line 44 of file statistics_storage.hpp.
|
staticconstexpr |
Definition at line 33 of file statistics_storage.hpp.