<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Metric_Instant_Query_Node_in_Pathways</id>
	<title>Metric Instant Query Node in Pathways - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.foji.io/index.php?action=history&amp;feed=atom&amp;title=Metric_Instant_Query_Node_in_Pathways"/>
	<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Metric_Instant_Query_Node_in_Pathways&amp;action=history"/>
	<updated>2026-06-22T03:26:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://docs.foji.io/index.php?title=Metric_Instant_Query_Node_in_Pathways&amp;diff=2731&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: Mitchell.Hirsche moved page Documentation for the &quot;Metric Instant Query&quot; Node in Pathways to Metric Instant Query Node in Pathways</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Metric_Instant_Query_Node_in_Pathways&amp;diff=2731&amp;oldid=prev"/>
		<updated>2025-03-05T22:45:30Z</updated>

		<summary type="html">&lt;p&gt;Mitchell.Hirsche moved page &lt;a href=&quot;/wiki/Documentation_for_the_%22Metric_Instant_Query%22_Node_in_Pathways&quot; class=&quot;mw-redirect&quot; title=&quot;Documentation for the &amp;quot;Metric Instant Query&amp;quot; Node in Pathways&quot;&gt;Documentation for the &amp;quot;Metric Instant Query&amp;quot; Node in Pathways&lt;/a&gt; to &lt;a href=&quot;/wiki/Metric_Instant_Query_Node_in_Pathways&quot; title=&quot;Metric Instant Query Node in Pathways&quot;&gt;Metric Instant Query Node in Pathways&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:45, 5 March 2025&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki:diff::1.12:old-2678:rev-2731 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
	<entry>
		<id>https://docs.foji.io/index.php?title=Metric_Instant_Query_Node_in_Pathways&amp;diff=2678&amp;oldid=prev</id>
		<title>Mitchell.Hirsche: Metric Instant Query</title>
		<link rel="alternate" type="text/html" href="https://docs.foji.io/index.php?title=Metric_Instant_Query_Node_in_Pathways&amp;diff=2678&amp;oldid=prev"/>
		<updated>2025-03-05T00:44:08Z</updated>

		<summary type="html">&lt;p&gt;Metric Instant Query&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;#039;&amp;#039;&amp;#039;Overview&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Metric Instant Query&amp;#039;&amp;#039;&amp;#039; node in FojiSoft Pathways allows users to execute a metric query at a specific point in time. This node is particularly useful for retrieving real-time or historical performance metrics from monitoring systems, enabling automation based on live data.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Node Properties&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;1. Name&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: A unique identifier for the metric query operation.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Usage&amp;#039;&amp;#039;&amp;#039;: Assign a clear and descriptive name (e.g., &amp;quot;Fetch Server CPU Usage&amp;quot; or &amp;quot;Retrieve API Latency&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;2. Query&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: Defines the metric query that will be executed.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Options for Expression Type&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
*# &amp;#039;&amp;#039;&amp;#039;JavaScript Statement&amp;#039;&amp;#039;&amp;#039;: Direct JavaScript expression for simple queries.&lt;br /&gt;
*# &amp;#039;&amp;#039;&amp;#039;JavaScript Function&amp;#039;&amp;#039;&amp;#039;: A function for advanced dynamic queries.&lt;br /&gt;
*# &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039;: A dynamic template to inject real-time query values.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Example Expressions&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;JavaScript Statement&amp;#039;&amp;#039;&amp;#039;: &amp;quot;server_cpu_usage&amp;quot;&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;JavaScript Function&amp;#039;&amp;#039;&amp;#039;: function getQuery() {   return &amp;quot;server_cpu_usage&amp;quot;;  }&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039;: metric_query_variable&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Status&amp;#039;&amp;#039;&amp;#039;: &amp;#039;&amp;#039;&amp;#039;Required&amp;#039;&amp;#039;&amp;#039; (A valid query must be provided for execution).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;3. Time&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: Specifies the exact timestamp for the metric query execution.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Options&amp;#039;&amp;#039;&amp;#039;: Same as &amp;#039;&amp;#039;&amp;#039;Query Type&amp;#039;&amp;#039;&amp;#039; (JavaScript Statement, JavaScript Function, Handlebars Template).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Example Expressions&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;JavaScript Statement&amp;#039;&amp;#039;&amp;#039;: Date.now()  // Fetch metric at the current time&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;JavaScript Function&amp;#039;&amp;#039;&amp;#039;: function getQueryTime() {   return Date.now() - 60000; // Fetch metric from 1 minute ago  }&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Handlebars Template&amp;#039;&amp;#039;&amp;#039;: query_time_variable&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;4. Variable Name&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;: The name of the output variable where the retrieved metric data will be stored.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Status&amp;#039;&amp;#039;&amp;#039;: &amp;#039;&amp;#039;&amp;#039;Required&amp;#039;&amp;#039;&amp;#039; (Must be defined for further use in the workflow).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Usage&amp;#039;&amp;#039;&amp;#039;: Choose a meaningful variable name (e.g., &amp;lt;code&amp;gt;cpu_usage&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;api_latency&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;How It Works&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Define the Query&amp;#039;&amp;#039;&amp;#039;: Select a query expression to retrieve the relevant metric.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Specify the Time&amp;#039;&amp;#039;&amp;#039;: Choose a timestamp for when the query should be executed.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Store Output in a Variable&amp;#039;&amp;#039;&amp;#039;: The retrieved metric data is saved under the specified variable name.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Example Use Cases&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;1. Monitoring Server Performance&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;&amp;quot;server_cpu_usage&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;Date.now()&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Variable Name&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;cpu_data&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Outcome&amp;#039;&amp;#039;&amp;#039;: Retrieves the current CPU usage of a server.&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;2. Checking API Latency Trends&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;&amp;quot;api_response_time&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;Date.now() - 60000&amp;lt;/code&amp;gt; (1 minute ago)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Variable Name&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;api_latency&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Outcome&amp;#039;&amp;#039;&amp;#039;: Fetches API response latency from the past minute.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Best Practices&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Use Meaningful Variable Names&amp;#039;&amp;#039;&amp;#039;: Helps with workflow clarity and debugging.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Leverage JavaScript Functions&amp;#039;&amp;#039;&amp;#039;: For more complex query generation and timestamp manipulation.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Optimize Query Execution&amp;#039;&amp;#039;&amp;#039;: Avoid excessive querying by setting appropriate time intervals.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Metric Instant Query&amp;#039;&amp;#039;&amp;#039; node is essential for integrating real-time performance data into automated workflows, allowing users to build intelligent, responsive systems.&lt;br /&gt;
[[Category:ForgeAI]]&lt;br /&gt;
[[Category:Pathways]]&lt;/div&gt;</summary>
		<author><name>Mitchell.Hirsche</name></author>
	</entry>
</feed>