get_adjacency_events
Description: This tool returns links/adjacencies events including nodes/hosts up/down events. Use this tool only to get details about nodes/hosts events. Events exist ONLY for watcher-monitored graphs (is_monitored=true). Manually uploaded or YAML graphs are not monitored and have no events; first call get_all_graphs(is_monitored=true, latest_only=true) to pick a monitored graph_time. Treat any cost change to or from -1 as down (падение) or up (восстановление) event.
Input fields: graph_time (str): Name of graph = The graph time to filter events. start_time (str, optional): Start time to filter events in ISO format (e.g., 2025-06-30T20:00:00Z) end_time (str, optional): End time to filter events in ISO format. Defaults to current time if not provided. last_minutes (int, optional): Number of minutes to look back from current time for events. If provided, overrides start_time and end_time parameters.
Output fields: AdjacencyEventsResponse: A dictionary containing adjacency event information with keys: - all_host_up_down_events: List of all Up/Down nodes/hosts events (Восстановление узла, Падение узла). List includes all events even recovered events (when node is up after being down). - single_host_up_events: List of Up nodes/hosts events (Восстановление узла) from the time when graph was collected. - single_host_down_events: List of Down nodes/hosts events (Падение узла) from the time when graph was collected. - adjacency_cost_change_events: List of link/adjacency cost (or other metrics) change events (изменение стоимости линка)
Equivalent to GET /events/{graph_time}/adjacency.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graph_time": "<graph_time>"
},
"name": "get_adjacency_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | No | ||
| graph_time | Yes | ||
| start_time | No | ||
| last_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| single_host_up_events | Yes | ||
| all_host_up_down_events | Yes | ||
| single_host_down_events | Yes | ||
| adjacency_cost_change_events | Yes |