Struct icinga2_api::types::common::checkable::IcingaCheckable
source · pub struct IcingaCheckable {Show 50 fields
pub custom_var: IcingaCustomVarObject,
pub acknowledgement: IcingaAcknowledgementType,
pub acknowledgement_expiry: Option<OffsetDateTime>,
pub acknowledgement_last_change: Option<OffsetDateTime>,
pub action_url: Option<String>,
pub check_attempt: u64,
pub check_command: IcingaCheckCommandName,
pub check_interval: Option<Duration>,
pub check_period: Option<IcingaTimePeriodName>,
pub check_timeout: Option<Duration>,
pub command_endpoint: Option<IcingaEndpointName>,
pub downtime_depth: u64,
pub enable_active_checks: bool,
pub enable_event_handler: bool,
pub enable_flapping: bool,
pub enable_notifications: bool,
pub enable_passive_checks: bool,
pub enable_perfdata: bool,
pub event_command: Option<IcingaEventCommandName>,
pub executions: Option<()>,
pub flapping: bool,
pub flapping_current: f64,
pub flapping_ignore_states: Option<Vec<IcingaHostOrServiceState>>,
pub flapping_last_change: Option<OffsetDateTime>,
pub flapping_threshold: f64,
pub flapping_threshold_low: f64,
pub flapping_threshold_high: f64,
pub force_next_check: bool,
pub force_next_notification: bool,
pub handled: bool,
pub icon_image: Option<String>,
pub icon_image_alt: Option<String>,
pub last_check: OffsetDateTime,
pub last_check_result: IcingaCheckResult,
pub last_hard_state_change: OffsetDateTime,
pub last_reachable: bool,
pub last_state_change: Option<OffsetDateTime>,
pub last_state_type: IcingaStateType,
pub last_state_unreachable: Option<OffsetDateTime>,
pub max_check_attempts: u64,
pub next_check: Option<OffsetDateTime>,
pub next_update: Option<OffsetDateTime>,
pub notes: Option<String>,
pub notes_url: Option<String>,
pub previous_state_change: Option<OffsetDateTime>,
pub problem: bool,
pub retry_interval: Option<Duration>,
pub severity: u64,
pub state_type: IcingaStateType,
pub volatile: bool,
}
Expand description
shared attributes on any checkable object (host and service)
Fields§
§custom_var: IcingaCustomVarObject
shared config object and custom variable fields
acknowledgement: IcingaAcknowledgementType
the type of acknowledgement (includes None)
acknowledgement_expiry: Option<OffsetDateTime>
when the acknowledgement expires
acknowledgement_last_change: Option<OffsetDateTime>
when the acknowledgement last changed
action_url: Option<String>
URL for actions for the checkable (host or service)
check_attempt: u64
the current check attempt number
check_command: IcingaCheckCommandName
the name of the check command
check_interval: Option<Duration>
the interval used for checks when the host/service is in a HARD state
check_period: Option<IcingaTimePeriodName>
name of a time period when this host/service is checked
check_timeout: Option<Duration>
check timeout
command_endpoint: Option<IcingaEndpointName>
the endpoint the command is executed on
downtime_depth: u64
number of active downtimes on the host/service
enable_active_checks: bool
whether active checks are enabled
enable_event_handler: bool
enabled event handlers for this host/service
enable_flapping: bool
whether flap detection is enabled
enable_notifications: bool
whether notifications are enabled
enable_passive_checks: bool
whether passive checks are enabled
enable_perfdata: bool
whether performance data processing is enabled
event_command: Option<IcingaEventCommandName>
the name of an event command that should be executed every time the host/service state changes or the host/service is in a SOFT state
executions: Option<()>
contains the state of execute-command executions
flapping: bool
whether the host/service is flapping between states
flapping_current: f64
current flapping value in percent
flapping_ignore_states: Option<Vec<IcingaHostOrServiceState>>
a list of states that should be ignored during flapping calculations
flapping_last_change: Option<OffsetDateTime>
when the last flapping change occurred
flapping_threshold: f64
deprecated and has no effect, replaced by flapping_threshold_low and flapping_threshold_high
flapping_threshold_low: f64
the flapping lower bound in percent for a host/service to be considered flapping
flapping_threshold_high: f64
the flapping upper bound in percent for a host/service to be considered flapping
force_next_check: bool
force the next check (execute it now)
force_next_notification: bool
force next notification (send it now)
handled: bool
whether the host/service problem is handled (downtime or acknowledgement)
icon_image: Option<String>
icon image for the host/service
icon_image_alt: Option<String>
icon image alt text for the host/service
last_check: OffsetDateTime
when the last check occurred
last_check_result: IcingaCheckResult
the result of the last check
last_hard_state_change: OffsetDateTime
when the last hard state change occurred
last_reachable: bool
whether the host/service was reachable when the last check occurred
last_state_change: Option<OffsetDateTime>
when the last state change occurred
last_state_type: IcingaStateType
the previous state type (soft/hard)
last_state_unreachable: Option<OffsetDateTime>
when the last UNREACHABLE state occurred
max_check_attempts: u64
the number of times the host/service is checked before changing into a new hard state
next_check: Option<OffsetDateTime>
when the next check occurs
next_update: Option<OffsetDateTime>
when the next check update is to be expected
notes: Option<String>
notes for the host/service
notes_url: Option<String>
URL for notes for the host/service
previous_state_change: Option<OffsetDateTime>
when the previous state change occurred
problem: bool
whether the host/service is considered to be in a problem state type (not up)
retry_interval: Option<Duration>
the interval used for checks when the host/service is in a SOFT state
severity: u64
pre-calculated value, higher means more severe
state_type: IcingaStateType
the current state type (soft/hard)
volatile: bool
treat all state changes as HARD changes
Trait Implementations§
source§impl Clone for IcingaCheckable
impl Clone for IcingaCheckable
source§fn clone(&self) -> IcingaCheckable
fn clone(&self) -> IcingaCheckable
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl CustomVarHolder for IcingaCheckable
impl CustomVarHolder for IcingaCheckable
source§fn custom_var_value(&self, name: &str) -> Option<&Value>
fn custom_var_value(&self, name: &str) -> Option<&Value>
source§fn custom_var_deserialized<T>(&self, name: &str) -> Option<T>where
T: DeserializeOwned,
fn custom_var_deserialized<T>(&self, name: &str) -> Option<T>where
T: DeserializeOwned,
source§impl Debug for IcingaCheckable
impl Debug for IcingaCheckable
source§impl<'de> Deserialize<'de> for IcingaCheckable
impl<'de> Deserialize<'de> for IcingaCheckable
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>,
source§impl PartialEq for IcingaCheckable
impl PartialEq for IcingaCheckable
source§impl Serialize for IcingaCheckable
impl Serialize for IcingaCheckable
impl StructuralPartialEq for IcingaCheckable
Auto Trait Implementations§
impl Freeze for IcingaCheckable
impl RefUnwindSafe for IcingaCheckable
impl Send for IcingaCheckable
impl Sync for IcingaCheckable
impl Unpin for IcingaCheckable
impl UnwindSafe for IcingaCheckable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)