22 Timebucket(
const std::string& column,
unsigned int size,
23 const std::string& format,
const std::string& alias) :
24 m_column(column), m_size(size), m_format(format), m_alias(alias) {};
25 Timebucket(
const std::string& column,
unsigned int size,
26 const std::string& format) :
27 m_column(column), m_size(size), m_format(format), m_alias(column) {};
31 std::ostringstream json;
33 json <<
"{ \"timestamp\" : \"" << m_column <<
"\", ";
34 json <<
"\"size\" : \"" << m_size <<
"\", ";
35 json <<
"\"format\" : \"" << m_format <<
"\", ";
36 json <<
"\"alias\" : \"" << m_alias <<
"\" }";
40 const std::string m_column;
42 const std::string m_format;
43 const std::string m_alias;
Timebucket clause in a selection of records.
Definition: timebucket.h:20