AdsMgGetActivityInfo

Returns server activity information.

Syntax

UNSIGNED32 AdsMgGetActivityInfo(ADSHANDLE hMg, void* pInfo,
                                UNSIGNED16* pusSize);

Parameters

Parameter

Type

Description

hMg

ADSHANDLE

Management connection handle.

pInfo

void*

Pointer to the output ADS_MGMT_ACTIVITY_INFO structure.

pusSize

UNSIGNED16*

Structure size (input) and bytes written (output).

Return Value

AE_SUCCESS (0) on success. Error code on failure.

Description

AdsMgGetActivityInfo returns information about current server activity, including number of operations, logged errors, uptime, and resource usage (users, connections, tables, etc.).

Example

ADS_MGMT_ACTIVITY_INFO stInfo;
memset(&stInfo, 0, sizeof(stInfo));
UNSIGNED16 usSize = sizeof(stInfo);
AdsMgGetActivityInfo(hMgmt, &stInfo, &usSize);
printf("Operations: %lu\n", stInfo.ulOperations);

See Also


AdsMgGetCommStats →



This site uses Just the Docs, a documentation theme for Jekyll.