models.qo_s_policy module

class models.qo_s_policy.QoSPolicy(always_use_ssd=None, id=None, min_requests=None, name=None, priority=None, random_write_hydra_pct=None, random_write_ssd_pct=None, seq_write_hydra_pct=None, seq_write_ssd_pct=None, weight=None, work_load_type=None)[source]

Bases: object

Implementation of the ‘QoSPolicy’ model.

Specifies the Quality of Service (QoS) Policy details.

Attributes:
always_use_ssd (bool): Specifies whether to always write to SSD even

if SeqWriteSsdPct is 0.

id (long|int): Specifies Id of the QoS Policy. min_requests (int): Specifies minimum number of requests,

corresponding to this Policy, executed in the QoS queue.

name (string): Specifies Name of the Qos Policy. priority (PriorityQoSPolicyEnum): Specifies Priority of the Qos

Policy. Priority of QoS Policy as defined in cluster config proto.

random_write_hydra_pct (int): Specifies percentage of a random write

request belonging to this Policy that hits hydra.

random_write_ssd_pct (int): Specifies percentage of a random write

request belonging to this Policy that hits SSD.

seq_write_hydra_pct (int): Specifies percentage of a sequential write

request belonging to this Policy that hits hydra.

seq_write_ssd_pct (int): Specifies percentage of a sequential write

request belonging to this Policy that hits SSD.

weight (int): Specifies Weight of the QoS Policy used in QoS queue. work_load_type (string): Specifies Workload type attribute associated

with this Policy.

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.