-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
EventDataInfo.cs
126 lines (120 loc) · 10.4 KB
/
EventDataInfo.cs
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> The Azure event log entries are of type EventData. </summary>
public partial class EventDataInfo
{
/// <summary> Initializes a new instance of EventDataInfo. </summary>
internal EventDataInfo()
{
Claims = new ChangeTrackingDictionary<string, string>();
Properties = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of EventDataInfo. </summary>
/// <param name="authorization"> The sender authorization information. </param>
/// <param name="claims"> key value pairs to identify ARM permissions. </param>
/// <param name="caller"> the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. </param>
/// <param name="description"> the description of the event. </param>
/// <param name="id"> the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. </param>
/// <param name="eventDataId"> the event data Id. This is a unique identifier for an event. </param>
/// <param name="correlationId"> the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. </param>
/// <param name="eventName"> the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. </param>
/// <param name="category"> the event category. </param>
/// <param name="httpRequest"> the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). </param>
/// <param name="level"> the event level. </param>
/// <param name="resourceGroupName"> the resource group name of the impacted resource. </param>
/// <param name="resourceProviderName"> the resource provider name of the impacted resource. </param>
/// <param name="resourceId"> the resource uri that uniquely identifies the resource that caused this event. </param>
/// <param name="resourceType"> the resource type. </param>
/// <param name="operationId"> It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. </param>
/// <param name="operationName"> the operation name. </param>
/// <param name="properties"> the set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event. </param>
/// <param name="status"> a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. </param>
/// <param name="subStatus"> the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504). </param>
/// <param name="eventTimestamp"> the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. </param>
/// <param name="submissionTimestamp"> the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. </param>
/// <param name="subscriptionId"> the Azure subscription Id usually a GUID. </param>
/// <param name="tenantId"> the Azure tenant Id. </param>
internal EventDataInfo(SenderAuthorization authorization, IReadOnlyDictionary<string, string> claims, string caller, string description, string id, string eventDataId, string correlationId, MonitorLocalizableString eventName, MonitorLocalizableString category, EventDataHttpRequestInfo httpRequest, MonitorEventLevel? level, string resourceGroupName, MonitorLocalizableString resourceProviderName, ResourceIdentifier resourceId, MonitorLocalizableString resourceType, string operationId, MonitorLocalizableString operationName, IReadOnlyDictionary<string, string> properties, MonitorLocalizableString status, MonitorLocalizableString subStatus, DateTimeOffset? eventTimestamp, DateTimeOffset? submissionTimestamp, string subscriptionId, Guid? tenantId)
{
Authorization = authorization;
Claims = claims;
Caller = caller;
Description = description;
Id = id;
EventDataId = eventDataId;
CorrelationId = correlationId;
EventName = eventName;
Category = category;
HttpRequest = httpRequest;
Level = level;
ResourceGroupName = resourceGroupName;
ResourceProviderName = resourceProviderName;
ResourceId = resourceId;
ResourceType = resourceType;
OperationId = operationId;
OperationName = operationName;
Properties = properties;
Status = status;
SubStatus = subStatus;
EventTimestamp = eventTimestamp;
SubmissionTimestamp = submissionTimestamp;
SubscriptionId = subscriptionId;
TenantId = tenantId;
}
/// <summary> The sender authorization information. </summary>
public SenderAuthorization Authorization { get; }
/// <summary> key value pairs to identify ARM permissions. </summary>
public IReadOnlyDictionary<string, string> Claims { get; }
/// <summary> the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. </summary>
public string Caller { get; }
/// <summary> the description of the event. </summary>
public string Description { get; }
/// <summary> the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. </summary>
public string Id { get; }
/// <summary> the event data Id. This is a unique identifier for an event. </summary>
public string EventDataId { get; }
/// <summary> the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. </summary>
public string CorrelationId { get; }
/// <summary> the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. </summary>
public MonitorLocalizableString EventName { get; }
/// <summary> the event category. </summary>
public MonitorLocalizableString Category { get; }
/// <summary> the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). </summary>
public EventDataHttpRequestInfo HttpRequest { get; }
/// <summary> the event level. </summary>
public MonitorEventLevel? Level { get; }
/// <summary> the resource group name of the impacted resource. </summary>
public string ResourceGroupName { get; }
/// <summary> the resource provider name of the impacted resource. </summary>
public MonitorLocalizableString ResourceProviderName { get; }
/// <summary> the resource uri that uniquely identifies the resource that caused this event. </summary>
public ResourceIdentifier ResourceId { get; }
/// <summary> the resource type. </summary>
public MonitorLocalizableString ResourceType { get; }
/// <summary> It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. </summary>
public string OperationId { get; }
/// <summary> the operation name. </summary>
public MonitorLocalizableString OperationName { get; }
/// <summary> the set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event. </summary>
public IReadOnlyDictionary<string, string> Properties { get; }
/// <summary> a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. </summary>
public MonitorLocalizableString Status { get; }
/// <summary> the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504). </summary>
public MonitorLocalizableString SubStatus { get; }
/// <summary> the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. </summary>
public DateTimeOffset? EventTimestamp { get; }
/// <summary> the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. </summary>
public DateTimeOffset? SubmissionTimestamp { get; }
/// <summary> the Azure subscription Id usually a GUID. </summary>
public string SubscriptionId { get; }
/// <summary> the Azure tenant Id. </summary>
public Guid? TenantId { get; }
}
}