38 #ifndef OPENAPI_SWITCH_CPU_H_INCLUDED
39 #define OPENAPI_SWITCH_CPU_H_INCLUDED
43 #define OPEN_CPU_UTIL_SCALAR 10000
45 #define OPEN_CPU_TASK_UTIL_SIZE 65
48 #define OPEN_CPU_TASK_UTIL_HEADER_ROWS 5
57 #define OPEN_CPU_TASK_COUNT_AVERAGE 100
134 uint32_t *param_val);
open_error_t openapiCpuUtilMonitorParamGet(openapiClientHandle_t *client_handle, OPEN_CPU_UTIL_MONITOR_PARAMS_t param_Type, uint32_t *param_val)
Get a CPU utilization monitoring parameter.
uint32_t timePeriod
Time period (secs) over which CPU utilization is being measured.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiTotalCpuUtilArrayGet(openapiClientHandle_t *client_handle, open_buffdesc *data)
Get CPU utilization for all tracked periods.
OPEN_CPU_UTIL_MONITOR_PARAMS_t
OPEN cpu threshold param.
open_error_t openapiTaskUtilPrint(openapiClientHandle_t *client_handle, open_buffdesc *data)
Get the task CPU utilization for all tracked periods.
open_error_t openapiCpuUtilMonitorParamSet(openapiClientHandle_t *client_handle, OPEN_CPU_UTIL_MONITOR_PARAMS_t param_Type, uint32_t param_val)
Set a CPU utilization monitoring parameter.
uint32_t utilization
Utilization of the CPU (% * OPEN_CPU_UTIL_SCALAR)
open_error_t openapiCpuUtilMaxPeriodsGet(openapiClientHandle_t *client_handle, uint32_t *max)
Get the maximum number of periods tracked for CPU utilization.