models_v2.throttling_params module

class models_v2.throttling_params.ThrottlingParams(new_task_latency_threshold_msecs=None, active_task_latency_threshold_msecs=None, max_concurrent_streams=None)[source]

Bases: object

Implementation of the ‘Throttling Params.’ model.

Specifies throttling params.

Attributes:
new_task_latency_threshold_msecs (long|int): If the latency of a

datastore is above this value, then a new backup task that uses the datastore won’t be started.

active_task_latency_threshold_msecs (long|int): If the latency of a

datastore is above this value, then an existing backup task that uses the datastore will start getting throttled.

max_concurrent_streams (int): If this value is > 0 and the number of

streams concurrently active on a datastore is equal to it, then any further requests to access the datastore would be denied until the number of active streams reduces. This applies for all the datastores in the specified host.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.