Class WebhookUsageTableInfo
Table 'WebhookUsage': Usage counters for a specific webhook. Since these are updated frequently, we keep them in a separate table. Used to determine if too many errors are happening.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("WebhookUsage")]
public class WebhookUsageTableInfo : TableInfo, ICloneable
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling
Fields
DictionaryTableName
Conceptual name of table WebhookUsage in the database dictionary: WebhookUsage
Declaration
public const string DictionaryTableName = "WebhookUsage"
Field Value
Type | Description |
---|---|
System.String |
Properties
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
DictionaryTableNumber
Table number for table WebhookUsage in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database
Declaration
public int DictionaryTableNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Registered
Field 'registered' in table 'WebhookUsage': Dictionary type UtcDateTime, .NET type: DateTime
Registered when
Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RegisteredAssociateId
Field 'registered_associate_id' in table 'WebhookUsage': Dictionary type FK, .NET type: int
Registered by whom
Declaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
RegisteredAssociateId_InnerJoin_Associate
Generated join from the foreign key RegisteredAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> RegisteredAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
TodayCalls
Field 'today_calls' in table 'WebhookUsage': Dictionary type Int, .NET type: int
Number of times webhook has been invoked today
Declaration
public Int32FieldInfo TodayCalls { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TodayErrors
Field 'today_errors' in table 'WebhookUsage': Dictionary type Int, .NET type: int
Number of times webhook has returned error today
Declaration
public Int32FieldInfo TodayErrors { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TotalCalls
Field 'total_calls' in table 'WebhookUsage': Dictionary type Int, .NET type: int
Number of times webhook has been invoked since registered
Declaration
public Int32FieldInfo TotalCalls { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TotalErrors
Field 'total_errors' in table 'WebhookUsage': Dictionary type Int, .NET type: int
Number of times webhook has returned error since registered
Declaration
public Int32FieldInfo TotalErrors { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Updated
Field 'updated' in table 'WebhookUsage': Dictionary type UtcDateTime, .NET type: DateTime
Last updated when
Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
UpdatedAssociateId
Field 'updated_associate_id' in table 'WebhookUsage': Dictionary type FK, .NET type: int
Last updated by whom
Declaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
UpdatedAssociateId_InnerJoin_Associate
Generated join from the foreign key UpdatedAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> UpdatedAssociateId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
UpdatedCount
Field 'updatedCount' in table 'WebhookUsage': Dictionary type UShort, .NET type: short
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
WebhookId
Field 'webhook_id' in table 'WebhookUsage': Dictionary type FK, .NET type: int
Webhook that this is a counter for
Declaration
public Int32FieldInfo WebhookId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
WebhookId_InnerJoin_Webhook
Generated join from the foreign key WebhookId in this table, to its target table WebhookTableInfo.
Declaration
public TargetedInnerJoin<WebhookTableInfo> WebhookId_InnerJoin_Webhook { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<WebhookTableInfo> |
WebhookUsageId
Field 'webhookusage_id' in table 'WebhookUsage': Dictionary type PK, .NET type: int
Primary key
Declaration
public Int32FieldInfo WebhookUsageId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |