NetXMS Support Forum

Development => General => Topic started by: moseszero on February 17, 2012, 01:06:40 PM

Title: delta calculation , Net.Interface.BytesIn(*)
Post by: moseszero on February 17, 2012, 01:06:40 PM
HI,
  I created DCI "Net.Interface.BytesIn(*)",* is the index of interface,and selected "Delta value(average per second)".I use the method "Session.queryParameter()" (Java API version 1.1.6),the result returned is the total number of bytes-in ,not delta value average per second ,I've also viewed the origin data in database and it is exactly delta value per second,why??
Title: Re: delta calculation , Net.Interface.BytesIn(*)
Post by: Victor Kirhenshtein on February 23, 2012, 03:43:10 PM
Hi!

Because delta calculation is done by server after data obtained from node as part of DCI processing. When you do queryParameter call, it just reads raw value from end node - it is not related to any DCI. You either have to do delta calculation by yourself or use another API call to get last values of particular DCI.

Best regards,
Victor
Title: Re: delta calculation , Net.Interface.BytesIn(*)
Post by: moseszero on February 27, 2012, 01:53:33 PM
thank you,I've tried fetching the last value in database using getDciDataRow,and it worked fine