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:
parent
aad2bc93ea
commit
80631f6f44
11 changed files with 315 additions and 245 deletions
19
src/geoguessr_mcp/monitoring/endpoint/EndpointDefinition.py
Normal file
19
src/geoguessr_mcp/monitoring/endpoint/EndpointDefinition.py
Normal 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 = ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue