Table of Contents

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

deviceSensorCommands IDeviceSensorCommands
serial string

Serial.

operations List<string>

Optional parameter to filter commands by operation.

t0 string

The beginning of the timespan for the data. The maximum lookback period is 30 days from today.

t1 string

The end of the timespan for the data. t1 can be a maximum of 30 days after t0.

timespan string

The 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.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<List<SensorCommand>>

A list of SensorCommand.