pub struct ProcessCheckResult {
pub exit_status: u64,
pub plugin_output: String,
pub performance_data: Option<Vec<IcingaPerformanceData>>,
pub check_command: Option<IcingaCommandLine>,
pub check_source: Option<String>,
pub execution_start: Option<OffsetDateTime>,
pub execution_end: Option<OffsetDateTime>,
pub ttl: Option<Duration>,
/* private fields */
}
Expand description
REST API Endpoint for the process-check-result call
Fields§
§exit_status: u64
For services: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN For hosts: 0=UP, 1=DOWN
plugin_output: String
the plugin output without the performance data
performance_data: Option<Vec<IcingaPerformanceData>>
the performance data
check_command: Option<IcingaCommandLine>
the check command
check_source: Option<String>
usually the name of the command endpoint
execution_start: Option<OffsetDateTime>
the start time of the check command execution
execution_end: Option<OffsetDateTime>
the end time of the check command execution
ttl: Option<Duration>
Time-to-live duration in seconds for this check result. The next expected check result is now + ttl where freshness checks are executed.
Implementations§
Source§impl ProcessCheckResult
impl ProcessCheckResult
Sourcepub fn builder() -> ProcessCheckResultBuilder
pub fn builder() -> ProcessCheckResultBuilder
create a new builder for this endpoint
this is usually the first step to calling this REST API endpoint
Trait Implementations§
Source§impl Clone for ProcessCheckResult
impl Clone for ProcessCheckResult
Source§fn clone(&self) -> ProcessCheckResult
fn clone(&self) -> ProcessCheckResult
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 ProcessCheckResult
impl Debug for ProcessCheckResult
Source§impl<'de> Deserialize<'de> for ProcessCheckResult
impl<'de> Deserialize<'de> for ProcessCheckResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RestApiEndpoint for ProcessCheckResult
impl RestApiEndpoint for ProcessCheckResult
Source§type RequestBody = ProcessCheckResult
type RequestBody = ProcessCheckResult
the type of the request body
Source§fn url(&self, base_url: &Url) -> Result<Url, Error>
fn url(&self, base_url: &Url) -> Result<Url, Error>
returns the URL to use for the request based on the base URL passed in
as a parameter Read more
Source§fn request_body(&self) -> Result<Option<Cow<'_, Self::RequestBody>>, Error>
fn request_body(&self) -> Result<Option<Cow<'_, Self::RequestBody>>, Error>
the request body which must be a JSON serializable type Read more
Source§impl Serialize for ProcessCheckResult
impl Serialize for ProcessCheckResult
impl RestApiResponse<ProcessCheckResult> for ResultsWrapper<StatusResponse>
Auto Trait Implementations§
impl Freeze for ProcessCheckResult
impl RefUnwindSafe for ProcessCheckResult
impl Send for ProcessCheckResult
impl Sync for ProcessCheckResult
impl Unpin for ProcessCheckResult
impl UnwindSafe for ProcessCheckResult
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