The declarations in this header file correspond to the definitions in statistics.c.
More...
Go to the source code of this file.
|
|
typedef struct StatisticsState * | StatisticsHandle |
| | Type used as the handle (pointer to an opaque structure) for managing statistics for a connection. Each handle represents a single data flow.
|
| |
|
| CdiReturnStatus | StatsCreate (CdiConnectionState *con_state_ptr, CdiCoreStatsCallback stats_cb_ptr, CdiUserCbParameter stats_user_cb_param, CloudWatchSdkMetricsHandle cw_sdk_handle, CloudWatchSdkMetricsHandle metrics_gatherer_sdk_handle, StatisticsHandle *return_handle_ptr) |
| |
| CdiReturnStatus | StatsDestroy (StatisticsHandle handle) |
| |
| CdiReturnStatus | StatsConfigure (StatisticsHandle handle, const CdiStatsConfigData *stats_config_ptr) |
| |
| void | StatsGatherPayloadStatsFromConnection (CdiEndpointState *endpoint_ptr, bool payload_ok, uint64_t start_time, uint64_t max_latency_microsecs, uint64_t bytes_transferred) |
| |
The declarations in this header file correspond to the definitions in statistics.c.
◆ StatsConfigure()
Configure transfer statistics.
- Parameters
-
| handle | The handle of the connection to set statistics configuration. |
| stats_config_ptr | Pointer to statistics configuration data. |
- Returns
- A value from the CdiReturnStatus enumeration.
◆ StatsCreate()
Create an instance of the statistics component for the specified connection.
- Parameters
-
| con_state_ptr | Pointer to connection state data. |
| stats_cb_ptr | Address of user-defined callback function. |
| stats_user_cb_param | Parameter used in structure passed to stats_cb_ptr. |
| cw_sdk_handle | Handle to CloudWatch Metrics instance. |
| metrics_gatherer_sdk_handle | Handle to CDI metrics gatherer instance. |
| return_handle_ptr | Address where to write returned statistics handle. |
- Returns
- A value from the CdiReturnStatus enumeration.
◆ StatsDestroy()
Free all resources related to the specified statistics component.
- Parameters
-
| handle | Handle of statistics component. |
- Returns
- A value from the CdiReturnStatus enumeration.
◆ StatsGatherPayloadStatsFromConnection()
| void StatsGatherPayloadStatsFromConnection |
( |
CdiEndpointState * | endpoint_ptr, |
|
|
bool | payload_ok, |
|
|
uint64_t | start_time, |
|
|
uint64_t | max_latency_microsecs, |
|
|
uint64_t | bytes_transferred ) |
Gather transfer time statistics for a single payload from a connection.
- Parameters
-
| endpoint_ptr | Pointer to endpoint state data. |
| payload_ok | Use true if payload was successfully transferred, otherwise false. |
| start_time | Time when transfer for the payload started in microseconds. |
| max_latency_microsecs | The specified maximum latency in microseconds of the payload. |
| bytes_transferred | The number of bytes transferred for this connection. |