External Measurement API
wqSendMeasurement()
wqSendMeasurement()
Sends the timestamp, measurement name, and measurement value to
WebQoS.
Synopsis
#include </opt/webqos/include/qosExternMeaseAPI.h> or #include
wqStatus wqSendMeasurement(wqSocket socket, char *xmlString)
Arguments
socket | The socket descriptor returned by |
| wqCreateConnection() used to identify the |
| connection to WebQoS. |
xmlString | Timestamp, measurement name(s), and measurement |
| value(s) in the following format: |
<timestamp>TIMESTAMP</timestamp><measPair><measName>MEASUREMENT_NAME</measName> <measIntegerValue>MEASUREMENT_VALUE</measIntegerValue></measPair>
where TIMESTAMP is the unformatted timestamp (in milliseconds), MEASUREMENT_NAME must match the measurement name you configured or will configure in the service level SLO, and MEASUREMENT_VALUE is the value of the measurement. More than one measPair can be included in the xmlString.
xmlString cannot be greater than 1024 characters (as defined by WQ_MAX_XML_STRING_SIZE in the header file).
Appendix B | 137 |