pub struct IssueBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> IssueBuilder<S>
impl<S: State> IssueBuilder<S>
Sourcepub fn build(self) -> Issuewhere
S: IsComplete,
pub fn build(self) -> Issuewhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn active(self, value: bool) -> IssueBuilder<SetActive<S>>where
S::Active: IsUnset,
pub fn active(self, value: bool) -> IssueBuilder<SetActive<S>>where
S::Active: IsUnset,
Required.
Whether the condition behind this issue is still ongoing. Set to
false when the source reports the condition has cleared.
Sourcepub fn created_at(self, value: Timestamp) -> IssueBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
pub fn created_at(self, value: Timestamp) -> IssueBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
Required.
When this issue was first created.
Sourcepub fn description(self, value: String) -> IssueBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(self, value: String) -> IssueBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<String>,
) -> IssueBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<String>,
) -> IssueBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn device_id(self, value: Uuid) -> IssueBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
pub fn device_id(self, value: Uuid) -> IssueBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
Sourcepub fn maybe_device_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
pub fn maybe_device_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
Sourcepub fn first_seen(self, value: Timestamp) -> IssueBuilder<SetFirstSeen<S>>where
S::FirstSeen: IsUnset,
pub fn first_seen(self, value: Timestamp) -> IssueBuilder<SetFirstSeen<S>>where
S::FirstSeen: IsUnset,
Required.
When this issue was first reported.
Sourcepub fn id(self, value: Uuid) -> IssueBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: Uuid) -> IssueBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Unique identifier for this issue.
Sourcepub fn last_seen(self, value: Timestamp) -> IssueBuilder<SetLastSeen<S>>where
S::LastSeen: IsUnset,
pub fn last_seen(self, value: Timestamp) -> IssueBuilder<SetLastSeen<S>>where
S::LastSeen: IsUnset,
Required.
When this issue was most recently reported or updated.
Sourcepub fn message(self, value: String) -> IssueBuilder<SetMessage<S>>where
S::Message: IsUnset,
pub fn message(self, value: String) -> IssueBuilder<SetMessage<S>>where
S::Message: IsUnset,
Required.
The full body text describing the issue.
Sourcepub fn ref_(self, value: String) -> IssueBuilder<SetRef<S>>where
S::Ref: IsUnset,
pub fn ref_(self, value: String) -> IssueBuilder<SetRef<S>>where
S::Ref: IsUnset,
Required.
A caller-chosen identifier for this issue within its source. The
same (source, ref) pair reported again updates this issue instead
of creating a new one.
Sourcepub fn resolved_at(self, value: Timestamp) -> IssueBuilder<SetResolvedAt<S>>where
S::ResolvedAt: IsUnset,
pub fn resolved_at(self, value: Timestamp) -> IssueBuilder<SetResolvedAt<S>>where
S::ResolvedAt: IsUnset,
Sourcepub fn maybe_resolved_at(
self,
value: Option<Timestamp>,
) -> IssueBuilder<SetResolvedAt<S>>where
S::ResolvedAt: IsUnset,
pub fn maybe_resolved_at(
self,
value: Option<Timestamp>,
) -> IssueBuilder<SetResolvedAt<S>>where
S::ResolvedAt: IsUnset,
Sourcepub fn resolved_by(self, value: String) -> IssueBuilder<SetResolvedBy<S>>where
S::ResolvedBy: IsUnset,
pub fn resolved_by(self, value: String) -> IssueBuilder<SetResolvedBy<S>>where
S::ResolvedBy: IsUnset,
Sourcepub fn maybe_resolved_by(
self,
value: Option<String>,
) -> IssueBuilder<SetResolvedBy<S>>where
S::ResolvedBy: IsUnset,
pub fn maybe_resolved_by(
self,
value: Option<String>,
) -> IssueBuilder<SetResolvedBy<S>>where
S::ResolvedBy: IsUnset,
Sourcepub fn resolved_reason(
self,
value: String,
) -> IssueBuilder<SetResolvedReason<S>>where
S::ResolvedReason: IsUnset,
pub fn resolved_reason(
self,
value: String,
) -> IssueBuilder<SetResolvedReason<S>>where
S::ResolvedReason: IsUnset,
Sourcepub fn maybe_resolved_reason(
self,
value: Option<String>,
) -> IssueBuilder<SetResolvedReason<S>>where
S::ResolvedReason: IsUnset,
pub fn maybe_resolved_reason(
self,
value: Option<String>,
) -> IssueBuilder<SetResolvedReason<S>>where
S::ResolvedReason: IsUnset,
Sourcepub fn server_group_id(self, value: Uuid) -> IssueBuilder<SetServerGroupId<S>>where
S::ServerGroupId: IsUnset,
pub fn server_group_id(self, value: Uuid) -> IssueBuilder<SetServerGroupId<S>>where
S::ServerGroupId: IsUnset,
Optional (Some / Option setters).
The server group this issue is attached to, for a control-plane issue
(e.g. backup corruption, a failed preflight check) that isn’t tied to
any single server. None for an ordinary server-scoped issue.
Group-scoped issues are always considered even if an individual
server in the group has monitoring turned off.
Sourcepub fn maybe_server_group_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetServerGroupId<S>>where
S::ServerGroupId: IsUnset,
pub fn maybe_server_group_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetServerGroupId<S>>where
S::ServerGroupId: IsUnset,
Optional (Some / Option setters).
The server group this issue is attached to, for a control-plane issue
(e.g. backup corruption, a failed preflight check) that isn’t tied to
any single server. None for an ordinary server-scoped issue.
Group-scoped issues are always considered even if an individual
server in the group has monitoring turned off.
Sourcepub fn server_id(self, value: Uuid) -> IssueBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
pub fn server_id(self, value: Uuid) -> IssueBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
Sourcepub fn maybe_server_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
pub fn maybe_server_id(
self,
value: Option<Uuid>,
) -> IssueBuilder<SetServerId<S>>where
S::ServerId: IsUnset,
Sourcepub fn severity(self, value: Severity) -> IssueBuilder<SetSeverity<S>>where
S::Severity: IsUnset,
pub fn severity(self, value: Severity) -> IssueBuilder<SetSeverity<S>>where
S::Severity: IsUnset,
Required.
The issue’s current severity.
Sourcepub fn snoozed_until(self, value: Timestamp) -> IssueBuilder<SetSnoozedUntil<S>>where
S::SnoozedUntil: IsUnset,
pub fn snoozed_until(self, value: Timestamp) -> IssueBuilder<SetSnoozedUntil<S>>where
S::SnoozedUntil: IsUnset,
Sourcepub fn maybe_snoozed_until(
self,
value: Option<Timestamp>,
) -> IssueBuilder<SetSnoozedUntil<S>>where
S::SnoozedUntil: IsUnset,
pub fn maybe_snoozed_until(
self,
value: Option<Timestamp>,
) -> IssueBuilder<SetSnoozedUntil<S>>where
S::SnoozedUntil: IsUnset,
Sourcepub fn source(self, value: String) -> IssueBuilder<SetSource<S>>where
S::Source: IsUnset,
pub fn source(self, value: String) -> IssueBuilder<SetSource<S>>where
S::Source: IsUnset,
Required.
Identifies what raised this issue — a healthcheck, a backup pipeline,
an operator, etc. Used together with ref to detect repeat reports
of the same underlying problem.
Sourcepub fn updated_at(self, value: Timestamp) -> IssueBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
pub fn updated_at(self, value: Timestamp) -> IssueBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
Required.
When this issue was last modified.
Auto Trait Implementations§
impl<S> Freeze for IssueBuilder<S>
impl<S> RefUnwindSafe for IssueBuilder<S>
impl<S> Send for IssueBuilder<S>
impl<S> Sync for IssueBuilder<S>
impl<S> Unpin for IssueBuilder<S>
impl<S> UnsafeUnpin for IssueBuilder<S>
impl<S> UnwindSafe for IssueBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more