Table of Contents

Interface IDeviceMetricsCollector

Namespace
DotCompute.Runtime.Services.Interfaces
Assembly
DotCompute.Runtime.dll

Service for collecting device-specific metrics. Monitors and tracks performance metrics for individual compute devices.

public interface IDeviceMetricsCollector

Methods

GetCurrentMetricsAsync(string)

Gets current device metrics. Retrieves the latest performance metrics for the specified device.

Task<DeviceMetrics> GetCurrentMetricsAsync(string acceleratorId)

Parameters

acceleratorId string

The unique identifier of the accelerator.

Returns

Task<DeviceMetrics>

Current device metrics.

GetHistoricalMetricsAsync(string, DateTime, DateTime)

Gets historical device metrics. Retrieves device performance data for a specific time range.

Task<IEnumerable<DeviceMetrics>> GetHistoricalMetricsAsync(string acceleratorId, DateTime startTime, DateTime endTime)

Parameters

acceleratorId string

The unique identifier of the accelerator.

startTime DateTime

The start time of the historical period.

endTime DateTime

The end time of the historical period.

Returns

Task<IEnumerable<DeviceMetrics>>

Collection of historical device metrics.

GetUtilizationStatsAsync(string)

Gets device utilization statistics. Provides detailed utilization analysis for the specified device.

Task<DeviceUtilizationStats> GetUtilizationStatsAsync(string acceleratorId)

Parameters

acceleratorId string

The unique identifier of the accelerator.

Returns

Task<DeviceUtilizationStats>

Device utilization statistics.

StartCollectionAsync(string)

Starts collecting metrics for a device. Initializes metric collection for the specified accelerator.

Task StartCollectionAsync(string acceleratorId)

Parameters

acceleratorId string

The unique identifier of the accelerator.

Returns

Task

A task representing the start operation.

StopCollectionAsync(string)

Stops collecting metrics for a device. Terminates metric collection for the specified accelerator.

Task StopCollectionAsync(string acceleratorId)

Parameters

acceleratorId string

The unique identifier of the accelerator.

Returns

Task

A task representing the stop operation.