#include <userver/alerts/source.hpp>
Alert source instance which is used to fire alerts via metrics.
Definition at line 27 of file source.hpp.
Public Member Functions | |
Source (const std::string &name) | |
void | FireAlert (utils::statistics::MetricsStorage &storage, std::chrono::seconds duration=kDefaultDuration) |
Fire alert for duration seconds. | |
void | StopAlertNow (utils::statistics::MetricsStorage &storage) |
Stop fired alert. | |
Static Public Attributes | |
static constexpr std::chrono::seconds | kDefaultDuration {120} |
|
staticconstexpr |
Definition at line 29 of file source.hpp.