userver: userver/utils/statistics/common.hpp Source File
Loading...
Searching...
No Matches
common.hpp
1#pragma once
2
3#include <chrono>
4#include <string>
5
6USERVER_NAMESPACE_BEGIN
7
8namespace utils::statistics {
9
10/* Graphite stores metrics once per minute,
11 * so we have to store at least 1min */
12constexpr auto kDefaultMaxPeriod = std::chrono::seconds(60);
13
14constexpr auto kDefaultEpochDuration = std::chrono::seconds(5);
15
16std::string DurationToString(std::chrono::seconds duration);
17
18} // namespace utils::statistics
19
20USERVER_NAMESPACE_END