Table of Contents

Interface IHealthMonitoringPort

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

Port interface for device health monitoring. Part of hexagonal architecture - defines the contract that backend adapters must implement.

public interface IHealthMonitoringPort

Properties

IsSupported

Whether health monitoring is supported.

bool IsSupported { get; }

Property Value

bool

Methods

GetHealthSnapshotAsync(CancellationToken)

Gets a health snapshot for the device.

ValueTask<HealthSnapshot> GetHealthSnapshotAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

ValueTask<HealthSnapshot>

Current health snapshot.

GetSensorReadingsAsync(CancellationToken)

Gets current sensor readings.

ValueTask<IReadOnlyList<SensorReading>> GetSensorReadingsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

ValueTask<IReadOnlyList<SensorReading>>

List of sensor readings.