Class holding a statistics sample.
More...
Class holding a statistics sample.
Holds data related to a statistics sample
Definition at line 79 of file MStatisticsSample.h.
| int getActiveWebConnections |
( |
| ) |
|
- Returns
- the number of web unencrypted connections in the sample
| int getActiveWebSessions |
( |
| ) |
|
- Returns
- the number of active web sessions in the sample
| int getActiveWebSSLConnections |
( |
| ) |
|
- Returns
- the number of web encrypted connections in the sample
| int getConnectedManagements |
( |
| ) |
|
- Returns
- the number of management connections in the sample
| int getConnectedNodes |
( |
| ) |
|
- Returns
- the number of connected nodes in the sample
| int getConnectedNotificators |
( |
| ) |
|
- Returns
- the number of notificator connections in the sample
| double getCpuProcessUsage |
( |
| ) |
|
- Returns
- the cpu usages by the allocating process in the sample
| const std::vector<double>& getCpuUsages |
( |
| ) |
|
- Returns
- a vector of distinct cpus usages in the sample
| const std::vector<double>& getDiskReadUsage |
( |
| ) |
|
- Returns
- the DISKS read usage in the sample. Percentage for Windows, in blocks for Unix
| const std::vector<std::string>& getDisksNames |
( |
| ) |
|
- Returns
- names of the DISKs in the sample, may be blank if not the first sample
| const std::vector<double>& getDiskWriteUsage |
( |
| ) |
|
- Returns
- the DISKS write usage in the sample. Percentage for Windows, in blocks for Unix
| const std::string& getEncodedDisksUsage |
( |
| ) |
|
- Returns
- the encoded DISKs usage in the sample. Available from 9.0.5
| const std::string& getEncodedNicUsage |
( |
| ) |
|
- Returns
- the encoded NICs usage in the sample. Available from 9.0.5
| const std::string& getEncodedProcessorsUsage |
( |
| ) |
|
- Returns
- the encoded processors usage in the sample
| const std::string& getEncodedRamUsage |
( |
| ) |
|
- Returns
- the encoded RAM/SWAP usage in the sample
- Returns
- the sample ID as a long value
- Returns
- the number of idle nodes in the sample
| double getManagementInKbs |
( |
| ) |
|
- Returns
- the sampled management input KB/s in the sample
| double getManagementOutKbs |
( |
| ) |
|
- Returns
- the sampled management output KB/s in the sample
| unsigned long long int getManagementsInBytes |
( |
| ) |
|
- Returns
- the accumulated management input bytes in the sample
| unsigned long long int getManagementsOutBytes |
( |
| ) |
|
- Returns
- the accumulated management output bytes in the sample
| const std::vector<double>& getNicBandwidth |
( |
| ) |
|
- Returns
- the NICs bandwidth usage in the sample
| const std::vector<std::string>& getNicNames |
( |
| ) |
|
- Returns
- names of the NICs in the sample, may be blank if not the first sample
| const std::vector<unsigned long long>& getNicReadBytes |
( |
| ) |
|
- Returns
- the NICs received bytes in the sample
| const std::vector<unsigned long long>& getNicSentBytes |
( |
| ) |
|
- Returns
- the NICs sent bytes in the sample
| unsigned long long int getNodesInBytes |
( |
| ) |
|
- Returns
- the accumulated nodes input bytes in the sample
- Returns
- the sampled nodes input KB/s in the sample
| unsigned long long int getNodesOutBytes |
( |
| ) |
|
- Returns
- the accumulated nodes output bytes in the sample
| double getNodesOutKbs |
( |
| ) |
|
- Returns
- the sampled nodes output KB/s in the sample
| unsigned long long int getNotificatorsInBytes |
( |
| ) |
|
- Returns
- the accumulated notificator input bytes in the sample
| double getNotificatorsInKbs |
( |
| ) |
|
- Returns
- the sampled notificator input KB/s in the sample
| unsigned long long int getNotificatorsOutBytes |
( |
| ) |
|
- Returns
- the accumulated notificator output bytes in the sample
| double getNotificatorsOutKbs |
( |
| ) |
|
- Returns
- the sampled notificator output KB/s in the sample
- Returns
- the number of paused nodes in the sample
| long long getSampleTime |
( |
| ) |
|
- Returns
- the sample time as a long long value
| mRamCounterType getSwapUsage |
( |
| ) |
|
- Returns
- the total swap usage in the sample
- Returns
- the sampled total input KB/s in the sample
| double getTotalOutKbs |
( |
| ) |
|
- Returns
- the sampled total output KB/s in the sample
| mRamCounterType getTotalRamAmount |
( |
| ) |
|
- Returns
- the total ram amount in the sample
| mRamCounterType getTotalSwapAmount |
( |
| ) |
|
- Returns
- the total swap amount in the sample
| int getUnavailableNodes |
( |
| ) |
|
- Returns
- the number of unavailable/offline nodes in the sample
- Returns
- the number of used nodes in the sample
| mRamCounterType getUsedRam |
( |
| ) |
|
- Returns
- the used ram amount in the sample
| double getUsedRamByProcessPercent |
( |
| ) |
|
- Returns
- the cpu usages by the allocating process in the sample in percentage
| double getUsedRamPercent |
( |
| ) |
|
- Returns
- the used ram amount in the sample in percentage
| double getUsedSwapPercent |
( |
| ) |
|
- Returns
- the used swap amount in the sample in percentage
| unsigned long long int getWebInBytes |
( |
| ) |
|
- Returns
- the accumulated HTTP(S) input bytes in the sample
- Returns
- the sampled HTTP(S) input KB/s in the sample
| unsigned long long int getWebOutBytes |
( |
| ) |
|
- Returns
- the accumulated HTTP(S) output bytes in the sample
- Returns
- the sampled HTTP(S) output KB/s in the sample
Resets the statistics objects to its default values
| void setActiveWebConnections |
( |
int |
amount | ) |
|
Sets the sample active web unencrypted connections
- Parameters
-
| [in] | amount | The amount of the sample |
| void setActiveWebSessions |
( |
int |
amount | ) |
|
Sets the sample active web sessions
- Parameters
-
| [in] | amount | The amount of the sample |
| void setActiveWebSSLConnections |
( |
int |
amount | ) |
|
Sets the sample active web encrypted connections
- Parameters
-
| [in] | amount | The amount of the sample |
| void setConnectedManagements |
( |
int |
amount | ) |
|
Sets the sample connected managements
- Parameters
-
| [in] | amount | The amount of the sample |
| void setConnectedNodes |
( |
int |
amount | ) |
|
Sets the sample connected nodes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setConnectedNotificators |
( |
int |
amount | ) |
|
Sets the sample connected notificators
- Parameters
-
| [in] | amount | The amount of the sample |
| void setEncodedDisksUsage |
( |
const std::string & |
disksUsage | ) |
|
Sets the encoded DISKs usage. Available from 9.0.5
- Parameters
-
| [in] | disksUsage | The encoded disks usage |
| void setEncodedNicUsage |
( |
const std::string & |
nicUsage | ) |
|
Sets the encoded NICs usage. Available from 9.0.5
- Parameters
-
| [in] | nicUsage | The encoded NICs usage |
| void setEncodedProcessorsUsage |
( |
const std::string & |
processorsUsage | ) |
|
Sets the encoded processors usage
- Parameters
-
| [in] | processorsUsage | The encoded processors usage |
| void setEncodedRamUsage |
( |
const std::string & |
ramUsage | ) |
|
Sets the encoded ram usage
- Parameters
-
| [in] | ramUsage | The encoded ran usage |
Sets the sample ID
- Parameters
-
| void setIdleNodes |
( |
int |
amount | ) |
|
Sets the sample idle nodes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setManagementInKbs |
( |
double |
amount | ) |
|
Sets the sample management input KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setManagementOutKbs |
( |
double |
amount | ) |
|
Sets the sample management output KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setManagementsInBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated managements input bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setManagementsOutBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated managements output bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNodesInBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated nodes input bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNodesInKbs |
( |
double |
amount | ) |
|
Sets the sample nodes input KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNodesOutBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated nodes output bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNodesOutKbs |
( |
double |
amount | ) |
|
Sets the sample nodes output input KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNotificatorsInBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated notificator input bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNotificatorsInKbs |
( |
double |
amount | ) |
|
Sets the sample notificaators input KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNotificatorsOutBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated notificator output bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setNotificatorsOutKbs |
( |
double |
amount | ) |
|
Sets the sample notificators output KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setPausedNodes |
( |
int |
amount | ) |
|
Sets the sample paused nodes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setSampleTime |
( |
long long |
time | ) |
|
Sets the sample time
- Parameters
-
| [in] | time | The sample time in seconds |
| void setUnavailableNodes |
( |
int |
amount | ) |
|
Sets the sample unavailable nodes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setUsedNodes |
( |
int |
amount | ) |
|
Sets the sample used nodes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setWebInBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated HTTP(S) input bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setWebInKbs |
( |
double |
amount | ) |
|
Sets the sample HTTP(S) input KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
| void setWebOutBytes |
( |
unsigned long long int |
amount | ) |
|
Sets the accumulated HTTP(S) output bytes
- Parameters
-
| [in] | amount | The amount of the sample |
| void setWebOutKbs |
( |
double |
amount | ) |
|
Sets the sample HTTP(S) output KB/s
- Parameters
-
| [in] | amount | The amount of the sample |
The documentation for this class was generated from the following file: