What product/components do you use and which version/fix level?
Cumulocity sdk
Are you using a free trial or a product with a customer license?
customer license
What are trying to achieve? Please describe in detail.
I am using the MeasurementRepresentation sdk of cumulocity for fetching the measurements. My logic previously was based on fetching the measurements from /measurement/measurements/series API using Java RestTemplate.
Now I am using the measurementrepresentation sdk to fetch the measurements which is returning the response as that of the response from normal /measurement/measurements API. (measurementApi.getMeasurementsByFilter(filter) )
“measurements”: [
{
“self”: “https://t54905.iot.solenis.com/measurement/measurements/4109625”,
“time”: “2022-07-06T12:38:04.221Z”,
“id”: “4109625”,
“source”: {
“self”: “https://t54905.iot.solenis.com/inventory/managedObjects/105245”,
“id”: “105245”
},
“type”: “sol_onguardMeasurement”,
“Temp”: {
“unit”: “T”,
“value”: “36”
}
},
{
“self”: “https://t54905.iot.solenis.com/measurement/measurements/4108354”,
“time”: “2022-07-06T12:38:04.221Z”,
“id”: “4108354”,
“source”: {
“self”: “https://t54905.iot.solenis.com/inventory/managedObjects/105245”,
“id”: “105245”
},
“type”: “sol_onguardMeasurement”,
“Cond”: {
“unit”: “mV”,
“value”: “110”
}
}
]
How to fetch the measurements as returned by the /measurement/measurements/series API which returns the min max values?
"2022-06-07T05:00:00.000Z": [
{
"min": 0.23,
"max": 0.23
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.7,
"max": 0.7
},
{
"min": 57.7,
"max": 57.7
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 69.7,
"max": 69.7
},
{
"min": 28.8,
"max": 28.8
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 7.37,
"max": 7.37
},
{
"min": 215.5,
"max": 215.5
},
{
"min": 33.5,
"max": 33.5
},
{
"min": 4357.0,
"max": 4357.0
},
{
"min": 21.5,
"max": 21.5
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 0.01,
"max": 0.01
},
{
"min": 0.0,
"max": 0.0
},
{
"min": 100.0,
"max": 100.0
},
{
"min": 0.0,
"max": 0.0
}
]
},
"series": [
{
"unit": "mpy",
"name": "CS_Corr_S41",
"type": "sol_onguardMeasurement"
},
{
"unit": "%",
"name": "FCL_Rtrns_A24",
"type": "sol_onguardMeasurement"
},
{
"unit": "mpy",
"name": "Cu_Corr_S43",
"type": "sol_onguardMeasurement"
},
{
"unit": "ppm",
"name": "Tracker_S21",
"type": "sol_onguardMeasurement"
},
{
"unit": "%",
"name": "Manual_A32",
"type": "sol_onguardMeasurement"
},
{
"unit": "°F",
"name": "Temp_S12",
"type": "sol_onguardMeasurement"
},
{
"unit": "%",
"name": "TRKR_Rtrns_A22",
"type": "sol_onguardMeasurement"
},
{
"unit": "%",
"name": "pH_Rtrns_A23",
"type": "sol_onguardMeasurement"
},