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
|
# 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 ExecutionStatistics(Model):
"""Description about the errors happen while performing migration validation.
:param execution_count: No. of query executions
:type execution_count: long
:param cpu_time_ms: CPU Time in millisecond(s) for the query execution
:type cpu_time_ms: float
:param elapsed_time_ms: Time taken in millisecond(s) for executing the
query
:type elapsed_time_ms: float
:param wait_stats: Dictionary of sql query execution wait types and the
respective statistics
:type wait_stats: dict[str,
~azure.mgmt.datamigration.models.WaitStatistics]
:param has_errors: Indicates whether the query resulted in an error
:type has_errors: bool
:param sql_errors: List of sql Errors
:type sql_errors: list[str]
"""
_attribute_map = {
'execution_count': {'key': 'executionCount', 'type': 'long'},
'cpu_time_ms': {'key': 'cpuTimeMs', 'type': 'float'},
'elapsed_time_ms': {'key': 'elapsedTimeMs', 'type': 'float'},
'wait_stats': {'key': 'waitStats', 'type': '{WaitStatistics}'},
'has_errors': {'key': 'hasErrors', 'type': 'bool'},
'sql_errors': {'key': 'sqlErrors', 'type': '[str]'},
}
def __init__(self, *, execution_count: int=None, cpu_time_ms: float=None, elapsed_time_ms: float=None, wait_stats=None, has_errors: bool=None, sql_errors=None, **kwargs) -> None:
super(ExecutionStatistics, self).__init__(**kwargs)
self.execution_count = execution_count
self.cpu_time_ms = cpu_time_ms
self.elapsed_time_ms = elapsed_time_ms
self.wait_stats = wait_stats
self.has_errors = has_errors
self.sql_errors = sql_errors
|