#include <qsimplearmtran.h>
Inheritance diagram for QSimpleArmCounter:

Public Types | |
| enum | QMetricType { COUNTER, GAUGE, ID } |
Public Member Functions | |
| QSimpleArmCounter (const QString &_name, const QString &_unit) | |
| void | setValue (qint64 _value) |
| qint64 | getValue () const |
| const arm_id_t * | getMetricId () const |
| void | fill (armsdk_subbuffer_metric_values_t *_mv) const |
Protected Member Functions | |
| void | registerMetric (const short slot) |
Friends | |
| class | QArmMetricList |
Definition at line 75 of file qsimplearmtran.h.
|
|
Types of metrics. Definition at line 68 of file qarmmetric.h. |
|
||||||||||||
|
Contructor of a counter metric.
Definition at line 165 of file qsimplearmtran.cpp. |
|
|
Fill the current metric value into the provided sub-buffer.
Definition at line 78 of file qarmmetric.cpp. References QArmMetric::COUNTER, QArmMetric::GAUGE, QArmMetric::ID, QArmMetric::m_Type, and QArmMetric::metric. |
|
|
Definition at line 72 of file qarmmetric.cpp. References QArmMetric::metric_binding. |
|
|
get the value of the metric. Definition at line 144 of file qarmmetric.cpp. References QArmMetric::COUNTER, QArmMetric::GAUGE, QArmMetric::ID, QArmMetric::m_Type, and QArmMetric::metric. |
|
|
Definition at line 161 of file qarmmetric.h. References QArmMetric::COUNTER, and QArmMetric::m_Type. |
|
|
Definition at line 165 of file qarmmetric.h. References QArmMetric::GAUGE, and QArmMetric::m_Type. |
|
|
Definition at line 169 of file qarmmetric.h. References QArmMetric::ID, and QArmMetric::m_Type. |
|
|
This method is called from QArmMetricList when a metric is appended to the list.
Definition at line 106 of file qarmmetric.cpp. References QArmMetric::COUNTER, QArmMetric::GAUGE, QArmMetric::ID, QArmMetric::m_AppId, QArmMetric::m_Name, QArmMetric::m_Type, QArmMetric::m_Unit, QArmMetric::metric, and QArmMetric::metric_binding. Referenced by QArmMetricList::append(). |
|
|
set the value of the metric.
Definition at line 134 of file qarmmetric.cpp. References QArmMetric::COUNTER, QArmMetric::GAUGE, QArmMetric::ID, QArmMetric::m_Type, and QArmMetric::metric. |
|
|
Since there exists a strict binding between metric values and metric definitions using the slot mechanism the QArmMetricList class provides the slot number. Therefore it needs to execute the registerMetric() method. Definition at line 129 of file qarmmetric.h. |
1.4.2