Interface ICameraAnalyticsZones
- Namespace
- Meraki.Api.Interfaces.Products.Camera
- Assembly
- Meraki.Api.dll
public interface ICameraAnalyticsZones
Methods
GetDeviceCameraAnalyticsZoneHistoryAsync(string, string, string, string, double?, int?, string, CancellationToken)
Return historical records for analytic zones
[Get("/devices/{serial}/camera/analytics/zones/{zoneId}/history")]
Task<List<CameraZoneHistory>> GetDeviceCameraAnalyticsZoneHistoryAsync(string serial, string zoneId, string t0 = null, string t1 = null, double? timespan = null, int? resolution = null, string objectType = null, CancellationToken cancellationToken = default)
Parameters
serialstringThe serial number
zoneIdstringThe zone id
t0stringThe beginning of the timespan for the data. The maximum lookback period is 365 days from today. (optional)
t1stringThe end of the timespan for the data. t1 can be a maximum of 14 hours after t0. (optional)
timespandouble?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 14 hours. The default is 1 hour. (optional)
resolutionint?The time resolution in seconds for returned data. The valid resolutions are: 60. The default is 60. (optional)
objectTypestring[optional] The object type for which analytics will be retrieved. The default object type is person. The available types are [person, vehicle]. (optional)
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetDeviceCameraAnalyticsZonesAsync(string, CancellationToken)
Returns all configured analytic zones for this camera
[Get("/devices/{serial}/camera/analytics/zones")]
Task<List<CameraZone>> GetDeviceCameraAnalyticsZonesAsync(string serial, CancellationToken cancellationToken = default)
Parameters
serialstringThe serial number
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call