2.12.ipv8.REST.overlays_endpoint
Module Contents
Classes
- class 2.12.ipv8.REST.overlays_endpoint.OverlaysEndpoint
Bases:
2.12.ipv8.REST.base_endpoint.BaseEndpoint
[2.12.ipv8.types.IPv8
]This endpoint is responsible for handing all requests regarding the status of overlays.
- initialize(session: 2.12.ipv8.types.IPv8) None
Initialize this endpoint for the given session instance.
- async get_overlays(_: aiohttp.abc.Request) 2.12.ipv8.REST.base_endpoint.Response
Return information about all currently loaded overlays.
- async get_statistics(_: aiohttp.abc.Request) 2.12.ipv8.REST.base_endpoint.Response
Return statistics for all currently loaded overlays.
- statistics_by_name(statistics: dict[int, 2.12.ipv8.messaging.interfaces.network_stats.NetworkStat], overlay: 2.12.ipv8.types.Community) dict[str, dict[str, int | float]]
Convert the captured statistics to a human-readable dict.
- async enable_statistics(request: aiohttp.abc.Request) 2.12.ipv8.REST.base_endpoint.Response
Enable/disable statistics for a given overlay.