Skip to main content

Get Device Health Row List

Description

Gets device health row list via the web service.

Function Signature:

def get_device_health_row_list(ws_config: WebServiceConfig, online_only: bool = True) -> DeviceHealthRowListResult:

Parameters

  • ws_config (WebServiceConfig): Configuration for the web service connection.
  • online_only (bool): Input value for online_only.

Returns

  • DeviceHealthRowListResult: A result object containing:
    • code: HTTP status code (200 for success, -1 for exceptions).
    • description: Response body or error message.
    • device_health_row_list: Parsed response data when available.

Example Usage

# Example usage
ws_config = WebServiceConfig(access_key="key", secret_key="secret", base_url="https://api.example.com/")
online_only = False
result = get_device_health_row_list(ws_config, online_only)
print(result)

Behavior

  • Sends a signed request to the web service.
  • On success (code 200), response data is parsed into the result object.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions set the result code to -1 and include an error message when implemented.