function api_data_preset_rra_item_friendly_name_get($consolidation_function, $steps, $rows) { require_once(CACTI_BASE_PATH . "/include/data_preset/data_preset_rra_constants.php"); require_once(CACTI_BASE_PATH . "/lib/data_preset/data_preset_rra_info.php"); $cf_types = api_data_preset_rra_cf_type_list(); $step_types = api_data_preset_rra_step_type_list(); $row_types = api_data_preset_rra_row_type_list(); $friendly_name = $cf_types[$consolidation_function] . ": "; if (($consolidation_function == RRA_CF_TYPE_AVERAGE) || ($consolidation_function == RRA_CF_TYPE_MIN) || ($consolidation_function == RRA_CF_TYPE_MAX) || ($consolidation_function == RRA_CF_TYPE_LAST)) { $friendly_name .= "Update every " . strtolower($step_types[$steps]) . " for " . strtolower($row_types[$rows]); } return $friendly_name; }
function _data_preset_rra_item__steps($field_name, $field_value = "", $field_id = 0) { require_once(CACTI_BASE_PATH . "/lib/sys/html_form.php"); ?> <tr class="<?php echo field_get_row_style();?>" id="row_field_steps_<?php echo $field_id;?>"> <td width="50%" class="field-row"> <span class="textEditTitle"><?php echo _("Update Interval (steps)");?></span><br> <?php echo _("How many data points are required before the data is entered into the RRA.");?> </td> <td colspan="2" class="field-row"> <?php form_dropdown($field_name, api_data_preset_rra_step_type_list(), "", "", $field_value, "", "300");?> </td> </tr> <?php }