Class AuditItem
An audit item
Inheritance
Namespace: AzureFromTheTrenches.Commanding.Abstractions.Model
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public class AuditItem : object
Fields
| Improve this Doc View SourceExecutionType
The type used to identify post execution audit items
Declaration
public const string ExecutionType = null
Field Value
Type | Description |
---|---|
System.String |
PostDispatchType
The code used to identify post dispatch audit items
Declaration
public const string PostDispatchType = null
Field Value
Type | Description |
---|---|
System.String |
PreDispatchType
The code used to identify pre dispatch audit items
Declaration
public const string PreDispatchType = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceAdditionalProperties
Any additional properties set by enrichers
Declaration
public Dictionary<string, string> AdditionalProperties { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> |
CommandId
The ID of the command
Declaration
public string CommandId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CommandType
The short type name of the command
Declaration
public string CommandType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CommandTypeFullName
The full type name of the command
Declaration
public string CommandTypeFullName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CorrelationId
Correlation ID from the command dispatch context
Declaration
public string CorrelationId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Depth
The depth of the command from the dispatch context
Declaration
public int Depth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DispatchedUtc
The date and time the command was dispatched
Declaration
public DateTime DispatchedUtc { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
DispatchTimeMs
The time taken to dispatch the command (will be null in execution audit items or if metrics are disabled)
Declaration
public long? DispatchTimeMs { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ExecutedSuccessfully
Was the command executed successfully - will be null in the dispatch stages
Declaration
public bool? ExecutedSuccessfully { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
ExecutionTimeMs
The time taken to execute the command (will be null in dispatch audit items or if metrics are disabled)
Declaration
public long? ExecutionTimeMs { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
SerializedCommand
A serialized version of the command
Declaration
public string SerializedCommand { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of the audit item (pre-dispatch, post-dispatch, execution)
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |