Share via


Event Class

Definition

The event for a webhook.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.EventTypeConverter))]
public class Event : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IEvent, Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.EventTypeConverter))>]
type Event = class
    interface IEvent
    interface IJsonSerializable
    interface IEventInfo
    interface IValidates
Public Class Event
Implements IEvent, IValidates
Inheritance
Event
Attributes
Implements

Constructors

Event()

Creates an new Event instance.

Properties

ActorName

The subject or username associated with the request context that generated the event.

ContentAction

The action that encompasses the provided event.

ContentId

The event ID.

ContentTimestamp

The time at which the event occurred.

Id

The event ID.

RequestAddr

The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.

RequestHost

The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.

RequestId

The ID of the request that initiated the event.

RequestMessageHeader

The headers of the event request message.

RequestMessageMethod

The HTTP method used to send the event request message.

RequestMessageRequestUri

The URI used to send the event request message.

RequestMessageVersion

The HTTP message version.

RequestMethod

The request method that generated the event.

RequestUseragent

The user agent header of the request.

ResponseMessageContent

The content of the event response message.

ResponseMessageHeader

The headers of the event response message.

ResponseMessageReasonPhrase

The reason phrase of the event response message.

ResponseMessageStatusCode

The status code of the event response message.

ResponseMessageVersion

The HTTP message version.

SourceAddr

The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.

SourceInstanceId

The running instance of an application. Changes after each restart.

TargetDigest

The digest of the content, as defined by the Registry V2 HTTP API Specification.

TargetLength

The number of bytes of the content. Same as Size field.

TargetMediaType

The MIME type of the referenced object.

TargetName

The name of the artifact.

TargetRepository

The repository name.

TargetSize

The number of bytes of the content. Same as Length field.

TargetTag

The tag name.

TargetUrl

The direct URL to the content.

TargetVersion

The version of the artifact.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Event.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Event.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.IEvent.

FromJsonString(String)

Creates a new instance of Event, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Event into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to