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
|
# 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 DetectorAbnormalTimePeriod(Model):
"""Class representing Abnormal Time Period detected.
:param start_time: Start time of the corelated event
:type start_time: datetime
:param end_time: End time of the corelated event
:type end_time: datetime
:param message: Message describing the event
:type message: str
:param source: Represents the name of the Detector
:type source: str
:param priority: Represents the rank of the Detector
:type priority: float
:param meta_data: Downtime metadata
:type meta_data: list[list[~azure.mgmt.web.models.NameValuePair]]
:param type: Represents the type of the Detector. Possible values include:
'ServiceIncident', 'AppDeployment', 'AppCrash', 'RuntimeIssueDetected',
'AseDeployment', 'UserIssue', 'PlatformIssue', 'Other'
:type type: str or ~azure.mgmt.web.models.IssueType
:param solutions: List of proposed solutions
:type solutions: list[~azure.mgmt.web.models.Solution]
"""
_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'message': {'key': 'message', 'type': 'str'},
'source': {'key': 'source', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'float'},
'meta_data': {'key': 'metaData', 'type': '[[NameValuePair]]'},
'type': {'key': 'type', 'type': 'IssueType'},
'solutions': {'key': 'solutions', 'type': '[Solution]'},
}
def __init__(self, **kwargs):
super(DetectorAbnormalTimePeriod, self).__init__(**kwargs)
self.start_time = kwargs.get('start_time', None)
self.end_time = kwargs.get('end_time', None)
self.message = kwargs.get('message', None)
self.source = kwargs.get('source', None)
self.priority = kwargs.get('priority', None)
self.meta_data = kwargs.get('meta_data', None)
self.type = kwargs.get('type', None)
self.solutions = kwargs.get('solutions', None)
|