feat(workflow): example stats page with embedded Chart.js, inline form validation errors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,11 @@ double Metrics::get(const std::string& name) const {
|
||||
return it == values_.end() ? 0.0 : it->second;
|
||||
}
|
||||
|
||||
std::map<std::string, double> Metrics::snapshot() const {
|
||||
std::lock_guard<std::mutex> lock(mu_);
|
||||
return values_;
|
||||
}
|
||||
|
||||
std::string Metrics::render_prometheus() const {
|
||||
std::lock_guard<std::mutex> lock(mu_);
|
||||
std::string out;
|
||||
|
||||
Reference in New Issue
Block a user