mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
492 B
33 lines
492 B
#ifndef _WCC_CALL_STATS_H
|
|
#define _WCC_CALL_STATS_H
|
|
|
|
#include <string>
|
|
using std::string;
|
|
|
|
class WCCCallStats {
|
|
|
|
string filename;
|
|
|
|
unsigned int total;
|
|
unsigned int failed;
|
|
unsigned int seconds;
|
|
|
|
int write_cnt;
|
|
|
|
void save();
|
|
void load();
|
|
|
|
public:
|
|
|
|
WCCCallStats(const string& stats_dir);
|
|
~WCCCallStats();
|
|
|
|
/** return statistics summary */
|
|
string getSummary();
|
|
|
|
/** add a call - success and connect seconds */
|
|
void addCall(bool success, unsigned int connect_t);
|
|
};
|
|
|
|
#endif
|