Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

UpdateCommandStateResourceSnapshot

Struct
📦 Aspire.Hosting v17.0.0

Resource snapshot data exposed to polyglot command state callbacks.

type UpdateCommandStateResourceSnapshot struct {
ResourceType string `json:"ResourceType"`
State *string `json:"State"`
StateStyle *string `json:"StateStyle"`
HealthStatus *HealthStatus `json:"HealthStatus"`
ExitCode *float64 `json:"ExitCode"`
}

Fields

ResourceTypestring
The type of the resource.
State*stringoptional
The current lifecycle state text for the resource.
StateStyle*stringoptional
The display style for the current lifecycle state.
HealthStatus*HealthStatusoptional
The current health status for the resource.
ExitCode*float64optional
The exit code of the resource.