zabbix-agent2/src/libs/zbxhistory/history.c
/************************************************************************************
 *                                                                                  *
 * Function: zbx_history_requires_trends                                            *
 *                                                                                  *
 * Purpose: checks if the value type requires trends data calculations              *
 *                                                                                  *
 * Parameters: value_type - [IN] the value type                                     *
 *                                                                                  *
 * Return value: SUCCEED - trends must be calculated for this value type            *
 *               FAIL - otherwise                                                   *
 *                                                                                  *
 * Comments: This function is used to check if the trends must be calculated for    *
 *           the specified value type based on the history storage used.            *
 *                                                                                  *
 ************************************************************************************/
zbx_history_requires_trends

Purpose: checks if the value type requires trends data calculations

Parameters: value_type - [IN] the value type

Return value: SUCCEED - trends must be calculated for this value type
FAIL - otherwise

Comments: This function is used to check if the trends must be calculated for
the specified value type based on the history storage used.
zbx_history_requires_trends Purpose : checks if the value type requires trends data calculations Parameters : value_type - [ IN ] the value type Return value : SUCCEED - trends must be calculated for this value type FAIL - otherwise Comments : This function is used to check if the trends must be calculated for the specified value type based on the history storage used .
int	zbx_history_requires_trends(int value_type)
{
	zbx_history_iface_t	*writer = &history_ifaces[value_type];
	return 0 != writer->requires_trends ? SUCCEED : FAIL;
}
int zbx_history_requires_trends ( int value_type ) { zbx_history_iface_t * writer = & history_ifaces [ value_type ] ; return 0 != writer -> requires_trends ? SUCCEED : FAIL ; }
Function: zbx_history_requires_trends                                            
                                                                                  
 Purpose: checks if the value type requires trends data calculations              
                                                                                  
 Parameters: value_type - [IN] the value type                                     
                                                                                  
 Return value: SUCCEED - trends must be calculated for this value type            
               FAIL - otherwise                                                   
                                                                                  
 Comments: This function is used to check if the trends must be calculated for    
           the specified value type based on the history storage used.
Function : zbx_history_requires_trends Purpose : checks if the value type requires trends data calculations Parameters : value_type - [ IN ] the value type Return value : SUCCEED - trends must be calculated for this value type FAIL - otherwise Comments : This function is used to check if the trends must be calculated for the specified value type based on the history storage used .