18 #ifndef MSTATISTICSSAMPLE_H
19 #define MSTATISTICSSAMPLE_H
23 #ifdef MCLIENTLIB_EXPORTS
24 #define MCLIENTLIB_API __declspec(dllexport)
26 #define MCLIENTLIB_API __declspec(dllimport)
30 #ifndef MCLIENTLIB_EXPORTS
32 #define MCLIENTLIB_API
34 #define MCLIENTLIB_API
37 #define MCLIENTLIB_API
44 #pragma warning(disable: 4251)
51 namespace MClientLib {
95 long long getSampleTime();
96 int getConnectedNodes();
97 int getConnectedManagements();
98 int getConnectedNotificators();
99 int getActiveWebSessions();
100 int getActiveWebConnections();
101 int getActiveWebSSLConnections();
103 int getPausedNodes();
105 int getUnavailableNodes();
106 double getTotalInKbs();
107 double getTotalOutKbs();
108 double getManagementInKbs();
109 double getManagementOutKbs();
110 double getNotificatorsInKbs();
111 double getNotificatorsOutKbs();
112 double getNodesInKbs();
113 double getNodesOutKbs();
114 double getWebInKbs();
115 double getWebOutKbs();
116 unsigned long long int getManagementsInBytes();
117 unsigned long long int getManagementsOutBytes();
118 unsigned long long int getNodesInBytes();
119 unsigned long long int getNodesOutBytes();
120 unsigned long long int getNotificatorsInBytes();
121 unsigned long long int getNotificatorsOutBytes();
122 unsigned long long int getWebInBytes();
123 unsigned long long int getWebOutBytes();
126 void setSampleTime(
long long);
127 void setConnectedNodes(
int);
128 void setConnectedManagements(
int);
129 void setConnectedNotificators(
int);
130 void setActiveWebSessions(
int);
131 void setActiveWebConnections(
int);
132 void setActiveWebSSLConnections(
int);
133 void setUsedNodes(
int);
134 void setPausedNodes(
int);
135 void setIdleNodes(
int);
136 void setUnavailableNodes(
int);
137 void setManagementInKbs(
double);
138 void setManagementOutKbs(
double);
139 void setNotificatorsInKbs(
double);
140 void setNotificatorsOutKbs(
double);
141 void setNodesInKbs(
double);
142 void setNodesOutKbs(
double);
143 void setWebInKbs(
double);
144 void setWebOutKbs(
double);
145 void setManagementsInBytes(
unsigned long long int);
146 void setManagementsOutBytes(
unsigned long long int);
147 void setNodesInBytes(
unsigned long long int);
148 void setNodesOutBytes(
unsigned long long int);
149 void setNotificatorsInBytes(
unsigned long long int);
150 void setNotificatorsOutBytes(
unsigned long long int);
151 void setWebInBytes(
unsigned long long int);
152 void setWebOutBytes(
unsigned long long int);
154 virtual bool Unmarshall(std::vector<std::string>& items);
155 virtual std::string Marshall();