Class IDeviceSensorCommandsExtensions
- Namespace
- Meraki.Api.Extensions
- Assembly
- Meraki.Api.dll
public static class IDeviceSensorCommandsExtensions
- Inheritance
-
IDeviceSensorCommandsExtensions
- Inherited Members
Methods
GetDeviceSensorCommandsAllAsync(IDeviceSensorCommands, string, List<string>?, string?, string?, string?, CancellationToken)
Returns a historical log of all commands.
public static Task<List<SensorCommand>> GetDeviceSensorCommandsAllAsync(this IDeviceSensorCommands deviceSensorCommands, string serial, List<string>? operations = null, string? t0 = null, string? t1 = null, string? timespan = null, CancellationToken cancellationToken = default)
Parameters
deviceSensorCommandsIDeviceSensorCommandsserialstringSerial.
operationsList<string>Optional parameter to filter commands by operation.
t0stringThe beginning of the timespan for the data. The maximum lookback period is 30 days from today.
t1stringThe end of the timespan for the data. t1 can be a maximum of 30 days after t0.
timespanstringThe timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 30 days. The default is 1 day.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<List<SensorCommand>>
A list of SensorCommand.