Create a Measurement filter


I have Api :

need to call Above this using MeasurementApi.
Format the above Api as below example.

Example: final MeasurementFilter filter = new MeasurementFilter().bySource(new GId(deviceId)).byType(fragment).byDate(oneHourBack.toDate(), currentTime.toDate());

please reply with the MeasurementFilter for above mentioned Api

Have you checked out the doc? Not all of the REST API supported filter are supported in the SDK unfortunately.

Beside that you can add non-supported query params by implementing them yourself, roughly described here (e.g. extending the existing filter etc.)