ripe-bgp-activity
スター14
フォーク3
更新日2026年2月28日 01:52
Returns the number of BGP updates seen for a resource.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
Returns the number of BGP updates seen for a resource.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Fetches DNS chain data from RIPE NCC for a specific domain. This skill must be used whenever the user asks for a 'chain', 'full path', or 'multi-step' DNS resolution
Fetches global BGP state data from RIPE NCC for a specific resource.
| name | ripe-bgp-activity |
| description | Returns the number of BGP updates seen for a resource. |
| metadata | {"category":"network"} |
This skill queries the RIPE Stat API to returns the number of BGP updates seen over time. Results are aggregated in time intervals, the lenght of which is determined by the input parameters.
import requests
def execute(resource, starttime=None, endtime=None):
url = "https://stat.ripe.net/data/bgp-update-activity/data.json"
params = {"resource": resource}
if starttime:
params["starttime"] = starttime
if endtime:
params["endtime"] = endtime
response = requests.get(url, params=params)
response.raise_for_status()
return response.json().get("data", {})
A JSON object containing:
updates: List with BGP update activity samples. Each sample contains:
starttime: The beginning of each sample.announcements: The number of announcements in this sample.withdrawals: The number of withdrawals in this sample.sampling_period: The duration in seconds of each sample interval.sampling_period_human: A human-readable version of the sampling period.query_starttime: The starttime the query covers.query_endtime: The endtime the query covers.resource: Defines the resource used for the query.resource_type: The detected type of the queried resource ("asn", 4 or 6).max_samples: The maximum number of samples returned.