Scalar Functions
This section lists the Dashboard functions that operate on and return numerical values or text strings.
This section lists the Dashboard functions that operate on and return numerical values or text strings.
Returns the result of adding the two arguments.
This function has the following arguments:
The function returns a numeric value.
Returns the average of the two arguments.
This function has the following arguments:
The function returns a numeric value.
Returns 1 (true
) if the result of performing a specified comparison is true; returns 0 (false
) otherwise.
The function has the following arguments:
This function returns a numerical value.
Returns the result of combining the two arguments into a single text string.
This function has the following arguments:
The function returns a text string.
Converts a correlator timestamp to either epoch time in milliseconds or the specified date/time format.
"0"
is returned and any specified formatting is not applied.SimpleDateFormat
. If you specify an invalid value the string "0"
is returned.A correlator timestamp is in seconds with a decimal point before the milliseconds, for example, 1043189336.2
.
This function returns a string.
Returns the result of adding the specified number (which may be negative) of date part intervals to the specified date, and returns a string representing the resulting date/time.
This function has the following arguments:
SimpleDateFormat
class. For example, the format MMMM dd, yyyy hh:mm:ss a results in dates of the form exemplified by August 30, 2003 05:32:12 PM. If no Date Format is given, the string is returned in the form exemplified by 08/30/03 05:32 PM. Use q, qqq or qqqq for short, medium or long versions of quarter notation. For example, qqq-yyyy results in a string of the form exemplified by Qtr 1-2005.The function returns a text string.
Returns the ceiling of Date with respect to Date Part. In other words, the function determines which Date Part interval contains the Date, and returns a string representing the start value of the next Date Part interval.
This function has the following arguments:
SimpleDateFormat
class. For example, the format MMMM dd, yyyy hh:mm:ss a results in dates of the form exemplified by August 30, 2003 05:32:12 PM. If no Date Format is given, the string is returned in the form exemplified by 08/30/03 05:32 PM. Use q, qqq or qqqq for short, medium or long versions of quarter notation. For example, qqq-yyyy results in a string of the form exemplified by Qtr 1-2005.The function returns a text string.
Compares Date 1 and Date 2, each rounded down to the nearest Date Part.
If Date 1 (rounded down to the nearest Date Part) is less than Date 2 (rounded down to the nearest Date Part), the function returns -1. If Date 1 (rounded down to the nearest Date Part) is greater than Date 2 (rounded down to the nearest Date Part), the function returns 1. If Date 1 (rounded down to the nearest Date Part) equals Date 2 (rounded down to the nearest Date Part), the function returns 0.
For example, comparing 08/30/03 05:32 PM to 08/30/03 04:47 PM with Date Part set to m (for minute resolution) returns 1, while setting Date Part to d (for day resolution) causes this function to return 0.
This function has the following arguments:
The function returns a number.
Returns the integer number of Date Part intervals by which Date 1 (rounded down to the nearest Date Part) is less than Date 2 (rounded down to the nearest Date Part). For example, the difference between 05/12/05 05:32 PM and 05/15/05 04:47 PM with Date Part set to d (for day) returns 3.
This function has the following arguments:
The function returns a number.
Returns the floor of Date with respect to Date Part. In other words, the function determines which Date Part interval contains Date, and returns a string representing the starting date/time value of that interval.
This function has the following arguments:
SimpleDateFormat
class. For example, the format MMMM dd, yyyy hh:mm:ss a results in dates of the form exemplified by August 30, 2003 05:32:12 PM. If no Date Format is given, the string is returned in the form exemplified by 08/30/03 05:32 PM. Use q, qqq or qqqq for short, medium or long versions of quarter notation. For example, qqq-yyyy results in a string of the form exemplified by Qtr 1-2005.The function returns a text string.
Returns a string representing the specified date in the specified format.
This function has the following arguments:
SimpleDateFormat
class. For example, the format MMMM dd, yyyy hh:mm:ss a results in dates of the form exemplified by August 30, 2003 05:32:12 PM. If no Date Format is given, the string is returned in the form exemplified by 08/30/03 05:32 PM.The function returns a text string.
Returns a string representing the current date and time in the specified format.
This function has the following argument:
SimpleDateFormat
class. For example, the format MMMM dd, yyyy hh:mm:ss a results in dates of the form exemplified by August 30, 2003 05:32:12 PM. If no Date Format is given, the string is returned in the form exemplified by 08/30/03 05:32 PM.The function returns a text string.
Returns the rate of change of Value over the specified time interval.
This function has the following arguments:
The function returns a number.
Returns the result of dividing the first argument by the second.
This function has the following arguments:
The function returns a number.
Returns a string representing the specified duration in the specified format.
This function has the following arguments:
The function returns a text string.
Returns the result of evaluating a specified expression that contains variables, each of which has an associated function argument. The result is returned as a double. Boolean true
or false
values are returned as 1.0 and 0.0 respectively.
The function has the following arguments:
If a value whose form is numeric needs to be treated as a string, for example to serve as an argument to a string function, surround the variable in Expression with double quotes. Variables enclosed in double quotes are always used as strings. An example of such an expression is length("%var1") + %var2.
This function returns a numerical value.
Returns the result of evaluating a specified expression that contains variables, each of which has an associated function argument. The result is returned as a text string. Boolean true
or false
values are returned as 1.0 and 0.0 respectively.
The function has the following arguments:
If a value whose form is numeric needs to be treated as a string, for example to serve as an argument to a string function, surround the variable in Expression with double quotes. Variables enclosed in double quotes are always used as strings. An example of such an expression is length("%var1") + %var2.
This function returns a text string.
Returns a string representing the specified number in the specified format.
For example, if Number To Format is 50, and Format is $, the function returns $50.00.
This function has the following arguments:
The function returns a text string
Returns the current value of the given Substitution String.
This function has the following argument:
The function returns a text string.
Initializes the local variable to the specified value. If the variable already has a non-empty value, this function does nothing.
This function has the following arguments:
This function is useful for initializing a local variable to a value supplied by a data attachment.
Returns 1 if the operating system the dashboard is running on is Windows; returns 0 otherwise.
This function has no arguments.
The function returns a number.
Returns larger of the two arguments.
This function has the following arguments:
This function returns a number.
Returns smaller of the two arguments.
This function has the following arguments:
This function returns a number.
Divides Value by Divisor and returns the remainder.
This function has the following arguments:
This function returns a number.
Returns the result of multiplying the first argument by the second.
This function has the following arguments:
The function returns a number.
Returns the percentage of Value, given the range defined by Min Value and Max Value.
This function has the following arguments:
The function returns a number between 0 and 100.
Sets a substitution string to the specified value.
This function executes very quickly because, unlike the standard Set Substitution function, it does not search for and modify data attachments that use the substitution, it does not apply the change to child panels of the current panel, nor does it change the value of the local variable, if any, that is mapped to the substitution.
This function has the following arguments:
This function is suitable for setting a substitution used only in a command or drilldown, but is not suitable for setting a substitution used in data attachments.
Replaces all occurrences of a given string which matches the pattern of the regular expression with another string. This function is just a wrapper of the java.lang.String.replaceAll() function. For detailed syntax, refer to the standard java.lang.String documentation.
If the Substitution argument is used, the replaced string is assigned to the substitution before it is returned.
$symbol
) which is used for the assignment of the replaced string.This function returns a string.
Returns the replacement string that Replacement Values associates with Value.
For example, if Value is Windows NT and Replacement Values is ‘Windows NT’:winnt Windows2000:win2k, the text string returned is winnt.
This function has the following arguments:
The function returns a text string.
Sets the given substitution string to the given value, and returns the value.
This function has the following arguments:
The function returns a text string.
Sets multiple substitutions based on the values in a specified lookup table.
The function has the following arguments:
Key is compared against the values in the first column of Lookup Table in order to determine which row of the lookup table to use to set substitution values. For each additional column in Lookup Table (where the column name starts with $), a substitution is set. The substitution name is the name of the column and the substitution value is the value from that column in the row whose first column matches Key.
This function returns a table.
Returns the result of subtracting the second argument from the first.
This function has the following arguments:
The function returns a number.
Validates a substitution string against the given table of valid values. Returns a substitution string with only valid values. The returned string is identical to the specified substitution string, except that any values from the specified string that are not found in the first column of the given table are replaced with the first value in the first column of the given table.
The function has the following argument:
This function returns a text string.