apm_parameter_register (public)
apm_parameter_register [ -callback callback ] \ [ -parameter_id parameter_id ] [ -scope scope ] parameter_name \ description package_key default_value datatype [ section_name ] \ [ min_n_values ] [ max_n_values ]
Defined in packages/acs-tcl/tcl/apm-procs.tcl
Register a parameter in the system. The new "scope" parameter is named rather than positional to avoid breaking existing code.
- Switches:
- -callback
(defaults to"apm_dummy_callback"
) (optional)- -parameter_id
(optional)- -scope
(defaults to"instance"
) (optional)- Parameters:
- parameter_name
description
package_key
default_value
datatype
section_name (optional)
min_n_values (defaults to"1"
)
max_n_values (defaults to"1"
)
- Returns:
- The parameter id of the new parameter.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_apm_parameter__register, parameter_register_test, parameter__check_procs
Source code: ns_log debug "apm_parameter_register: Registering $parameter_name, $section_name, $default_value" set parameter_id [db_exec_plsql parameter_register {}] # Propagate to descendents if it's an instance parameter. if { $scope eq "instance" } { apm_copy_param_to_descendents $package_key $parameter_name } return $parameter_idGeneric XQL file: packages/acs-tcl/tcl/apm-procs.xql
PostgreSQL XQL file: <fullquery name="apm_parameter_register.parameter_register"> <querytext> select apm__register_parameter( :parameter_id, :package_key, :parameter_name, :description, :scope, :datatype, :default_value, :section_name, :min_n_values, :max_n_values ); </querytext> </fullquery>packages/acs-tcl/tcl/apm-procs-postgresql.xql
Oracle XQL file: <fullquery name="apm_parameter_register.parameter_register"> <querytext> begin :1 := apm.register_parameter( parameter_id => :parameter_id, package_key => :package_key, parameter_name => :parameter_name, description => :description, scope => :scope, datatype => :datatype, default_value => :default_value, section_name => :section_name, min_n_values => :min_n_values, max_n_values => :max_n_values ); end; </querytext> </fullquery>packages/acs-tcl/tcl/apm-procs-oracle.xql