CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
cloudwatch.h File Reference

The declarations in this header file correspond to the definitions in cloudwatch.c. More...

#include "configuration.h"
#include "cdi_core_api.h"
#include "private.h"

Go to the source code of this file.

Typedefs

typedef struct CloudWatchState CloudWatchState
 Forward reference of structure to create pointers later.
 
typedef struct CloudWatchState * CloudWatchHandle
 Type used as the handle (pointer to an opaque structure) for managing statistics for a connection. Each handle represents a single data flow.
 

Functions

CdiReturnStatus CloudWatchCreate (CdiConnectionState *con_state_ptr, CloudWatchSdkMetricsHandle cw_sdk_handle, CloudWatchHandle *return_handle_ptr)
 
CdiReturnStatus CloudWatchDestroy (CloudWatchHandle handle)
 
CdiReturnStatus CloudWatchConfigure (CloudWatchHandle handle, const CdiStatsConfigData *stats_config_ptr)
 
void CloudWatchStatisticsMessage (CloudWatchHandle handle, int stats_count, const CdiTransferStats *transfer_stats_array)
 

Detailed Description

The declarations in this header file correspond to the definitions in cloudwatch.c.

Function Documentation

◆ CloudWatchConfigure()

CdiReturnStatus CloudWatchConfigure ( CloudWatchHandle handle,
const CdiStatsConfigData * stats_config_ptr )

Configure transfer statistics.

Parameters
handleThe handle of the connection to set statistics configuration.
stats_config_ptrPointer to stats configuration data.
Returns
A value from the CdiReturnStatus enumeration.

◆ CloudWatchCreate()

CdiReturnStatus CloudWatchCreate ( CdiConnectionState * con_state_ptr,
CloudWatchSdkMetricsHandle cw_sdk_handle,
CloudWatchHandle * return_handle_ptr )

Create an instance of the statistics component for the specified connection.

Parameters
con_state_ptrPointer to connection state data.
cw_sdk_handleCloudWatch SDK instance handle
return_handle_ptrAddress where to write returned statistics handle.
Returns
A value from the CdiReturnStatus enumeration.

◆ CloudWatchDestroy()

CdiReturnStatus CloudWatchDestroy ( CloudWatchHandle handle)

Free all resources related to the specified statistics component.

Parameters
handleHandle of statistics component.
Returns
A value from the CdiReturnStatus enumeration.

◆ CloudWatchStatisticsMessage()

void CloudWatchStatisticsMessage ( CloudWatchHandle handle,
int stats_count,
const CdiTransferStats * transfer_stats_array )

Process a message that contains new statistics to post to CloudWatch.

Parameters
handleHandle of statistics component.
stats_countNumber of array items in transfer_stats_array.
transfer_stats_arrayPointer to start of transfer stats array.