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.