peerglass_shutdown_detect
Detect internet shutdowns at the country level by comparing current BGP prefix counts against a stored baseline to classify severity from normal to full shutdown.
Instructions
Detect internet shutdowns at the country level by comparing current BGP prefix counts against a stored baseline.
On the first call for a country the baseline is established. Subsequent calls measure how many prefixes have been withdrawn and classify severity: • NORMAL < 5% withdrawn • DEGRADED 5–20% withdrawn • PARTIAL_SHUTDOWN 20–80% withdrawn • FULL_SHUTDOWN > 80% withdrawn
Args: params (ShutdownDetectInput): - country_code (str): ISO 3166-1 alpha-2 code e.g. 'SY', 'IR', 'MM' - response_format (str): 'markdown' (default) or 'json'
Returns: str: Severity level, withdrawn percentage, and sampled ASN prefix counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |