Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JimOverholt committed Apr 16, 2024
1 parent 76ded6e commit 1b3a79a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions catalystwan/endpoints/endpoints_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
from catalystwan.endpoints.configuration_group import ConfigurationGroup
from catalystwan.endpoints.configuration_settings import ConfigurationSettings
from catalystwan.endpoints.misc import MiscellaneousEndpoints
from catalystwan.endpoints.monitoring_device_details import MonitoringDeviceDetails
from catalystwan.endpoints.monitoring_status import MonitoringStatus
from catalystwan.endpoints.monitoring.device_details import MonitoringDeviceDetails
from catalystwan.endpoints.monitoring.status import MonitoringStatus
from catalystwan.endpoints.monitoring.server_info import ServerInfo
from catalystwan.endpoints.real_time_monitoring.reboot_history import RealTimeMonitoringRebootHistory
from catalystwan.endpoints.sdavc_cloud_connector import SDAVCCloudConnector
Expand Down
2 changes: 1 addition & 1 deletion catalystwan/endpoints/monitoring/server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@


class ServerInfo(APIEndpoints):
@get("server/info")
@get("/server/info")
def get_server_info(self) -> ServerInfoResponse:
...
6 changes: 4 additions & 2 deletions catalystwan/models/monitoring/server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
class ServerInfoResponse(BaseModel):
"""The response may contain an incorrect spelling "Achitecture"."""

Architecture: str = Field(..., alias="Achitecture")
Available_processors: int
architecture: str = Field(..., alias="Achitecture")
available_processors: int = Field(
..., serialization_alias="Available processors", validation_alias="Available processors"
)

0 comments on commit 1b3a79a

Please sign in to comment.