<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,<br>
</p>
<div class="moz-cite-prefix">On 22/04/2021 14:01, Sanaa GHANDI
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1068358647.5286432.1619092864749.JavaMail.zimbra@imt-atlantique.fr">
<pre class="moz-quote-pre" wrap="">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 ?</pre>
</blockquote>
<p>You cannot filter directly on the probes but you can include the
list of probes participating in the measurement:</p>
<p><a class="theme markdown__link" href="https://atlas.ripe.net/api/v2/measurements/29786041/?optional_fields=probes" rel="noreferrer" target="_blank" style="box-sizing: border-box; background-color: rgba(61, 60, 64, 0.04); color: rgb(35, 137, 215); text-decoration: underline; cursor: pointer; word-break: break-word; outline: 0px; outline-offset: -2px; font-family: "Open Sans", sans-serif; font-size: 13.5px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://atlas.ripe.net/api/v2/measurements/29786041/?optional_fields=probes</a></p>
<p>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:<br>
</p>
<p><a class="theme markdown__link" href="https://atlas.ripe.net/api/v2/measurements/29786041/results/?probe_ids=6945" rel="noreferrer" target="_blank" style="box-sizing: border-box; background-color: rgba(61, 60, 64, 0.04); color: rgb(35, 137, 215); text-decoration: underline; cursor: pointer; word-break: break-word; outline: 0px; outline-offset: -2px; font-family: "Open Sans", sans-serif; font-size: 13.5px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://atlas.ripe.net/api/v2/measurements/29786041/results/?probe_ids=6945</a></p>
<p>Hope this helps,</p>
<p>Cheers,<br>
Johan<br>
</p>
<blockquote type="cite"
cite="mid:1068358647.5286432.1619092864749.JavaMail.zimbra@imt-atlantique.fr">
<pre class="moz-quote-pre" wrap="">
Thank you
--
Sanaa
</pre>
</blockquote>
</body>
</html>