Skip to main content

EventService

Struct EventService 

Source
pub struct EventService {
Show 21 fields pub base: Resource, pub service_enabled: Option<Option<Boolean>>, pub delivery_retry_attempts: Option<Int64>, pub delivery_retry_interval_seconds: Option<Int64>, pub event_types_for_subscription: Option<Vec<EventType>>, pub actions: Option<Actions>, pub status: Option<Status>, pub server_sent_event_uri: Option<String>, pub registry_prefixes: Option<Option<Vec<String>>>, pub resource_types: Option<Option<Vec<String>>>, pub subordinate_resources_supported: Option<Option<Boolean>>, pub event_format_types: Option<Option<Vec<EventFormatType>>>, pub sse_filter_properties_supported: Option<SseFilterPropertiesSupported>, pub smtp: Option<Smtp>, pub include_origin_of_condition_supported: Option<Option<Boolean>>, pub exclude_registry_prefix: Option<Boolean>, pub exclude_message_id: Option<Boolean>, pub severities: Option<Option<Vec<Health>>>, pub sse_include_origin_of_condition_supported: Option<Option<Boolean>>, pub origin_resources_supported: Option<Option<Boolean>>, pub subscriptions: Option<ReferenceLeaf>,
}
Expand description

The EventService schema contains properties for managing event subscriptions and generates the events sent to subscribers. The resource has links to the actual collection of subscriptions, which are called event destinations.

This resource shall represent an event service for a Redfish implementation.

Fields§

§base: Resource

Base type

§service_enabled: Option<Option<Boolean>>

An indication of whether this service is enabled. If false, events are no longer published, new SSE connections cannot be established, and existing SSE connections are terminated.

This property shall indicate whether this service is enabled. If false, events are no longer published, new SSE connections cannot be established, and existing SSE connections are terminated.

§delivery_retry_attempts: Option<Int64>

The number of times that the POST of an event is retried before the subscription terminates or is suspended. This retry occurs at the service level, which means that the HTTP POST to the event destination fails with an HTTP 4XX or 5XX status code or an HTTP timeout occurs this many times before the event destination subscription terminates or is suspended.

This property shall contain the number of times that the POST of an event is retried before the subscription terminates or is suspended. This retry occurs at the service level, which means that the HTTP POST to the event destination fails with an HTTP 4XX or 5XX status code or an HTTP timeout occurs this many times before the event destination subscription terminates or is suspended. The service shall delete the EventDestination resource to terminate the subscription. The service shall set the value of the State property within Status of the EventDestination resource to Disabled for a suspended subscription.

§delivery_retry_interval_seconds: Option<Int64>

The interval, in seconds, between retry attempts for sending any event.

This property shall contain the interval, in seconds, between the retry attempts for any event sent to the subscription destination.

§event_types_for_subscription: Option<Vec<EventType>>

The types of events to which a client can subscribe.

This property shall contain the types of events to which a client can subscribe. The semantics associated with the enumeration values are defined in the Redfish Specification.

§actions: Option<Actions>

The available actions for this resource.

This property shall contain the available actions for this resource.

§status: Option<Status>

The status and health of the resource and its subordinate or dependent resources.

This property shall contain any status or health properties of the resource.

§server_sent_event_uri: Option<String>

The link to a URI for receiving Server-Sent Event representations for the events that this service generates.

This property shall contain a URI that specifies an HTML5 Server-Sent Event-conformant endpoint.

§registry_prefixes: Option<Option<Vec<String>>>

The list of the prefixes of the message registries that can be used for the RegistryPrefixes or ExcludeRegistryPrefixes properties on a subscription. If this property is absent or contains an empty array, the service does not support registry prefix-based subscriptions.

This property shall contain the array of the prefixes of the message registries that shall be allowed or excluded for an event subscription.

§resource_types: Option<Option<Vec<String>>>

The list of @odata.type values, or schema names, that can be specified in the ResourceTypes array in a subscription. If this property is absent or contains an empty array, the service does not support resource type-based subscriptions.

This property shall specify an array of the valid @odata.type values that can be used for an event subscription.

§subordinate_resources_supported: Option<Option<Boolean>>

An indication of whether the service supports the SubordinateResources property on both event subscriptions and generated events.

This property shall indicate whether the service supports the SubordinateResources property on both event subscriptions and generated events.

§event_format_types: Option<Option<Vec<EventFormatType>>>

The content types of the message that this service can send to the event destination.

This property shall contain the content types of the message that this service can send to the event destination. If this property is not present, the EventFormatType shall be assumed to be Event.

§sse_filter_properties_supported: Option<SseFilterPropertiesSupported>

The set of properties that are supported in the $filter query parameter for the ServerSentEventUri.

This property shall contain the properties that are supported in the $filter query parameter for the URI indicated by the ServerSentEventUri property, as described by the Redfish Specification.

§smtp: Option<Smtp>

Settings for SMTP event delivery.

This property shall contain settings for SMTP event delivery.

§include_origin_of_condition_supported: Option<Option<Boolean>>

An indication of whether the service supports including the resource payload of the origin of condition in the event payload.

This property shall indicate whether the service supports including the resource payload of the origin of condition in the event payload. If true, event subscriptions are allowed to specify the IncludeOriginOfCondition property.

§exclude_registry_prefix: Option<Boolean>

An indication of whether the service supports filtering by the ExcludeRegistryPrefixes property.

This property shall indicate whether this service supports filtering by the ExcludeRegistryPrefixes property.

§exclude_message_id: Option<Boolean>

An indication of whether the service supports filtering by the ExcludeMessageIds property.

This property shall indicate whether this service supports filtering by the ExcludeMessageIds property.

§severities: Option<Option<Vec<Health>>>

The list of severities that can be specified in the Severities array in a subscription.

This property shall specify an array of the allowable severities that can be used for an event subscription. If this property is absent or contains an empty array, the service does not support severity-based subscriptions.

§sse_include_origin_of_condition_supported: Option<Option<Boolean>>

An indication of whether the service supports the includeoriginofcondition query parameter for the ServerSentEventUri.

This property shall indicate whether the service supports the includeoriginofcondition query parameter for the ServerSentEventUri, as described by the Redfish Specification.

§origin_resources_supported: Option<Option<Boolean>>

An indication of whether the service supports filtering by the OriginResources property.

This property shall indicate whether this service supports filtering by the OriginResources property.

§subscriptions: Option<ReferenceLeaf>

Trait Implementations§

Source§

impl Debug for EventService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventService

Source§

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 EntityTypeRef for EventService

Source§

fn odata_id(&self) -> &ODataId

Value of @odata.id field of the Entity.
Source§

fn etag(&self) -> Option<&ODataETag>

Value of @odata.etag field of the Entity.
Source§

fn refresh<B>( &self, bmc: &B, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc, Self: for<'de> Deserialize<'de> + 'static,

Refresh the entity by fetching it again from the BMC.
Source§

impl Expandable for EventService

Source§

fn expand<B>( &self, bmc: &B, query: ExpandQuery, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Expand the entity according to the provided query.
Source§

impl RedfishSettings<EventService> for EventService

Source§

fn settings_object(&self) -> Option<NavProperty<Self>>

Reference to the enity type object.
Source§

impl Send for EventService

SAFETY: All generated data types are Send

Source§

impl Sync for EventService

SAFETY: All generated data types are Sync

Source§

impl Updatable<EventServiceUpdate> for EventService

Source§

fn update<B>( &self, bmc: &B, update: &V, ) -> impl Future<Output = Result<ModificationResponse<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Update an entity using update as payload.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more