Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceEventDto

Struct
📦 Aspire.Hosting v17.0.0

DTO for resource events returned from notification service.

type ResourceEventDto struct {
ResourceName string `json:"ResourceName"`
ResourceId string `json:"ResourceId"`
State *string `json:"State"`
StateStyle *string `json:"StateStyle"`
HealthStatus *string `json:"HealthStatus"`
ExitCode *float64 `json:"ExitCode"`
}

Fields

ResourceNamestring
The resource name.
ResourceIdstring
The unique resource ID.
State*stringoptional
The current state text.
StateStyle*stringoptional
The state style (e.g., "success", "warn", "error").
HealthStatus*stringoptional
The health status of the resource.
ExitCode*float64optional
The exit code if the resource has exited.