This archive is retained to ensure existing URLs remain functional. It will not contain any emails sent to this mailing list after July 1, 2024. For all messages, including those sent before and after this date, please visit the new location of the archive at https://mailman.ripe.net/archives/list/ripe-atlas@ripe.net/
[atlas] Breaking API change?
- Previous message (by thread): [atlas] Breaking API change?
- Next message (by thread): [atlas] Breaking API change?
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chris Amin
camin at ripe.net
Mon Oct 24 10:13:35 CEST 2022
Hi Ray, This is indeed a breaking change, although the new behaviour is arguably more logical. The missing link here is the "use_keys" parameter, which was always supported but used to default to true when "fields" was present, and false otherwise. It now defaults to false unless explicitly specified. You can get the previous behaviour with the following URL: <${apiUrl}/measurements/${m}/latest/?fields=responses.0.response_time,responses.0.abuf.answers.0.data.0&freshness=1800&use_keys=true> Does this work for you? Kind regards, Chris Amin RIPE NCC On 22/10/2022 15:37, Ray Bellis wrote: > > ISC's Root System Atlas visualiser used to use this API call to access > the built-in root system measurements: > > <${apiUrl}/measurements/${m}/latest/?fields=responses.0.response_time,responses.0.abuf.answers.0.data.0&freshness=1800> > > where ${m} is the measurement number. > > It used to return this object: > > { > probe_id1: [ [ latency, site1 ], ... ] > probe_id2: [ [ latency, site1 ], ... ] > ... > } > > It now returns this array instead: > > [ > [probe_id1, latency, site], > ... > [probe_id1, latency, site], > > [probe_id2, latency, site], > ... > > ] > > and I had to explicitly request the probe_id field in order to get it. > > Was this change intentional, a regression, or did I not use the API > right in the first place? > > cheers, > > Ray > > >
- Previous message (by thread): [atlas] Breaking API change?
- Next message (by thread): [atlas] Breaking API change?
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]