latest.ipv8.REST.overlays_endpoint
Module Contents
Classes
This endpoint is responsible for handing all requests regarding the status of overlays. |
- class latest.ipv8.REST.overlays_endpoint.OverlaysEndpoint
Bases:
latest.ipv8.REST.base_endpoint.BaseEndpoint
[latest.ipv8.types.IPv8
]This endpoint is responsible for handing all requests regarding the status of overlays.
- initialize(session: latest.ipv8.types.IPv8) None
Initialize this endpoint for the given session instance.
- async get_overlays(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return information about all currently loaded overlays.
- async get_statistics(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return statistics for all currently loaded overlays.
- statistics_by_name(statistics: dict[int, latest.ipv8.messaging.interfaces.network_stats.NetworkStat], overlay: latest.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) latest.ipv8.REST.base_endpoint.Response
Enable/disable statistics for a given overlay.