pub enum ActionParameterEnum {
TargetName,
AlarmName,
OldStatus,
NewStatus,
TriggeringSummary,
DeclaringSummary,
EventDescription,
Target,
Alarm,
Other_(String),
}Expand description
These constant strings can be used as parameters in user-specified email subject and body templates as well as in scripts.
The action processor
in VirtualCenter substitutes the run-time values for the parameters.
For example, an email subject provided by the client could be the string:
Alarm - {alarmName} Description:\n{eventDescription}.
Or a script action provided could be: myScript {alarmName}.
Possible values:
targetName: The name of the entity where the alarm is triggered.alarmName: The name of the triggering alarm.oldStatus: The status prior to the alarm being triggered.newStatus: The status after the alarm is triggered.triggeringSummary: A summary of information involved in triggering the alarm.declaringSummary: A summary of declarations made during the triggering of the alarm.eventDescription: The event description.target: The object of the entity where the alarm is associated.alarm: The object of the triggering alarm.
Variants§
TargetName
AlarmName
OldStatus
NewStatus
TriggeringSummary
DeclaringSummary
EventDescription
Target
Alarm
Other_(String)
This variant handles values not known at compile time.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ActionParameterEnum
impl AsRef<str> for ActionParameterEnum
Source§impl Clone for ActionParameterEnum
impl Clone for ActionParameterEnum
Source§fn clone(&self) -> ActionParameterEnum
fn clone(&self) -> ActionParameterEnum
Returns a duplicate 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 ActionParameterEnum
impl Debug for ActionParameterEnum
Source§impl Deserialize for ActionParameterEnum
impl Deserialize for ActionParameterEnum
Source§impl Display for ActionParameterEnum
impl Display for ActionParameterEnum
Source§impl<'a> From<&'a ActionParameterEnum> for &'a str
impl<'a> From<&'a ActionParameterEnum> for &'a str
Source§fn from(value: &'a ActionParameterEnum) -> Self
fn from(value: &'a ActionParameterEnum) -> Self
Converts to this type from the input type.
Source§impl Hash for ActionParameterEnum
impl Hash for ActionParameterEnum
Source§impl PartialEq for ActionParameterEnum
impl PartialEq for ActionParameterEnum
impl Eq for ActionParameterEnum
impl StructuralPartialEq for ActionParameterEnum
Auto Trait Implementations§
impl Freeze for ActionParameterEnum
impl RefUnwindSafe for ActionParameterEnum
impl Send for ActionParameterEnum
impl Sync for ActionParameterEnum
impl Unpin for ActionParameterEnum
impl UnsafeUnpin for ActionParameterEnum
impl UnwindSafe for ActionParameterEnum
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
Source§impl<To, T> CastInto<To> for T
impl<To, T> CastInto<To> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.