Skip to main content

LogService

Struct LogService 

Source
pub struct LogService {
Show 18 fields pub base: Resource, pub service_enabled: Option<Option<Boolean>>, pub max_number_of_records: Option<Int64>, pub over_write_policy: Option<OverWritePolicy>, pub date_time: Option<Option<DateTimeOffset>>, pub date_time_local_offset: Option<Option<String>>, pub actions: Option<Actions>, pub status: Option<Status>, pub log_entry_type: Option<Option<LogEntryTypes>>, pub syslog_filters: Option<Option<Vec<SyslogFilter>>>, pub auto_dst_enabled: Option<Boolean>, pub log_purposes: Option<Option<Vec<LogPurpose>>>, pub oem_log_purpose: Option<Option<String>>, pub persistency: Option<Boolean>, pub overflow: Option<Boolean>, pub diagnostic_data_details: Option<Option<Vec<DiagnosticDataDetails>>>, pub auto_clear_resolved_entries: Option<Option<AutoClearResolvedEntries>>, pub entries: Option<NavProperty<LogEntryCollection>>,
}
Expand description

The LogService schema contains properties for monitoring and configuring a log service. When the Id property contains DeviceLog, the log contains device-resident log entries that follow the physical device when moved from system-to-system, and not a replication or subset of a system event log.

This resource shall represent a log service for a Redfish implementation. When the Id property contains DeviceLog, the log shall contain log entries that migrate with the device.

Fields§

§base: Resource

Base type

§service_enabled: Option<Option<Boolean>>

An indication of whether this service is enabled.

This property shall indicate whether this service is enabled.

§max_number_of_records: Option<Int64>

The maximum number of log entries that this service can have.

This property shall contain the maximum number of LogEntry resources in the LogEntryCollection resource for this service.

§over_write_policy: Option<OverWritePolicy>

The overwrite policy for this service that takes place when the log is full.

This property shall indicate the policy of the log service when the MaxNumberOfRecords has been reached.

§date_time: Option<Option<DateTimeOffset>>

The current date and time with UTC offset of the log service.

This property shall contain the current date and time with UTC offset of the log service.

§date_time_local_offset: Option<Option<String>>

The time offset from UTC that the DateTime property is in +HH:MM format.

This property shall contain the offset from UTC time that the DateTime property contains. If both DateTime and DateTimeLocalOffset are provided in modification requests, services shall apply DateTimeLocalOffset after DateTime is applied.

§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.

§log_entry_type: Option<Option<LogEntryTypes>>

The format of the log entries.

This property shall contain the value for the EntryType property of all LogEntry resources contained in the LogEntryCollection resource for this log service. If the service cannot determine or guarantee a single EntryType value for all LogEntry resources, this property shall contain the value Multiple.

§syslog_filters: Option<Option<Vec<SyslogFilter>>>

A list of syslog message filters to be logged locally.

This property shall describe all desired syslog messages to be logged locally. If this property contains an empty array, all messages shall be logged.

§auto_dst_enabled: Option<Boolean>

An indication of whether the log service is configured for automatic Daylight Saving Time (DST) adjustment.

This property shall indicate whether the log service is configured for automatic Daylight Saving Time (DST) adjustment. DST adjustment shall not modify the timestamp of existing log entries.

§log_purposes: Option<Option<Vec<LogPurpose>>>

The purposes of the log.

This property shall contain the purposes of the log.

§oem_log_purpose: Option<Option<String>>

The OEM-specified purpose of the log if LogPurposes contains OEM.

This property shall contain the OEM-specified purpose of the log if LogPurposes contains OEM.

§persistency: Option<Boolean>

Indicates whether the log service is persistent across a cold reset.

This property shall indicate whether the log service is persistent across a cold reset of the device.

§overflow: Option<Boolean>

Indicates whether the log service has overflowed.

This property shall indicate whether the log service has overflowed and is no longer able to store new logs.

§diagnostic_data_details: Option<Option<Vec<DiagnosticDataDetails>>>

The detailed information for the data collected with the CollectDiagnosticData action.

This property shall contain the detailed information for the data collected with the CollectDiagnosticData action.

§auto_clear_resolved_entries: Option<Option<AutoClearResolvedEntries>>

Indicates if this log service automatically clears the resolved log entries.

This property shall indicate if this log service automatically clears the resolved log entries found in the LogEntryCollection resource. If this property is not present, the value shall be assumed to be None.

§entries: Option<NavProperty<LogEntryCollection>>

The link to the log entry collection.

This property shall contain a link to a resource collection of type LogEntryCollection.

Trait Implementations§

Source§

impl Debug for LogService

Source§

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

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

impl<'de> Deserialize<'de> for LogService

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 LogService

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: Sized + Sync + Send + 'static + for<'de> Deserialize<'de>,

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

impl Expandable for LogService

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<LogService> for LogService

Source§

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

Reference to the enity type object.
Source§

impl Updatable<LogServiceUpdate> for LogService

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> 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: 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: 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
Source§

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