共用方式為


EventData Class

Definition

The Azure event log entries are of type EventData

public class EventData
type EventData = class
Public Class EventData
Inheritance
EventData

Constructors

EventData()

Initializes a new instance of the EventData class.

EventData(SenderAuthorization, IDictionary<String,String>, String, String, String, String, String, LocalizableString, LocalizableString, HttpRequestInfo, Nullable<EventLevel>, String, LocalizableString, String, LocalizableString, String, LocalizableString, IDictionary<String, String>, LocalizableString, LocalizableString, Nullable<DateTime>, Nullable<DateTime>, String, String)

Initializes a new instance of the EventData class.

Properties

Authorization

Gets the sender authorization information.

Caller

Gets the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability.

Category

Gets the event category.

Claims

Gets key value pairs to identify ARM permissions.

CorrelationId

Gets 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.

Description

Gets the description of the event.

EventDataId

Gets the event data Id. This is a unique identifier for an event.

EventName

Gets the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users.

EventTimestamp

Gets the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format.

HttpRequest

Gets 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).

Id

Gets the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information.

Level

Gets the event level. Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose'

OperationId

Gets it is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName.

OperationName

Gets the operation name.

Properties

Gets the set of &lt;Key, Value&gt; pairs (usually a Dictionary&lt;String, String&gt;) that includes details about the event.

ResourceGroupName

Gets the resource group name of the impacted resource.

ResourceId

Gets the resource uri that uniquely identifies the resource that caused this event.

ResourceProviderName

Gets the resource provider name of the impacted resource.

ResourceType

Gets the resource type

Status

Gets a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved.

SubmissionTimestamp

Gets 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.

SubscriptionId

Gets the Azure subscription Id usually a GUID.

SubStatus

Gets 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)

TenantId

Gets the Azure tenant Id

Methods

Validate()

Validate the object.

Applies to