|
NATS C Client with JetStream and Streaming support
3.7.0
The nats.io C Client, Supported by Synadia Communications Inc.
|
Functions | |
| NATS_EXTERN natsStatus | natsStatistics_Create (natsStatistics **newStats) |
| Creates a natsStatistics object. | |
| NATS_EXTERN natsStatus | natsStatistics_GetCounts (const natsStatistics *stats, uint64_t *inMsgs, uint64_t *inBytes, uint64_t *outMsgs, uint64_t *outBytes, uint64_t *reconnects) |
| Extracts the various statistics values. | |
| NATS_EXTERN void | natsStatistics_Destroy (natsStatistics *stats) |
| Destroys the natsStatistics object. | |
Statistics Functions.
| NATS_EXTERN natsStatus natsStatistics_Create | ( | natsStatistics ** | newStats | ) |
Creates a statistics object that can be passed to natsConnection_GetStats().
| newStats | the location where to store the pointer to the newly created natsStatistics object. |
| NATS_EXTERN natsStatus natsStatistics_GetCounts | ( | const natsStatistics * | stats, |
| uint64_t * | inMsgs, | ||
| uint64_t * | inBytes, | ||
| uint64_t * | outMsgs, | ||
| uint64_t * | outBytes, | ||
| uint64_t * | reconnects | ||
| ) |
Gets the counts out of the statistics object.
NULL to any of the count your are not interested in getting.| stats | the pointer to the natsStatistics object to get the values from. |
| inMsgs | total number of inbound messages. |
| inBytes | total size (in bytes) of inbound messages. |
| outMsgs | total number of outbound messages. |
| outBytes | total size (in bytes) of outbound messages. |
| reconnects | total number of times the client has reconnected. |
| NATS_EXTERN void natsStatistics_Destroy | ( | natsStatistics * | stats | ) |
Destroys the statistics object, freeing up memory.
| stats | the pointer to the natsStatistics object to destroy. |