Author Topic: GIS: like interacting with the statserver  (Read 3899 times)

gibbo

  • Guest
GIS: like interacting with the statserver
« on: March 31, 2007, 12:31:15 AM »
Hi!
I am a GIS developer. I have a problem: when send the statistic write as:

Statistic statistic=new Statistic();
statistic.setStatisticId("agentState");
      
ObjectIdType objectid=new ObjectIdType();
objectid.setId(this.getEmployeeID(agentName));
objectid.setTenantName("Resources");
statistic.setObjectId(objectid);
      
Metric metric=new Metric();
metric.setTypeName("CurrentAgentState");

StatisticType statisticType = new StatisticType();
statisticType.setSubject("AgentState");
ObjectType[] objectType = new ObjectType[]{ObjectType.Agent};
statisticType.setCategory("CurrentState");
statisticType.setObjectType(objectType);       
metric.setStatisticType(statisticType);
      
TimeInterval timeInterval = new TimeInterval();
timeInterval.setIntervalType(TimeIntervalType.GrowingWindow);
metric.setInterval(timeInterval);
       
statistic.setMetric(metric);
      
Schedule schedule=new Schedule();
schedule.setNotificationMode(ScheduleMode.TimeBased);
schedule.setInsensitivity(new Integer(1));
schedule.setTimeout(new Integer(2));
statistic.setSchedule(schedule);

RetrieveStatisticResponse retStat = this.statPort.retrieveStatistic(statistic,statServer);
StatisticValue stat = retStat.getStatisticValue();

in stat.getEventValues()[0].getAgentStatus() there are the property of the agent
but stat.getEventValues()[0].getAgentStatus().getDns() is = null...
I think this an error because the agent has a place with a right DN...
There is someone that can tell me how obtain the info of the dn?

thanks!

Marked as best answer by on February 01, 2020, 03:54:51 PM

Ben

  • Guest
Re: GIS: like interacting with the statserver
« Reply #1 on: April 17, 2007, 07:23:51 PM »
  • Undo Best Answer
  • If you're after the current agent status then I don't think you can get it through GIS.

    Offline Ali

    • Jr. Member
    • **
    • Posts: 65
    • Karma: 0
    • Haunted by Genesys
      • My Web Site
    Re: GIS: like interacting with the statserver
    « Reply #2 on: May 02, 2007, 10:08:50 PM »
    Please check out WSDL of request message, where you find the answer.
    Ali

    "beer makes you smart
    it made budwiser"