Skip to main content
1-Visitor
October 12, 2015
Question

Subscribe to a stream

  • October 12, 2015
  • 5 replies
  • 2382 views

Does anyone know of a way that you can trigger a subscription for a "thing" when data has been added to a stream?  I can add the stream entity that I want to monitor, but I can't see where I can select the fields from the datatable associated with the stream.  The only options for data change monitoring given are name, description, tags, and thing template, which I cant see doing me any good. 

 

What I am trying to achieve is trigger an alarm notification when the stream gets an entry that has a value out of spec, sending an email or a text message.

 

Thank you!

    5 replies

    5-Regular Member
    October 12, 2015

    Brian, you would need to add the subscription directly on the Thing itself instead of adding it on the Stream/ StreamThing. A Stream, just by itself, has nothing attached to it. You can subscribe to an Alert Event on the Thing you want to monitor for the property( or properties) you have set to logged.

    byutz1-VisitorAuthor
    1-Visitor
    October 12, 2015

    I am not sure that will work in my case.  The stream is not being logged from a thing, I am using it to simulate data coming in from a device. Maybe I should rethink how I set it up though. Should data coming in not go directly to a stream? Thank you for the quick reply!

    5-Regular Member
    October 12, 2015

    Brian, sorry, I thought you were using Value Streams. Please do take a look at Value Streams, as you'd be able query individual property columns. Then again, using Value Streams would depend on how your model is set, how many different Things you would want to log data etc.