Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Archive depth

GET http://IP-AddressIPaddress:port/prefix/archive/statistics/depth/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME} - getting information about the archive depth starting at BEGINTIME and ending at ENDTIME.

Tip

{VIDEOSOURCEID} - three-component source endpoint ID (see see Get list of video sources (cameras)). For instance, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".


Info
titleNote

The ENDTIME and BEGINTIME syntax is described in Get archive contents section.


ParameterRequiredDescription
thresholdNoThe threshold value (in days) at which the interval merging procedure will be completed. The default value is 1 day.
archiveNo

The name of the archive from the request to get the list of archives (see Get archive contents).

If not specified, the default archive is used.

Sample request:

GET http://127.0.0.1:80/archive/statistics/depth/SERVER1/DeviceIpint.23/SourceEndpoint.video:0:0?threshold=2

Sample response:

Code Block
{
  "start": "20160823T141333.778000"
  ,"end": "20160824T065142"
}


ParameterDescription
startInterval start
endInterval end

Recording capacity to specific camera archive

GET http://IP-AddressIPaddress:port/prefix/archive/statistics/capacity/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME} - getting information about the recording capacity to specific camera archive starting at BEGINTIME and ending at ENDTIME.

ParameterRequiredDescription
archiveNo

The name of the archive from the request to get the list of archives (see Get archive contents).

If not specified, the default archive is used.

Sample request:

GET http://127.0.0.1:80/archive/statistics/capacity/SERVER1/DeviceIpint.23/SourceEndpoint.video:0:0/past/future?archive=hosts/SERVER1/MultimediaStorage.AntiqueWhite/MultimediaStorage

Sample response:

Code Block
{
  "size": 520093696
  ,"duration": 32345
}


ParameterDescription

size

Archive size (in bytes) within the specified period.

durationArchive duration (in milliseconds) within the specified period.