pub struct SharedNotificationProfile {Show 30 fields
pub name: String,
pub all_business_components: Option<bool>,
pub all_business_services: Option<bool>,
pub all_hostgroups: Option<bool>,
pub all_keywords: Option<bool>,
pub all_servicegroups: Option<bool>,
pub business_component_availability_below: Option<Percentage>,
pub business_component_options: Option<String>,
pub business_component_renotification_interval: Option<u64>,
pub business_components: Option<ConfigRefMap<BSMComponentRef>>,
pub business_service_availability_below: Option<Percentage>,
pub business_service_options: Option<String>,
pub business_service_renotification_interval: Option<u64>,
pub business_services: Option<ConfigRefMap<BSMServiceRef>>,
pub host_notification_options: Option<String>,
pub hostgroups: Option<ConfigRefMap<HostGroupRef>>,
pub include_component_notes: Option<bool>,
pub include_service_notes: Option<bool>,
pub keywords: Option<ConfigRefMap<HashtagRef>>,
pub notification_level: Option<u64>,
pub notification_level_stop: Option<u64>,
pub notification_period: Option<TimePeriodRef>,
pub notificationmethods: Option<ConfigObjectMap<NotificationMethod>>,
pub renotification_interval_seconds: Option<u64>,
pub role: Option<RoleRef>,
pub service_notification_options: Option<String>,
pub servicegroups: Option<ConfigRefMap<ServiceGroupRef>>,
pub id: Option<u64>,
pub ref_: Option<String>,
pub uncommitted: Option<bool>,
}Expand description
Represents a shared notification profile in Opsview.
Shared Notification Profiles are very similar to Notification
Profiles
except that instead of being set up user by user, they are centrally configured and then made
available to all Users within a particular Role.
Shared Notification Profiles are not automatically applied to the Roles selected, they are only available for the users who are part of that role to activate and make use of.
This struct defines the structure for a SharedNotificationProfile entity as used in Opsview.
Fields§
§name: StringThe name of the SharedNotificationProfile.
all_business_components: Option<bool>Optional boolean indicating whether all BSMComponents are included in the SharedNotificationProfile.
Default: Some(false).
all_business_services: Option<bool>Optional boolean indicating whether all BSMServices are included in the SharedNotificationProfile.
Default: Some(false).
all_hostgroups: Option<bool>Optional boolean indicating whether all HostGroups are included in the SharedNotificationProfile.
Default: Some(false).
all_keywords: Option<bool>Optional boolean indicating whether all Hashtags are included in the SharedNotificationProfile.
Default: Some(false).
all_servicegroups: Option<bool>Optional boolean indicating whether all ServiceGroups are included in the SharedNotificationProfile.
Default: Some(false).
business_component_availability_below: Option<Percentage>Optional Percentage indicating the availability level below which BSMComponents will be
included in the SharedNotificationProfile.
Default: Some(Percentage::from(99.999)).
business_component_options: Option<String>Optional string indicating the options for BSMComponents in the SharedNotificationProfile.
Default: Some("f,i".to_string()).
business_component_renotification_interval: Option<u64>Optional interval in seconds indicating the renotification interval for BSMComponents
in the SharedNotificationProfile.
Default: Some(1800).
business_components: Option<ConfigRefMap<BSMComponentRef>>ConfigRefMap of BSMComponentRef objects associated with this SharedNotificationProfile.
business_service_availability_below: Option<Percentage>Optional Percentage indicating the availability level below which BSMServices will be
included in the SharedNotificationProfile.
Default: Some(Percentage::from(99.999)).
business_service_options: Option<String>Optional string indicating the options for BSMServices in the SharedNotificationProfile.
Default: Some("o,i".to_string()).
business_service_renotification_interval: Option<u64>Optional interval in seconds indicating the renotification interval for BSMServices
in the SharedNotificationProfile.
Default: Some(1800).
business_services: Option<ConfigRefMap<BSMServiceRef>>ConfigRefMap of BSMServiceRef objects associated with this SharedNotificationProfile.
host_notification_options: Option<String>Optional string indicating the host notification options for the SharedNotificationProfile.
Default: Some("d,r,f".to_string()).
hostgroups: Option<ConfigRefMap<HostGroupRef>>ConfigRefMap of HostGroupRef objects associated with this SharedNotificationProfile.
include_component_notes: Option<bool>Optional boolean indicating whether component notes are included.
Default: Some(false).
include_service_notes: Option<bool>Optional boolean indicating whether service notes are included.
Default: Some(false).
keywords: Option<ConfigRefMap<HashtagRef>>ConfigRefMap of HashtagRef objects associated with this SharedNotificationProfile.
notification_level: Option<u64>Optional integer indicating the notification level for the SharedNotificationProfile.
It seems as this field corresponds to the count at which this profile should start receiving notifications.
Default: Some(1).
notification_level_stop: Option<u64>Optional integer indicating the notification level stop for the SharedNotificationProfile.
It seems as this field corresponds to the count after which this profile should stop receiving notifications, with 0 representing no limit.
Default: Some(0).
notification_period: Option<TimePeriodRef>Optional TimePeriodRef object indicating the notification period for the SharedNotificationProfile.
notificationmethods: Option<ConfigObjectMap<NotificationMethod>>ConfigObjectMap of NotificationMethod objects associated with this SharedNotificationProfile.
renotification_interval_seconds: Option<u64>Optional integer indicating the renotification interval for the SharedNotificationProfile.
role: Option<RoleRef>Optional RoleRef object indicating the role for the SharedNotificationProfile.
service_notification_options: Option<String>Optional string indicating the service notification options for the SharedNotificationProfile.
Default: Some("w".to_string()).
servicegroups: Option<ConfigRefMap<ServiceGroupRef>>ConfigRefMap of ServiceGroupRef objects associated with this SharedNotificationProfile.
id: Option<u64>The unique identifier of the SharedNotificationProfile.
ref_: Option<String>A reference string unique to this SharedNotificationProfile.
uncommitted: Option<bool>A boolean indicating whether the SharedNotificationProfile is uncommitted.
Trait Implementations§
Source§fn clone(&self) -> SharedNotificationProfile
fn clone(&self) -> SharedNotificationProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn builder() -> Self::Builder
fn builder() -> Self::Builder
Returns a builder for constructing a SharedNotificationProfile object.
§Returns
A SharedNotificationProfileBuilder object.
Source§fn config_path() -> Option<String>
fn config_path() -> Option<String>
Provides the configuration path for a SharedNotificationProfile object within the Opsview
system.
§Returns
A string representing the API path where shared notification profiles are configured.
Source§fn unique_name(&self) -> String
fn unique_name(&self) -> String
Returns the unique name of the SharedNotificationProfile object.
This name is used to identify the SharedNotificationProfile when building the HashMap
for an ConfigObjectMap.
§Returns
A string representing the unique name of the SharedNotificationProfile.
type Builder = SharedNotificationProfileBuilder
fn minimal(name: &str) -> Result<Self, OpsviewConfigError>
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§fn from(shared_notification_profile: SharedNotificationProfile) -> Self
fn from(shared_notification_profile: SharedNotificationProfile) -> Self
Creates a new SharedNotificationProfileRef instance from a SharedNotificationProfile object.
§Arguments
shared_notification_profile- ASharedNotificationProfileobject containing the details of the shared notification profile.
§Returns
A SharedNotificationProfileRef object containing the reference to the shared notification profile.
fn name_regex(&self) -> Option<String>
fn validated_name(&self, name: &str) -> Result<String, OpsviewConfigError>
fn set_name(&mut self, new_name: &str) -> Result<String, OpsviewConfigError>
fn clear_readonly(&mut self)
Source§fn clone_new_name(
original: &Self,
new_name: &str,
) -> Result<Self, OpsviewConfigError>
fn clone_new_name( original: &Self, new_name: &str, ) -> Result<Self, OpsviewConfigError>
Source§async fn exists(
&self,
client: &OpsviewClient,
) -> Result<bool, OpsviewClientError>
async fn exists( &self, client: &OpsviewClient, ) -> Result<bool, OpsviewClientError>
Source§async fn fetch(
&self,
client: &OpsviewClient,
params: Option<Params>,
) -> Result<Self, OpsviewClientError>
async fn fetch( &self, client: &OpsviewClient, params: Option<Params>, ) -> Result<Self, OpsviewClientError>
Source§async fn remove(
&self,
client: &OpsviewClient,
) -> Result<Value, OpsviewClientError>
async fn remove( &self, client: &OpsviewClient, ) -> Result<Value, OpsviewClientError>
Source§async fn create(
&self,
client: &OpsviewClient,
) -> Result<Value, OpsviewClientError>
async fn create( &self, client: &OpsviewClient, ) -> Result<Value, OpsviewClientError>
Source§async fn update(
&self,
client: &OpsviewClient,
) -> Result<Value, OpsviewClientError>
async fn update( &self, client: &OpsviewClient, ) -> Result<Value, OpsviewClientError>
Auto Trait Implementations§
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§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
key and return true if they are equal.