Skip to content
DocsTry Aspire
DocsTry

CustomResourceSnapshot Properties

RecordProperties17 members
An immutable snapshot of the state of a resource.
CommandsSection titled CommandsImmutableArray<ResourceCommandSnapshot>
The commands available in the dashboard for this resource.
public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; }
CreationTimeStampSection titled CreationTimeStampnullableDateTime?
The creation timestamp of the resource.
public DateTime? CreationTimeStamp { get; init; }
EnvironmentVariablesSection titled EnvironmentVariablesImmutableArray<EnvironmentVariableSnapshot>
The environment variables that should show up in the dashboard for this resource.
public ImmutableArray<EnvironmentVariableSnapshot> EnvironmentVariables { get; init; }
ExitCodeSection titled ExitCodenullableint?
The exit code of the resource.
public int? ExitCode { get; init; }
HealthReportsSection titled HealthReportsImmutableArray<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.
HealthStatusSection titled HealthStatusnullableHealthStatus??
Gets the health status of the resource.
public HealthStatus?? HealthStatus { get; }

This value is derived from CustomResourceSnapshot.HealthReports.

IconNameSection titled IconNamenullablestring?
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; }
PropertiesSection titled PropertiesImmutableArray<ResourcePropertySnapshot>
The properties that should show up in the dashboard for this resource.
public ImmutableArray<ResourcePropertySnapshot> Properties { get; init; }
RelationshipsSection titled RelationshipsImmutableArray<RelationshipSnapshot>
The relationships to other resources.
public ImmutableArray<RelationshipSnapshot> Relationships { get; init; }
ResourceTypeSection titled ResourceTypestring
The type of the resource.
public string ResourceType { get; init; }
StartTimeStampSection titled StartTimeStampnullableDateTime?
The start timestamp of the resource.
public DateTime? StartTimeStamp { get; init; }
Represents the state of the resource.
public ResourceStateSnapshot? State { get; init; }
StopTimeStampSection titled StopTimeStampnullableDateTime?
The stop timestamp of the resource.
public DateTime? StopTimeStamp { get; init; }
UrlsSection titled UrlsImmutableArray<UrlSnapshot>
The URLs that should show up in the dashboard for this resource.
public ImmutableArray<UrlSnapshot> Urls { get; init; }
VolumesSection titled VolumesImmutableArray<VolumeSnapshot>
The volumes that should show up in the dashboard for this resource.
public ImmutableArray<VolumeSnapshot> Volumes { get; init; }