Class WebhookUsageRecordData
POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the Webhook_usage table.
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class WebhookUsageRecordData : Object
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
Constructors
WebhookUsageRecordData()
POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the Webhook_usage table.
Declaration
public WebhookUsageRecordData()
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
Fields
ConsecutiveErrors
Number of consecutive errors. Reset to 0 when an non-error is received. If too many errors, webhook.state is changed to TooManyErrors(3) to deactivate webhook.
Declaration
public int ConsecutiveErrors
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
LastError
Most recent error message received from target. HTTP Headers + body. To help with debugging webhooks.
Declaration
public string LastError
Field Value
Type | Description |
---|---|
String |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
Registered
Registered when in UTC.
Declaration
public DateTime Registered
Field Value
Type | Description |
---|---|
DateTime |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
RegisteredAssociateId
Registered by whom
Declaration
public int RegisteredAssociateId
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
TotalCalls
Number of times webhook has been invoked since registered. For statistical purposes.
Declaration
public int TotalCalls
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
TotalErrors
Number of times webhook has returned error since registered. For statistical purposes.
Declaration
public int TotalErrors
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
Updated
Last updated when in UTC.
Declaration
public DateTime Updated
Field Value
Type | Description |
---|---|
DateTime |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
UpdatedAssociateId
Last updated by whom
Declaration
public int UpdatedAssociateId
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
UpdatedCount
Number of updates made to this record
Declaration
public short UpdatedCount
Field Value
Type | Description |
---|---|
Int16 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.
WebhookUsageId
Primary key
Declaration
public int WebhookUsageId
Field Value
Type | Description |
---|---|
Int32 |
Remarks
Please use this class instead of a full WebhookUsageRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding WebhookUsageTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.