models.stats_group module

class models.stats_group.StatsGroup(consumer=None, entity_id=None, id=None, name=None, tenant_id=None, tenant_name=None, view_box_id=None, view_box_name=None)[source]

Bases: object

Implementation of the ‘StatsGroup’ model.

StatsGroup describes the details of a stats group. A stats group is a basic group of usage stats, it is the usage of a tenant within a storage domain may also for a specific consumer type.

Attributes:

consumer (Consumer): Consumer is the storage consumer of a group. entity_id (string): Specifies the entity id of the group. id (long|int): Specifies the id of the group. name (string): Specifies the name of the group. tenant_id (string): Specifies the id of the organization (tenant) with

respect to this group.

tenant_name (string): Specifies the name of the organization (tenant)

with respect to this group.

view_box_id (long|int): Specifies the id of the view box (storage

domain) with respect to this group.

view_box_name (string): Specifies the name of the view box (storage

domain) with respect to this group.

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.