Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 45 additions & 27 deletions src/itential_mcp/models/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,54 +342,59 @@ class MemoryUsage(BaseModel):
"""
Resident Set Size - physical memory currently used by the process in bytes
"""
)
),
default=0,
),
]

heap_total: Annotated[
int,
int | None,
Field(
alias="heapTotal",
description=inspect.cleandoc(
"""
Total heap memory allocated in bytes
"""
),
default=None,
),
]

heap_used: Annotated[
int,
int | None,
Field(
alias="heapUsed",
description=inspect.cleandoc(
"""
Heap memory currently used in bytes
"""
),
default=None,
),
]

external: Annotated[
int,
int | None,
Field(
description=inspect.cleandoc(
"""
External memory used by C++ objects bound to JavaScript objects in bytes
"""
)
),
default=None,
),
]

array_buffers: Annotated[
int,
int | None,
Field(
alias="arrayBuffers",
description=inspect.cleandoc(
"""
Memory allocated for ArrayBuffers and SharedArrayBuffers in bytes
"""
),
default=None,
),
]

Expand Down Expand Up @@ -620,35 +625,38 @@ class LoggerConfig(BaseModel):
"""

console: Annotated[
str,
str | None,
Field(
description=inspect.cleandoc(
"""
Console logging level (e.g., 'info', 'debug', 'warning')
"""
)
),
default=None,
),
]

file: Annotated[
str,
str | None,
Field(
description=inspect.cleandoc(
"""
File logging level (e.g., 'info', 'debug', 'warning')
"""
)
),
default=None,
),
]

syslog: Annotated[
str | dict,
str | dict | None,
Field(
description=inspect.cleandoc(
"""
Syslog logging level (e.g., 'info', 'debug', 'warning')
"""
)
),
default=None,
),
]

Expand Down Expand Up @@ -875,14 +883,15 @@ class AdapterInfo(BaseModel):
]

package_id: Annotated[
str,
str | None,
Field(
alias="package_id",
description=inspect.cleandoc(
"""
NPM package identifier for the adapter
"""
),
default=None,
),
]

Expand All @@ -909,25 +918,27 @@ class AdapterInfo(BaseModel):
]

description: Annotated[
str,
str | None,
Field(
description=inspect.cleandoc(
"""
Human-readable description of the adapter
"""
)
),
default=None,
),
]

route_prefix: Annotated[
str,
str | None,
Field(
alias="routePrefix",
description=inspect.cleandoc(
"""
HTTP route prefix for the adapter API endpoints
"""
),
default=None,
),
]

Expand All @@ -943,13 +954,14 @@ class AdapterInfo(BaseModel):
]

connection: Annotated[
ConnectionInfo,
ConnectionInfo | None,
Field(
description=inspect.cleandoc(
"""
Connection status information for the adapter
"""
)
),
default=None,
),
]

Expand All @@ -965,71 +977,77 @@ class AdapterInfo(BaseModel):
]

memory_usage: Annotated[
MemoryUsage,
MemoryUsage | None,
Field(
alias="memoryUsage",
description=inspect.cleandoc(
"""
Current memory usage statistics for the adapter
"""
),
default=None,
),
]

cpu_usage: Annotated[
CpuUsage,
CpuUsage | None,
Field(
alias="cpuUsage",
description=inspect.cleandoc(
"""
CPU usage statistics for the adapter
"""
),
default=None,
),
]

pid: Annotated[
int,
int | str | None,
Field(
description=inspect.cleandoc(
"""
Process ID of the adapter
"""
)
),
default=None,
),
]

logger: Annotated[
LoggerConfig,
LoggerConfig | None,
Field(
description=inspect.cleandoc(
"""
Current logging configuration for the adapter
"""
)
),
default=None,
),
]

timestamp: Annotated[
int,
int | None,
Field(
description=inspect.cleandoc(
"""
Unix timestamp of the last status update
"""
)
),
default=None,
),
]

prev_uptime: Annotated[
float,
float | None,
Field(
alias="prevUptime",
description=inspect.cleandoc(
"""
Previous uptime measurement in seconds
"""
),
default=None,
),
]

Expand Down
Loading
Loading