# DiagnosticEvent Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/)

## DiagnosticEvent(string, object?, DateTimeOffset) {#constructor-string-object-nullable-system-datetimeoffset-3bd8fa19}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.diagnostics.diagnosticevent/constructors/constructor-string-object-nullable-system-datetimeoffset-3bd8fa19/)

```csharp
public DiagnosticEvent(string Name, object? Payload, DateTimeOffset Timestamp)
```

Represents a captured diagnostic event with its name and payload.

### Parameters

- `Name` (`string`): The name of the event.
- `Payload` (`object?`): The event payload object.
- `Timestamp` (`DateTimeOffset`): The time the event was captured.
