4 Replies Latest reply on Apr 21, 2017 5:16 AM by dbologna RSS

    Issue on stream (no value stream)

    dbologna Explorer

      I All,

      I created a new Stream 'TEST' form a DataShape like the following

       

       

      I also created a service to store information in Stream by service AddStreamEntry().

      With a service QueryStreamData() I saw all the rows stored into Stream.

      I create a new service to get a subset of data from the stream using StartDate and EndDate but for both solution I didn't receceive return values.

       

      FIRST TEST :

      I set the date on the parameters like

      var params = {

          oldestFirst: undefined /* BOOLEAN */,

          maxItems: undefined /* NUMBER */,

          sourceTags: undefined /* TAGS */,

          endDate: DateEnd /* DATETIME */,

          query: undefined /* QUERY */,

          source: undefined /* STRING */,

          startDate: DateStart /* DATETIME */,

          tags: undefined /* TAGS */

      };

      No output was  found, but there are into Stream  some data  between StartDate and EndDate.

       

      SECOND TEST:

      I creare a filter like

      var date_start=DateStart.getTime();

      var date_end=DateEnd.getTime();

      my_query={

                  "filters": {

                      "type":"Between",

                      "fieldName":"timestamp",

                      "from": date_start,

                       "to":date_end

                    }

               };

      and put this into paramters like

      var params = {

          oldestFirst: undefined /* BOOLEAN */,

          maxItems: undefined /* NUMBER */,

          sourceTags: undefined /* TAGS */,

          endDate: undefined /* DATETIME */,

          query: My_query /* QUERY */,

          source: undefined /* STRING */,

          startDate: undefined /* DATETIME */,

          tags: undefined /* TAGS */

      };

      Also in this case no output was found.

       

      Please, anyone can give me some suggestions.

      Many Thanks

      BR

      Dimitri