userver: alerts::StorageComponent Class Reference
No Matches
alerts::StorageComponent Class Referencefinal

#include <userver/alerts/component.hpp>

Detailed Description

Component that keeps an alert::Storage storage for fired alerts.

The component does not have any options for service config.

Static configuration example:

# yaml
# Nothing

Definition at line 30 of file component.hpp.

+ Inheritance diagram for alerts::StorageComponent:
+ Collaboration diagram for alerts::StorageComponent:

Public Member Functions

 StorageComponent (const components::ComponentConfig &config, const components::ComponentContext &context)
StorageGetStorage () const
- Public Member Functions inherited from components::RawComponentBase
 RawComponentBase (RawComponentBase &&)=delete
 RawComponentBase (const RawComponentBase &)=delete
virtual ComponentHealth GetComponentHealth () const
virtual void OnLoadingCancelled ()
virtual void OnAllComponentsLoaded ()
virtual void OnAllComponentsAreStopping ()

Static Public Attributes

static constexpr std::string_view kName = "alerts-storage"
 The default name of alert::StorageComponent component.

Additional Inherited Members

- Static Public Member Functions inherited from components::RawComponentBase
static yaml_config::Schema GetStaticConfigSchema ()

The documentation for this class was generated from the following file: