Runway#

class Runway(minimum_runway_days=None, cpu_runway_days=None, memory_runway_days=None, storage_runway_days=None, runway_start_time=None, *args, **kwargs)#

Bases: object

Runway in a scenario.

Parameters:
  • minimum_runway_days – (minimum_runway_days) Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.

  • cpu_runway_days – (cpu_runway_days) Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.

  • memory_runway_days – (memory_runway_days) Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.

  • storage_runway_days – (storage_runway_days) Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.

  • runway_start_time (required) – (runway_start_time) The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.

property cpu_runway_days#

Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.

Type:

int

property memory_runway_days#

Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.

Type:

int

property minimum_runway_days#

Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.

Type:

int

property runway_start_time#

The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.

Type:

datetime

property storage_runway_days#

Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model