# DiagnosticEvent.DiagnosticEvent(string, object?, DateTimeOffset)

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

```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.
