Class WebhookLog
Represents a log entry for a webhook request execution.
Inheritance
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class WebhookLog
Constructors
View SourceWebhookLog()
Declaration
public WebhookLog()
Properties
View SourceDate
Gets or sets the date and time when the webhook request was executed.
Declaration
public DateTime Date { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
EventAlias
Gets or sets the alias of the event that triggered the webhook.
Declaration
public string EventAlias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExceptionOccured
Gets or sets a value indicating whether an exception occurred during the request.
Declaration
public bool ExceptionOccured { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Id
Gets or sets the unique identifier of the log entry.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsSuccessStatusCode
Gets or sets a value indicating whether the response had a success status code (2xx).
Declaration
public bool IsSuccessStatusCode { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Key
Gets or sets the unique key of this log entry.
Declaration
public Guid Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
RequestBody
Gets or sets the body content that was sent with the request.
Declaration
public string? RequestBody { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RequestHeaders
Gets or sets the HTTP headers that were sent with the request.
Declaration
public string RequestHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResponseBody
Gets or sets the body content returned in the response.
Declaration
public string ResponseBody { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResponseHeaders
Gets or sets the HTTP headers returned in the response.
Declaration
public string ResponseHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RetryCount
Gets or sets the number of retry attempts for this webhook request.
Declaration
public int RetryCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
StatusCode
Gets or sets the HTTP status code returned from the webhook request.
Declaration
public string StatusCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Url
Gets or sets the URL that the webhook request was sent to.
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WebhookKey
Gets or sets the unique key of the webhook that was executed.
Declaration
public Guid WebhookKey { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |