CapacitySchedule.record_change()

Record a single change in capacity.

Usage

Source

CapacitySchedule.record_change(
    action,
    unit,
    remove_target,
)

Parameters

action: str

Description of the capacity change (“removed” or “returned”).

unit: VidigiResource

The individual ambulance resource object whose availability changed.

remove_target: int
Target number of units removed from the maximum resource pool.