Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. type and range of Threshold "sample" and "value"

type and range of Threshold "sample" and "value"

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 18.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    moseszero
    wrote on last edited by
    #1

    Hi,

    When set threshold's attributes in java console(1.1.6),there's 2 input(see the picture uploaded),"sample" and "value",which attributes does "sample" and "value" refer to in the Class Threshold.java in java api?

    Second,"sample" and "value" 's value both have special type and range,they require int and range from 1 to 1000.

    In my last topic posted yesterday,I knew threshold does work immediately after added to one dci(using default fireEvent and rearmEvent  code),no need to set event policy extral .But where to see the "trigger" information or anything else changed if threshold's value has been reached?

    Best regards,
    Yan


    t2.jpg

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Sample is arg1 in Threshold class, and value is value in Threshold class.

      Threshold generates events when condition is true. You can process this event in event processing policy if you need some action. But event by itself will be generated without any changes in event processing policy.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        moseszero
        wrote on last edited by
        #3

        Thank you very much!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups