UC Get Pool Utilization

Motivation

Sometimes it is helpful to have an idea about a pools utilization in a given timespan to decide for or against a recording pool when creating a record.

Reference

vidicontrol/schedulercore/swagger/index.html

Parameters

  • poolId: The Id of the pool

  • start: The datetime string of the start of the timespan

  • end: The datetime string of the end of the timespan

PoolIds can be obtained by requesting

GET vidicontrol/schedulercore/SchedulerCore/ResourceService/v1/Pools

Result

The response contains the start time, the end time and all relevant timepoints inbetween, where the utilization changes.

The pool utilization is responded in percent.

Example

GET https://host/vidicontrol/schedulercore/SchedulerCore/ResourceService/v1/Pool/VCR-0B/Utilization?start=2023-10-23T14%3A57%3A39.977Z&end=2023-10-23T18%3A57%3A39.977Z

Example Response

JSON
[
  {
    "time": "2023-10-23T14:57:39.977Z",
    "utilization": 0.4
  },
  {
    "time": "2023-10-23T15:50:33.64Z",
    "utilization": 0.2
  },
  {
    "time": "2023-10-23T15:52:01Z",
    "utilization": 0
  },
  {
    "time": "2023-10-23T18:57:39.977Z",
    "utilization": 0
  }
]