Struct sep2_common::packages::log_events::LogEvent
source · pub struct LogEvent {
pub created_date_time: TimeType,
pub details: Option<String32>,
pub extended_data: Option<Uint32>,
pub function_set: FunctionSets,
pub log_event_code: Uint8,
pub log_event_id: Uint16,
pub log_event_pen: PENType,
pub profile_id: ProfileID,
pub href: Option<String>,
}
log_events
only.Fields§
§created_date_time: TimeType
The date and time that the event occurred.
details: Option<String32>
Human readable text that MAY be used to transmit additional details about the event. A host MAY remove this field when received.
extended_data: Option<Uint32>
May be used to transmit additional details about the event.
function_set: FunctionSets
If the profileID indicates this is IEEE 2030.5, the functionSet is defined by IEEE 2030.5 and SHALL be one of the values from the table below (IEEE 2030.5 function set identifiers). If the profileID is anything else, the functionSet is defined by the identified profile. 0 General (not specific to a function set) 1 Publish and Subscribe 2 End Device 3 Function Set Assignment 4 Response 5 Demand Response and Load Control 6 Metering 7 Pricing 8 Messaging 9 Billing 10 Prepayment 11 Distributed Energy Resources 12 Time 13 Software Download 14 Device Information 15 Power Status 16 Network Status 17 Log Event List 18 Configuration 19 Security All other values are reserved.
log_event_code: Uint8
An 8 bit unsigned integer. logEventCodes are scoped to a profile and a function set. If the profile is IEEE 2030.5, the logEventCode is defined by IEEE 2030.5 within one of the function sets of IEEE 2030.5. If the profile is anything else, the logEventCode is defined by the specified profile.
log_event_id: Uint16
This 16-bit value, combined with createdDateTime, profileID, and logEventPEN, should provide a reasonable level of uniqueness.
log_event_pen: PENType
The Private Enterprise Number(PEN) of the entity that defined the profileID, functionSet, and logEventCode of the logEvent. IEEE 2030.5-assigned logEventCodes SHALL use the IEEE 2030.5 PEN. Combinations of profileID, functionSet, and logEventCode SHALL have unique meaning within a logEventPEN and are defined by the owner of the PEN.
profile_id: ProfileID
The profileID identifies which profile (HA, BA, SE, etc) defines the following event information. 0 Not profile specific. 1 Vendor Defined 2 IEEE 2030.5 3 Home Automation 4 Building Automation All other values are reserved.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Ord for LogEvent
impl Ord for LogEvent
source§impl PartialEq<LogEvent> for LogEvent
impl PartialEq<LogEvent> for LogEvent
source§impl PartialOrd<LogEvent> for LogEvent
impl PartialOrd<LogEvent> for LogEvent
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more