NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: nxshell - problem with session EventObject related methods  (Read 805 times)

suphu

  • Newbie
  • *
  • Posts: 24
    • View Profile
nxshell - problem with session EventObject related methods
« on: September 24, 2018, 04:23:54 pm »

Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving EventObjects (need rows from table event_cfg)

    session.syncEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'syncEventObjects'

    events = session.getEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getEventObjects'

    events = session.getCachedEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getCachedEventObjects'

    event = session.findEventObjectByCode(1)
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'findEventObjectByCode'

« Last Edit: September 24, 2018, 05:12:03 pm by suphu »
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6655
    • View Profile
Re: nxshell - problem with session EventObject related methods
« Reply #1 on: September 24, 2018, 09:03:41 pm »

Hi,

those methods was renamed in 3.0. For 2.2 branch, use syncEventTemplates, getCachedEventTemplates and findEventTemplateByCode.

Best regards,
Victor
Logged

suphu

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: nxshell - problem with session EventObject related methods
« Reply #2 on: September 24, 2018, 09:21:01 pm »

Thank you.  What link for 2.2.8 docs?
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6655
    • View Profile
Re: nxshell - problem with session EventObject related methods
« Reply #3 on: September 24, 2018, 09:40:01 pm »

Seems that they are not published. However, you can find javadoc archives in Maven Central: http://central.maven.org/maven2/org/netxms/netxms-client/2.2.6/netxms-client-2.2.6-javadoc.jar

Best regards,
Victor
Logged

Tatjana Dubrovica

  • Global Moderator
  • Full Member
  • *****
  • Posts: 225
    • View Profile
« Last Edit: September 28, 2018, 05:10:28 pm by Tatjana Dubrovica »
Logged

suphu

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: nxshell - problem with session EventObject related methods
« Reply #5 on: September 25, 2018, 07:47:36 pm »

Thank You!  Very helpful.
Logged