V0.5.0 Cloudflare Radar API support
Overview
This release adds support for querying Cloudflare Radar new BGP routing statistics and prefix-to-origin mapping APIs.
This feature is powered by radar-rs: 0.0.2
, an unofficial Cloudflare Radar API Rust SDK. This library is still in very early stage.
Usage
We added a new monocle radar
command group in this pull request, which contains the following to subcommands:
monocle radar stats [QUERY]
: get routing stats (like prefix count, rpki invalid count) for a given country or ASN.monocle radar pfx2as [QUERY] [--rpki-status valid|invalid|unknown]
: get prefix to origin mapping for a given prefix or ASN
API Token Required
We do not provide data access in the tool. Users who want to access this data are required to obtain a Cloudflare API token (see this tutorial) and set the environment variable CF_API_TOKEN
with the token content. Commands will fail should the token be missing or invalid.
Data License
The use of the Cloudflare Radar data is under CC BY-SA 4.0
license.
This library does not provide any direct access to the API data.
See Cloudflare Radar about page for more details.
What's Changed
- Properly write nullable values to sqlite by @digizeph in #48
- organize code into separate modules by @digizeph in #49
- add Cloudflare Radar API queries support by @digizeph in #50
Full Changelog: v0.4.2...v0.5.0