mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Mar 13th 2023 update
This commit is contained in:
@@ -220,9 +220,15 @@ GenericMetric::generateLog()
|
||||
}
|
||||
}
|
||||
|
||||
string fog_metric_uri = getConfigurationWithDefault<string>("/api/v1/agents/events", "metric", "fogMetricUri");
|
||||
LogRest metric_client_rest(metric_to_fog);
|
||||
|
||||
sendLog(metric_client_rest);
|
||||
}
|
||||
|
||||
void
|
||||
GenericMetric::sendLog(const LogRest &metric_client_rest) const
|
||||
{
|
||||
string fog_metric_uri = getConfigurationWithDefault<string>("/api/v1/agents/events", "metric", "fogMetricUri");
|
||||
Singleton::Consume<I_Messaging>::by<GenericMetric>()->sendObjectWithPersistence(
|
||||
metric_client_rest,
|
||||
I_Messaging::Method::POST,
|
||||
|
Reference in New Issue
Block a user