Hi Kai,
Let’s say for example, I have a measurement type : “ABC”. which has some specific types under it like X and Y.
{
"source": {
"id": "1234"
},
"time": "2023-05-09T09:30:30.502Z",
"type": "ABC",
"ABC": {
"X": {
"unit": "",
"value": 2
},
"Y": {
"unit": "",
"value": 2
}
}
}
Now lets say similar to X and Y types I have 1000 types like that. From measurement API, i can fetch all the data but I want to fetch it from series api because it provides me aggregated values for the types i mention in the params and it also gives me null if the value is not present in that particular timestamp.
Example of the series API will be:
{
"values": {
"2023-05-09T09:30:30.500Z": [
{
"min": 2,
"max": 2
},
{
"min": 2,
"max": 2
},
"2023-05-10T16:20:20.200Z": [
null,
{
"min": 2,
"max": 2
}
},
"series": [
{
"unit": "",
"name": "X",
"type": "ABC"
},
{
"unit": "",
"name": "Y",
"type": "ABC"
}
],
"truncated" : false
}
Now in this example you can see i am getting null for a certain timestamp. In my use case I want the data in this format. Now the url for this would form like:
/measurement/measurement/series?dateFrom=“” & dateTo=“”, series =ABC.X & series =ABC.Y
So for this when i am fetching only 2 values, it is easy for me to pass 2 values in params but in my use case i have 1000 and i cannot pass 1000 values in the url itself. So my question is, is there any way to get all the measurements in series api just by specifying the type like series = ABC.* ( this will get me all the type values which comes under ABC)
Hope this will make you understand my query.
Best Regards,
Samanyu