<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[About the workflow of Threshold and Event develop]]></title><description><![CDATA[<p dir="auto">These is the workflow of Threshold:<br />
step 1: (In client)Set a DCI for a node in the console<br />
step 2:(In client)Create a  Threshold for above DCI<br />
Step 3:(In server)When the Server collect data from the node and correspond the Threshold condition it will raise a Event<br />
Step 4:(In server) The Event above can cause a alarm/action</p>
<p dir="auto">I am develop a client with java api<br />
my question is：How I can  “bind” the Threshold with the DCI  ??? I mean How can I do that with java api to reach step 1 and step 2,I don't know how to set a Threshold with java api.<br />
If you are not such busy,can you offer a model for me with step 1 and step 2!<br />
Best wish <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
Thanks!</p>
]]></description><link>https://forum.netxms.org/topic/1464/about-the-workflow-of-threshold-and-event-develop</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:20:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1464.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Nov 2011 15:32:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to About the workflow of Threshold and Event develop on Thu, 01 Dec 2011 07:47:27 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much</p>
]]></description><link>https://forum.netxms.org/post/6371</link><guid isPermaLink="true">https://forum.netxms.org/post/6371</guid><dc:creator><![CDATA[165432896]]></dc:creator><pubDate>Thu, 01 Dec 2011 07:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to About the workflow of Threshold and Event develop on Tue, 29 Nov 2011 18:04:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">First, you have to obtain DCI configurator:</p>
<p dir="auto">DataCollectionConfiguration dciConfig = session.openDataCollectionConfiguration(nodeId);</p>
<p dir="auto">then, create new DCI:</p>
<p dir="auto">final long id = dciConfig.createItem();</p>
<p dir="auto">then, obtain newly created DCI object:</p>
<p dir="auto">DataCollectionItem dci = dciConfig.findItem(id);</p>
<p dir="auto">add threshold:</p>
<p dir="auto">Threshold t = new Threshold();<br />
t.setFunction(Threshold.F_LAST);  // or any other function<br />
// and so on, set all required threshold attributes<br />
dci.getThresholds().add(t);</p>
<p dir="auto">save DCI:</p>
<p dir="auto">dciConfig.modifyItem(dci);</p>
<p dir="auto">and finally, close DCI configuration:</p>
<p dir="auto">dciConfig.close();</p>
<p dir="auto">Hope this helps!</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6360</link><guid isPermaLink="true">https://forum.netxms.org/post/6360</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 29 Nov 2011 18:04:44 GMT</pubDate></item></channel></rss>