Skip to content
Docs Try Aspire

CustomResourceSnapshot Properties

Record Properties 17 members
An immutable snapshot of the state of a resource.
Commands Section titled Commands ImmutableArray<ResourceCommandSnapshot>
The commands available in the dashboard for this resource.
public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; }
CreationTimeStamp Section titled CreationTimeStamp nullable DateTime?
The creation timestamp of the resource.
public DateTime? CreationTimeStamp { get; init; }
EnvironmentVariables Section titled EnvironmentVariables ImmutableArray<EnvironmentVariableSnapshot>
The environment variables that should show up in the dashboard for this resource.
public ImmutableArray<EnvironmentVariableSnapshot> EnvironmentVariables { get; init; }
ExitCode Section titled ExitCode nullable int?
The exit code of the resource.
public int? ExitCode { get; init; }
HealthReports Section titled HealthReports ImmutableArray<HealthReportSnapshot>
The health reports for this resource.
public ImmutableArray<HealthReportSnapshot> HealthReports { get; }
May be zero or more. If there are no health reports, the resource is considered healthy so long as no heath checks are registered for the resource.
HealthStatus Section titled HealthStatus nullable HealthStatus??
Gets the health status of the resource.
public HealthStatus?? HealthStatus { get; }

This value is derived from CustomResourceSnapshot.HealthReports.

IconName Section titled IconName nullable string?
The custom icon name for the resource. This should be a valid FluentUI icon name. If not specified, the dashboard will use default icons based on the resource type.
public string? IconName { get; init; }
The custom icon variant for the resource.
public IconVariant? IconVariant { get; init; }
Whether this resource should be hidden in UI.
public bool IsHidden { get; init; }
Properties Section titled Properties ImmutableArray<ResourcePropertySnapshot>
The properties that should show up in the dashboard for this resource.
public ImmutableArray<ResourcePropertySnapshot> Properties { get; init; }
Relationships Section titled Relationships ImmutableArray<RelationshipSnapshot>
The relationships to other resources.
public ImmutableArray<RelationshipSnapshot> Relationships { get; init; }
ResourceType Section titled ResourceType string
The type of the resource.
public string ResourceType { get; init; }
StartTimeStamp Section titled StartTimeStamp nullable DateTime?
The start timestamp of the resource.
public DateTime? StartTimeStamp { get; init; }
Represents the state of the resource.
public ResourceStateSnapshot? State { get; init; }
StopTimeStamp Section titled StopTimeStamp nullable DateTime?
The stop timestamp of the resource.
public DateTime? StopTimeStamp { get; init; }
Urls Section titled Urls ImmutableArray<UrlSnapshot>
The URLs that should show up in the dashboard for this resource.
public ImmutableArray<UrlSnapshot> Urls { get; init; }
Volumes Section titled Volumes ImmutableArray<VolumeSnapshot>
The volumes that should show up in the dashboard for this resource.
public ImmutableArray<VolumeSnapshot> Volumes { get; init; }