REST Query Array Tag

REST Query Array Tag now supports array type to get the data samples. It also supports Raw By Number, Raw By Time Sampling modes.

Task URL Method Request Body Request Headers
Get values for an array tag http://<IP address of the Linux machine>:8989/v1/datapoints POST
{
    "start": "4h-ago",
    "end": "1h-ago",
    "tags": [{
        "name": "G790J9Y2E.SimulationArray00001",
        "limit": 1000,
        "order": "desc",
        "filters": {
            "qualities": {
                "values": [
                    "3"
                ]
            }
        }
    }]
}
Predix-Zone-Id Can be any value. Not validated.

Below are the examples for Raw By Number, Raw By Time with Request Body.

Raw By Time Payload
{
    "start": "4h-ago",
    "end": "1h-ago",
    "tags": [{
        "name": "G790J9Y2E.SimulationArray00001",
        "limit": 1000,
        "order": "desc",
        "filters": {
            "qualities": {
                "values": [
                    "3"
                ]
            }
        }
    }]
}
Raw By Number
{
    "start": "4h-ago",
    "tags": [{
        "name": "G790J9Y2E.SimulationArray00001",
        "filters": {
            "qualities": {
                "values": [
                    "3"
                ]
            }
        }
    }]
}
Raw By Number with limit value
{
    "start": "4h-ago",
    "tags": [{
        "name": "G790J9Y2E.SimulationArray00001",
        "limit": 10,
        "filters": {
            "qualities": {
                "values": [
                    "3"
                ]
            }
        }
    }]
}
Raw By Number with direction backword
{
	"start": "4h-ago",
	"direction": "backward",
        "tags": [{
		"name": "G790J9Y2E.SimulationArray00001",
	    "limit": 3
	}]
}

Sample Response for Array Tag:

{

  "tags": [

       {

           "name": "G790J9Y2E.SimulationArray00001",

           "results": [

               {

                   "groups": [

                       {

                           "name": "type",

                           "type": "array"

                       }

                   ],

                   "filters": {

                       "qualities": {

                           "values": [

                               "3"

                           ]

                       }

                   },

                   "values": [

                      [

                           1686637046000,

                          "[\"3902\"]",

                           3

                       ],    [

                           1686637227000,

                          "[\"1769\",\"1769\",\"1769\",\"1769\",\"1769\",\"1769\",\"1769\",\"1769\"]",

                           3

                       ],

                       [

                           1686637228000,

                          "[\"28289\",\"28289\",\"28289\",\"28289\",\"28289\",\"28289\"]",

                           3

                       ],

                       [

                           1686637235000,

                          "[\"2943\",\"2943\"]",

                           3

                       ],

                   "attributes": {}

               }

           ],

           "stats": {

               "rawCount": 4

           }

       }

  ]

}