|
15 | 15 | class EventData(Model): |
16 | 16 | """The Azure event log entries are of type EventData. |
17 | 17 |
|
18 | | - Variables are only populated by the server, and will be ignored when |
19 | | - sending a request. |
20 | | -
|
21 | | - :ivar authorization: |
22 | | - :vartype authorization: ~azure.mgmt.monitor.models.SenderAuthorization |
23 | | - :ivar claims: key value pairs to identify ARM permissions. |
24 | | - :vartype claims: dict[str, str] |
25 | | - :ivar caller: the email address of the user who has performed the |
| 18 | + :param authorization: |
| 19 | + :type authorization: ~azure.mgmt.monitor.models.SenderAuthorization |
| 20 | + :param claims: key value pairs to identify ARM permissions. |
| 21 | + :type claims: dict[str, str] |
| 22 | + :param caller: the email address of the user who has performed the |
26 | 23 | operation, the UPN claim or SPN claim based on availability. |
27 | | - :vartype caller: str |
28 | | - :ivar description: the description of the event. |
29 | | - :vartype description: str |
30 | | - :ivar id: the Id of this event as required by ARM for RBAC. It contains |
| 24 | + :type caller: str |
| 25 | + :param description: the description of the event. |
| 26 | + :type description: str |
| 27 | + :param id: the Id of this event as required by ARM for RBAC. It contains |
31 | 28 | the EventDataID and a timestamp information. |
32 | | - :vartype id: str |
33 | | - :ivar event_data_id: the event data Id. This is a unique identifier for an |
34 | | - event. |
35 | | - :vartype event_data_id: str |
36 | | - :ivar correlation_id: the correlation Id, usually a GUID in the string |
| 29 | + :type id: str |
| 30 | + :param event_data_id: the event data Id. This is a unique identifier for |
| 31 | + an event. |
| 32 | + :type event_data_id: str |
| 33 | + :param correlation_id: the correlation Id, usually a GUID in the string |
37 | 34 | format. The correlation Id is shared among the events that belong to the |
38 | 35 | same uber operation. |
39 | | - :vartype correlation_id: str |
40 | | - :ivar event_name: the event name. This value should not be confused with |
| 36 | + :type correlation_id: str |
| 37 | + :param event_name: the event name. This value should not be confused with |
41 | 38 | OperationName. For practical purposes, OperationName might be more |
42 | 39 | appealing to end users. |
43 | | - :vartype event_name: ~azure.mgmt.monitor.models.LocalizableString |
44 | | - :ivar category: the event category. |
45 | | - :vartype category: ~azure.mgmt.monitor.models.LocalizableString |
46 | | - :ivar http_request: the HTTP request info. Usually includes the |
| 40 | + :type event_name: ~azure.mgmt.monitor.models.LocalizableString |
| 41 | + :param category: the event category. |
| 42 | + :type category: ~azure.mgmt.monitor.models.LocalizableString |
| 43 | + :param http_request: the HTTP request info. Usually includes the |
47 | 44 | 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated |
48 | 45 | the event) and 'method' (HTTP method e.g. PUT). |
49 | | - :vartype http_request: ~azure.mgmt.monitor.models.HttpRequestInfo |
50 | | - :ivar level: the event level. Possible values include: 'Critical', |
| 46 | + :type http_request: ~azure.mgmt.monitor.models.HttpRequestInfo |
| 47 | + :param level: the event level. Possible values include: 'Critical', |
51 | 48 | 'Error', 'Warning', 'Informational', 'Verbose' |
52 | | - :vartype level: str or ~azure.mgmt.monitor.models.EventLevel |
53 | | - :ivar resource_group_name: the resource group name of the impacted |
| 49 | + :type level: str or ~azure.mgmt.monitor.models.EventLevel |
| 50 | + :param resource_group_name: the resource group name of the impacted |
54 | 51 | resource. |
55 | | - :vartype resource_group_name: str |
56 | | - :ivar resource_provider_name: the resource provider name of the impacted |
| 52 | + :type resource_group_name: str |
| 53 | + :param resource_provider_name: the resource provider name of the impacted |
57 | 54 | resource. |
58 | | - :vartype resource_provider_name: |
59 | | - ~azure.mgmt.monitor.models.LocalizableString |
60 | | - :ivar resource_id: the resource uri that uniquely identifies the resource |
| 55 | + :type resource_provider_name: ~azure.mgmt.monitor.models.LocalizableString |
| 56 | + :param resource_id: the resource uri that uniquely identifies the resource |
61 | 57 | that caused this event. |
62 | | - :vartype resource_id: str |
63 | | - :ivar resource_type: the resource type |
64 | | - :vartype resource_type: ~azure.mgmt.monitor.models.LocalizableString |
65 | | - :ivar operation_id: It is usually a GUID shared among the events |
| 58 | + :type resource_id: str |
| 59 | + :param resource_type: the resource type |
| 60 | + :type resource_type: ~azure.mgmt.monitor.models.LocalizableString |
| 61 | + :param operation_id: It is usually a GUID shared among the events |
66 | 62 | corresponding to single operation. This value should not be confused with |
67 | 63 | EventName. |
68 | | - :vartype operation_id: str |
69 | | - :ivar operation_name: the operation name. |
70 | | - :vartype operation_name: ~azure.mgmt.monitor.models.LocalizableString |
71 | | - :ivar properties: the set of <Key, Value> pairs (usually a |
| 64 | + :type operation_id: str |
| 65 | + :param operation_name: the operation name. |
| 66 | + :type operation_name: ~azure.mgmt.monitor.models.LocalizableString |
| 67 | + :param properties: the set of <Key, Value> pairs (usually a |
72 | 68 | Dictionary<String, String>) that includes details about the event. |
73 | | - :vartype properties: dict[str, str] |
74 | | - :ivar status: a string describing the status of the operation. Some |
| 69 | + :type properties: dict[str, str] |
| 70 | + :param status: a string describing the status of the operation. Some |
75 | 71 | typical values are: Started, In progress, Succeeded, Failed, Resolved. |
76 | | - :vartype status: ~azure.mgmt.monitor.models.LocalizableString |
77 | | - :ivar sub_status: the event sub status. Most of the time, when included, |
| 72 | + :type status: ~azure.mgmt.monitor.models.LocalizableString |
| 73 | + :param sub_status: the event sub status. Most of the time, when included, |
78 | 74 | this captures the HTTP status code of the REST call. Common values are: OK |
79 | 75 | (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP |
80 | 76 | Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP |
81 | 77 | Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP |
82 | 78 | Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service |
83 | 79 | Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: |
84 | 80 | 504) |
85 | | - :vartype sub_status: ~azure.mgmt.monitor.models.LocalizableString |
86 | | - :ivar event_timestamp: the timestamp of when the event was generated by |
| 81 | + :type sub_status: ~azure.mgmt.monitor.models.LocalizableString |
| 82 | + :param event_timestamp: the timestamp of when the event was generated by |
87 | 83 | the Azure service processing the request corresponding the event. It in |
88 | 84 | ISO 8601 format. |
89 | | - :vartype event_timestamp: datetime |
90 | | - :ivar submission_timestamp: the timestamp of when the event became |
| 85 | + :type event_timestamp: datetime |
| 86 | + :param submission_timestamp: the timestamp of when the event became |
91 | 87 | available for querying via this API. It is in ISO 8601 format. This value |
92 | 88 | should not be confused eventTimestamp. As there might be a delay between |
93 | 89 | the occurrence time of the event, and the time that the event is submitted |
94 | 90 | to the Azure logging infrastructure. |
95 | | - :vartype submission_timestamp: datetime |
96 | | - :ivar subscription_id: the Azure subscription Id usually a GUID. |
97 | | - :vartype subscription_id: str |
98 | | - :ivar tenant_id: the Azure tenant Id |
99 | | - :vartype tenant_id: str |
| 91 | + :type submission_timestamp: datetime |
| 92 | + :param subscription_id: the Azure subscription Id usually a GUID. |
| 93 | + :type subscription_id: str |
| 94 | + :param tenant_id: the Azure tenant Id |
| 95 | + :type tenant_id: str |
100 | 96 | """ |
101 | 97 |
|
102 | 98 | _validation = { |
103 | | - 'authorization': {'readonly': True}, |
104 | | - 'claims': {'readonly': True}, |
105 | | - 'caller': {'readonly': True}, |
106 | | - 'description': {'readonly': True}, |
107 | | - 'id': {'readonly': True}, |
108 | | - 'event_data_id': {'readonly': True}, |
109 | | - 'correlation_id': {'readonly': True}, |
110 | | - 'event_name': {'readonly': True}, |
111 | | - 'category': {'readonly': True}, |
112 | | - 'http_request': {'readonly': True}, |
113 | | - 'level': {'readonly': True}, |
114 | | - 'resource_group_name': {'readonly': True}, |
115 | | - 'resource_provider_name': {'readonly': True}, |
116 | | - 'resource_id': {'readonly': True}, |
117 | | - 'resource_type': {'readonly': True}, |
118 | | - 'operation_id': {'readonly': True}, |
119 | | - 'operation_name': {'readonly': True}, |
120 | | - 'properties': {'readonly': True}, |
121 | | - 'status': {'readonly': True}, |
122 | | - 'sub_status': {'readonly': True}, |
123 | | - 'event_timestamp': {'readonly': True}, |
124 | | - 'submission_timestamp': {'readonly': True}, |
125 | | - 'subscription_id': {'readonly': True}, |
126 | | - 'tenant_id': {'readonly': True}, |
| 99 | + 'level': {'required': True}, |
| 100 | + 'event_timestamp': {'required': True}, |
| 101 | + 'submission_timestamp': {'required': True}, |
127 | 102 | } |
128 | 103 |
|
129 | 104 | _attribute_map = { |
@@ -153,29 +128,29 @@ class EventData(Model): |
153 | 128 | 'tenant_id': {'key': 'tenantId', 'type': 'str'}, |
154 | 129 | } |
155 | 130 |
|
156 | | - def __init__(self): |
| 131 | + def __init__(self, level, event_timestamp, submission_timestamp, authorization=None, claims=None, caller=None, description=None, id=None, event_data_id=None, correlation_id=None, event_name=None, category=None, http_request=None, resource_group_name=None, resource_provider_name=None, resource_id=None, resource_type=None, operation_id=None, operation_name=None, properties=None, status=None, sub_status=None, subscription_id=None, tenant_id=None): |
157 | 132 | super(EventData, self).__init__() |
158 | | - self.authorization = None |
159 | | - self.claims = None |
160 | | - self.caller = None |
161 | | - self.description = None |
162 | | - self.id = None |
163 | | - self.event_data_id = None |
164 | | - self.correlation_id = None |
165 | | - self.event_name = None |
166 | | - self.category = None |
167 | | - self.http_request = None |
168 | | - self.level = None |
169 | | - self.resource_group_name = None |
170 | | - self.resource_provider_name = None |
171 | | - self.resource_id = None |
172 | | - self.resource_type = None |
173 | | - self.operation_id = None |
174 | | - self.operation_name = None |
175 | | - self.properties = None |
176 | | - self.status = None |
177 | | - self.sub_status = None |
178 | | - self.event_timestamp = None |
179 | | - self.submission_timestamp = None |
180 | | - self.subscription_id = None |
181 | | - self.tenant_id = None |
| 133 | + self.authorization = authorization |
| 134 | + self.claims = claims |
| 135 | + self.caller = caller |
| 136 | + self.description = description |
| 137 | + self.id = id |
| 138 | + self.event_data_id = event_data_id |
| 139 | + self.correlation_id = correlation_id |
| 140 | + self.event_name = event_name |
| 141 | + self.category = category |
| 142 | + self.http_request = http_request |
| 143 | + self.level = level |
| 144 | + self.resource_group_name = resource_group_name |
| 145 | + self.resource_provider_name = resource_provider_name |
| 146 | + self.resource_id = resource_id |
| 147 | + self.resource_type = resource_type |
| 148 | + self.operation_id = operation_id |
| 149 | + self.operation_name = operation_name |
| 150 | + self.properties = properties |
| 151 | + self.status = status |
| 152 | + self.sub_status = sub_status |
| 153 | + self.event_timestamp = event_timestamp |
| 154 | + self.submission_timestamp = submission_timestamp |
| 155 | + self.subscription_id = subscription_id |
| 156 | + self.tenant_id = tenant_id |
0 commit comments