pub struct ProcessCheckResultBuilder { /* private fields */ }
Expand description
Builder for ProcessCheckResult
.
Implementations§
Source§impl ProcessCheckResultBuilder
impl ProcessCheckResultBuilder
Sourcepub fn exit_status(&mut self, value: u64) -> &mut Self
pub fn exit_status(&mut self, value: u64) -> &mut Self
For services: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN For hosts: 0=UP, 1=DOWN
Sourcepub fn plugin_output(&mut self, value: String) -> &mut Self
pub fn plugin_output(&mut self, value: String) -> &mut Self
the plugin output without the performance data
Sourcepub fn performance_data(
&mut self,
value: Option<Vec<IcingaPerformanceData>>,
) -> &mut Self
pub fn performance_data( &mut self, value: Option<Vec<IcingaPerformanceData>>, ) -> &mut Self
the performance data
Sourcepub fn check_command(&mut self, value: Option<IcingaCommandLine>) -> &mut Self
pub fn check_command(&mut self, value: Option<IcingaCommandLine>) -> &mut Self
the check command
Sourcepub fn check_source(&mut self, value: Option<String>) -> &mut Self
pub fn check_source(&mut self, value: Option<String>) -> &mut Self
usually the name of the command endpoint
Sourcepub fn execution_start(&mut self, value: Option<OffsetDateTime>) -> &mut Self
pub fn execution_start(&mut self, value: Option<OffsetDateTime>) -> &mut Self
the start time of the check command execution
Sourcepub fn execution_end(&mut self, value: Option<OffsetDateTime>) -> &mut Self
pub fn execution_end(&mut self, value: Option<OffsetDateTime>) -> &mut Self
the end time of the check command execution
Sourcepub fn ttl(&mut self, value: Option<Duration>) -> &mut Self
pub fn ttl(&mut self, value: Option<Duration>) -> &mut Self
Time-to-live duration in seconds for this check result. The next expected check result is now + ttl where freshness checks are executed.
Sourcepub fn filter<VALUE: Into<IcingaFilter>>(&mut self, value: VALUE) -> &mut Self
pub fn filter<VALUE: Into<IcingaFilter>>(&mut self, value: VALUE) -> &mut Self
filter to target which host and/or service this check result applies to
Trait Implementations§
Source§impl Clone for ProcessCheckResultBuilder
impl Clone for ProcessCheckResultBuilder
Source§fn clone(&self) -> ProcessCheckResultBuilder
fn clone(&self) -> ProcessCheckResultBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcessCheckResultBuilder
impl Debug for ProcessCheckResultBuilder
Auto Trait Implementations§
impl Freeze for ProcessCheckResultBuilder
impl RefUnwindSafe for ProcessCheckResultBuilder
impl Send for ProcessCheckResultBuilder
impl Sync for ProcessCheckResultBuilder
impl Unpin for ProcessCheckResultBuilder
impl UnwindSafe for ProcessCheckResultBuilder
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
Mutably borrows from an owned value. Read more