1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ResourceStatistics(Model):
"""Statistics related to resource consumption by compute nodes in a pool.
All required parameters must be populated in order to send to Azure.
:param start_time: Required. The start time of the time range covered by
the statistics.
:type start_time: datetime
:param last_update_time: Required. The time at which the statistics were
last updated. All statistics are limited to the range between startTime
and lastUpdateTime.
:type last_update_time: datetime
:param avg_cpu_percentage: Required. The average CPU usage across all
nodes in the pool (percentage per node).
:type avg_cpu_percentage: float
:param avg_memory_gi_b: Required. The average memory usage in GiB across
all nodes in the pool.
:type avg_memory_gi_b: float
:param peak_memory_gi_b: Required. The peak memory usage in GiB across all
nodes in the pool.
:type peak_memory_gi_b: float
:param avg_disk_gi_b: Required. The average used disk space in GiB across
all nodes in the pool.
:type avg_disk_gi_b: float
:param peak_disk_gi_b: Required. The peak used disk space in GiB across
all nodes in the pool.
:type peak_disk_gi_b: float
:param disk_read_iops: Required. The total number of disk read operations
across all nodes in the pool.
:type disk_read_iops: long
:param disk_write_iops: Required. The total number of disk write
operations across all nodes in the pool.
:type disk_write_iops: long
:param disk_read_gi_b: Required. The total amount of data in GiB of disk
reads across all nodes in the pool.
:type disk_read_gi_b: float
:param disk_write_gi_b: Required. The total amount of data in GiB of disk
writes across all nodes in the pool.
:type disk_write_gi_b: float
:param network_read_gi_b: Required. The total amount of data in GiB of
network reads across all nodes in the pool.
:type network_read_gi_b: float
:param network_write_gi_b: Required. The total amount of data in GiB of
network writes across all nodes in the pool.
:type network_write_gi_b: float
"""
_validation = {
'start_time': {'required': True},
'last_update_time': {'required': True},
'avg_cpu_percentage': {'required': True},
'avg_memory_gi_b': {'required': True},
'peak_memory_gi_b': {'required': True},
'avg_disk_gi_b': {'required': True},
'peak_disk_gi_b': {'required': True},
'disk_read_iops': {'required': True},
'disk_write_iops': {'required': True},
'disk_read_gi_b': {'required': True},
'disk_write_gi_b': {'required': True},
'network_read_gi_b': {'required': True},
'network_write_gi_b': {'required': True},
}
_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'},
'avg_cpu_percentage': {'key': 'avgCPUPercentage', 'type': 'float'},
'avg_memory_gi_b': {'key': 'avgMemoryGiB', 'type': 'float'},
'peak_memory_gi_b': {'key': 'peakMemoryGiB', 'type': 'float'},
'avg_disk_gi_b': {'key': 'avgDiskGiB', 'type': 'float'},
'peak_disk_gi_b': {'key': 'peakDiskGiB', 'type': 'float'},
'disk_read_iops': {'key': 'diskReadIOps', 'type': 'long'},
'disk_write_iops': {'key': 'diskWriteIOps', 'type': 'long'},
'disk_read_gi_b': {'key': 'diskReadGiB', 'type': 'float'},
'disk_write_gi_b': {'key': 'diskWriteGiB', 'type': 'float'},
'network_read_gi_b': {'key': 'networkReadGiB', 'type': 'float'},
'network_write_gi_b': {'key': 'networkWriteGiB', 'type': 'float'},
}
def __init__(self, **kwargs):
super(ResourceStatistics, self).__init__(**kwargs)
self.start_time = kwargs.get('start_time', None)
self.last_update_time = kwargs.get('last_update_time', None)
self.avg_cpu_percentage = kwargs.get('avg_cpu_percentage', None)
self.avg_memory_gi_b = kwargs.get('avg_memory_gi_b', None)
self.peak_memory_gi_b = kwargs.get('peak_memory_gi_b', None)
self.avg_disk_gi_b = kwargs.get('avg_disk_gi_b', None)
self.peak_disk_gi_b = kwargs.get('peak_disk_gi_b', None)
self.disk_read_iops = kwargs.get('disk_read_iops', None)
self.disk_write_iops = kwargs.get('disk_write_iops', None)
self.disk_read_gi_b = kwargs.get('disk_read_gi_b', None)
self.disk_write_gi_b = kwargs.get('disk_write_gi_b', None)
self.network_read_gi_b = kwargs.get('network_read_gi_b', None)
self.network_write_gi_b = kwargs.get('network_write_gi_b', None)
|