mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-09-18 07:53:55 +00:00
Some checks failed
Python CI / build (push) Has been cancelled
Co-authored-by: API Team <api-team@thousandeyes.com>
2.0 KiB
2.0 KiB
BgpUpdate
BGP update observed by a BGP monitor.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| prefix | str | IP prefix in CIDR notation. | |
| origin_as | int | Origin autonomous system (AS) number. Null when the update has no origin AS, including withdrawals. | |
| as_path | List[int] | AS path for the update. Empty when the update does not carry a path, including withdrawals. | |
| communities | List[str] | BGP communities attached to the update. Empty when the update does not carry communities, including withdrawals. | |
| rpki_status | BgpRpkiStatus | RPKI validation status for the update, using the validation states defined in RFC 6811, Section 2. Returns NotAvailable when the update has no RPKI state, including withdrawals. | |
| update_type | BgpUpdateType | Type of BGP update. | |
| monitor_id | str | BGP monitor ID that observed the update. Returned by default and omitted when `expand=monitor` is requested. | [optional] |
| monitor | BgpMonitor | BGP monitor that observed the update. Returned when `expand=monitor` is requested and replaces `monitorId`. | [optional] |
| timestamp | datetime | Date and time when the update was observed. |
Example
from thousandeyes_sdk.bgp_updates.models.bgp_update import BgpUpdate
# TODO update the JSON string below
json = "{}"
# create an instance of BgpUpdate from a JSON string
bgp_update_instance = BgpUpdate.from_json(json)
# print the JSON string representation of the object
print(BgpUpdate.to_json())
# convert the object into a dict
bgp_update_dict = bgp_update_instance.to_dict()
# create an instance of BgpUpdate from a dict
bgp_update_from_dict = BgpUpdate.from_dict(bgp_update_dict)