Refactor monitoring module: modularized EndpointMonitor and SchemaRegistry into separate submodules under endpoint and schema respectively. Centralized endpoint definitions, improved structure, and updated imports accordingly.

This commit is contained in:
Yûki VACHOT 2025-11-29 00:37:27 +01:00
parent aad2bc93ea
commit 80631f6f44
11 changed files with 315 additions and 245 deletions

View file

@ -0,0 +1,19 @@
"""
Definition of API endpoint data structure to monitor.
This module provides the `EndpointDefinition` class to encapsulate necessary
details about an API endpoint, such as its path, request method, authentication
requirement, and additional parameters.
"""
from dataclasses import dataclass, field
@dataclass
class EndpointDefinition:
"""Definition of an API endpoint to monitor."""
path: str
method: str = "GET"
requires_auth: bool = True
use_game_server: bool = False
params: dict = field(default_factory=dict)
description: str = ""