PQL Functions - GoToAssist Monitoring

GoToAssist Monitoring Service Status

Service Fully Operational

***Our GoToAssist maintenance window is Wednesday or Friday 6:00am-10:00am GMT. A maintenance generally results in 5-10 minutes of downtime during the beginning of the maintenance window.***

Updated: Wed, Oct 17 2012 2:27 PM RSS Feed

Find an Answer

Search GoToAssist Monitoring articles, videos and user guides   Your search term must have 2 or more characters.

Browse Articles

PQL Functions

PQL functions work very much like their counterparts in SQL.

Syntax

The syntax for PQL functions is as follows:

return function(argument)

Functions

PQL supports the following functions:

FunctionNumber of arguments Description
abbreviate() 3Limits the length of a string.
available_history() 3Returns timestamps for which history is available.
child() 2Returns the nth child node.
coalesce() Any numberReturns the first argument from a list, that is not NULL. Equivalent to nvl.
count() 1 Returns the total number of items.
created_at() Any numberReturns the date of creation.
date() 2Converts the output to date format, such as 1970-01-01T00:00:00.604799Z.
downcase() 1Converts all characters in a string to lower case. Equivalent to lower.
first() 1Selects the first leaf in a tree, such as the first interface from /network/device.
float() 2Converts the output to a floating number, such as 604799.
format() 2Returns a number that is formatted to the specified number of decimal places, such as: 2008-01-20T23:16:15.899040Z.
has_history() Any numberIndicates whether or not a node contains history information.
history() Any numberReturns a list of previous values over time, if the leaf node had more than one value in the past.
id() 1Returns the unique ID of the node. Every node, sub-node, and leaf node have a unique identifing number which this function returns.
int() 2Converts the output to int format, such as 604799.
integer() 2Converts the output to an integer, such as 604799.
join() 2Traverses a tree and concatenates all values with a provided string, or selects data from two or more paths and joins the data to make the result complete.
lower() 1Returns all characters in a string in lower case. Equivalent to downcase.
max() 1Returns the maximum value.
mean() 1 Returns the mean value.
min() 1 Returns the minimum value.
num_children() 1 Returns the number of child nodes.
nvl() Any numberReturns the first argument from a list, that is not NULL. Equivalent to coalesce.
observed_at() Any numberReturns the date the node was last observed.
parent() Any numberReturns the parent node.
path() 1Returns the path to a node.
raw_history() Any numberReturns raw history samples without any bucketing.
string() 2Converts the output to string format, such as 1970-01-01T00:00:00.604799Z.
substring() 3Returns the first N characters of a string.
sum() 1 Returns the sum of a set of values.
time() 2Converts the output to timestamp format, such as 1970-01-01T00:00:00.604799Z.
timestamp() 2Converts the output to timestamp format, such as 1970-01-01T00:00:00.604799Z.
upcase() 1Converts all characters in a string to upper case. Equivalent to upper.
upper() 1Returns all characters in a string in upper case. Equivalent to upcase.
zip() 2Combines 2 sets of historical data from unrelated parent nodes.

Related topics

| Views: 1626 | Last Updated: Thu, May 09 2013 2:28 PM

Is this article helpful?