jonhcw

problem with .NET api and setting qos samplerate

Discussion created by jonhcw on May 16, 2012

Hi,

 

I have a custom made probe that is otherwise working fine, but I seem to be unable to set qos samplerate properly. When I go to view the qos object it says "the dataset contains invalid data (samplerate<=0), and all samplerate values are 0. Samplevalues and everything else work fine.

 

My code:

Creating qos definition

using (NimbusSession sess = new NimbusSession())             {                 QoSDefinition qosDef = new QoSDefinition("QOS_EMAILBOUNCER_ROUNDTRIP", "Time it takes to send a test mail and receive the reply", "QOS_APPLICATION", "Seconds", "sec", false, false, false);                 sess.SendMessage(qosDef);             }

 

Sending qos message

using (QoS qosMsg = new QoS("QOS_EMAILBOUNCER_ROUNDTRIP"))                         {                             qosMsg.SetValue(roundTripTime);                             qosMsg.Target = "Roundtrip via " + recipient;                             qosMsg.SampleRate = interval;                             sess.SendMessage(qosMsg);                         }

 where interval is an integer value, usually 300.

Outcomes