# ResourceEventDto

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.4.0`
- Kind: `type`
- Source: [GitHub](https://github.com/microsoft/aspire)

DTO for resource events returned from notification service.

## Definition

```typescript
type ResourceEventDto = {
  ResourceName: string;
  ResourceId: string;
  State?: string;
  StateStyle?: string;
  HealthStatus?: string;
  ExitCode?: number;
}
```

## Fields

- `ResourceName`: `string`
- `ResourceId`: `string`
- `State`: `string` `optional`
- `StateStyle`: `string` `optional`
- `HealthStatus`: `string` `optional`
- `ExitCode`: `number` `optional`
