-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.h
50 lines (36 loc) · 886 Bytes
/
params.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PARAMS_H
#define PARAMS_H
#include <string>
class CParameters
{
public:
std::string templatefile; //templatefile name from /logfilegen/templates
std::string logfile; //output logfile name with full path
std::string mode; //"nginx" or "apache"
std::string results;
std::string results_template;
size_t duration; //duration of log generation, in seconds
size_t rate; //during the log generation, how many lines per second will be written
size_t lines;
size_t size;
std::string s_size;
std::string metrics_addr;
std::string port;
std::string ip; //public ip
size_t threads;
size_t max_log_files;
std::string max_log_file_size;
std::string timestamp;
bool random;
bool use_gzip;
bool pure;
bool bstdout;
bool debug;
bool benchmark;
//bool stats;
bool test;
bool metrics;
size_t poll;
void print();
};
#endif