HtmlForgeX

API Reference

Class

EmailStatusTimeline

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Email-safe uptime/status timeline rendered as a strip of colored segments using table markup. Designed for simple operational reports in email clients without SVG/canvas.

Inheritance

Constructors

Methods

AddStatus 2 overloads
public EmailStatusTimeline AddStatus(EmailUptimeStatus status) #
Returns: EmailStatusTimeline

Adds a single segment.

Parameters

status HtmlForgeX.Email.EmailUptimeStatus requiredposition: 0
public EmailStatusTimeline AddStatus(EmailUptimeStatus status, Int32 count) #
Returns: EmailStatusTimeline

Adds multiple segments of the same status.

Parameters

status HtmlForgeX.Email.EmailUptimeStatus requiredposition: 0
count System.Int32 requiredposition: 1
public override String ToString() #
Returns: String
public EmailStatusTimeline WithGap(Int32 gapPx) #
Returns: EmailStatusTimeline

Sets segment gap.

Parameters

gapPx System.Int32 requiredposition: 0
public EmailStatusTimeline WithSegmentSize(Int32 widthPx, Int32 heightPx) #
Returns: EmailStatusTimeline

Sets segment sizing.

Parameters

widthPx System.Int32 requiredposition: 0
heightPx System.Int32 requiredposition: 1
public EmailStatusTimeline WithStatuses(params EmailUptimeStatus[] statuses) #
Returns: EmailStatusTimeline

Sets the statuses (each value is a segment).

Parameters

statuses HtmlForgeX.Email.EmailUptimeStatus[] requiredposition: 0

Properties

public List<EmailUptimeStatus> Statuses { get; } #

Statuses in timeline order (each item is one segment).

public Int32 SegmentWidthPx { get; set; } #

Segment width in pixels.

public Int32 SegmentHeightPx { get; set; } #

Segment height in pixels.

public Int32 SegmentGapPx { get; set; } #

Gap between segments in pixels.

public Boolean IncludeLegend { get; set; } #

Whether to render a legend below the strip.

public String LegendFontSize { get; set; } #

Legend font size.

public String LegendColor { get; set; } #

Legend text color.

public String OperationalColor { get; set; } #

Color for Operational.

public String DegradedColor { get; set; } #

Color for Degraded.

public String DowntimeColor { get; set; } #

Color for Downtime.

public String UnknownColor { get; set; } #

Color for Unknown.

public String NotMonitoredColor { get; set; } #

Color for NotMonitored.