[atlas] Filtering measurements
- Previous message (by thread): [atlas] Filtering measurements
- Next message (by thread): [atlas] Satellite based "last mile" and Atlas probes
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Johan ter Beest
jterbeest at ripe.net
Fri Apr 23 11:43:16 CEST 2021
Hi, On 22/04/2021 14:01, Sanaa GHANDI wrote: > Hello, > > I hope you are all doing well. > > I have a few questions concerning the measurements selection, and I am interested only on the anchoring mesh measurements. > > In fact, for optimisation issues, I would like to be able to select only measurements of interest: > > For example, I want to get the results coming from sources: X and Y, and targeting the anchor 6771. > > Now I can get the measures targeting the anchor 6771 using this code from Altas Cousteau > > ################################################################## > from ripe.atlas.cousteau import MeasurementRequest > > filters = {'tags': ['anchoring','mesh',6771] } > > measurements = MeasurementRequest(**filters) > #################################################################### > > > But I have no idea of how to make a filter on the sources as well, since all we can access through the measurements are the number of anchors requested and not their ids. > > Do you know a way to get access to the sources of a measurement via Atlas Cousteau or another Ripe Tool ? You cannot filter directly on the probes but you can include the list of probes participating in the measurement: https://atlas.ripe.net/api/v2/measurements/29786041/?optional_fields=probes <https://atlas.ripe.net/api/v2/measurements/29786041/?optional_fields=probes> You can then iterate over this key to find if the probes you're looking for are included and get only those results with something like this: https://atlas.ripe.net/api/v2/measurements/29786041/results/?probe_ids=6945 <https://atlas.ripe.net/api/v2/measurements/29786041/results/?probe_ids=6945> Hope this helps, Cheers, Johan > > > Thank you > > -- > Sanaa > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.ripe.net/ripe/mail/archives/ripe-atlas/attachments/20210423/94d1f75e/attachment.html>
- Previous message (by thread): [atlas] Filtering measurements
- Next message (by thread): [atlas] Satellite based "last mile" and Atlas probes
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]