pub struct EventData<CustomDataType = NoCustomData> {Show 15 fields
pub actual_value: String,
pub cause: Option<i64>,
pub cleared: Option<bool>,
pub component: Component<CustomDataType>,
pub custom_data: Option<CustomDataType>,
pub event_id: i64,
pub event_notification_type: EventNotificationEnum,
pub severity: Option<i64>,
pub tech_code: Option<String<50usize>>,
pub tech_info: Option<String<500usize>>,
pub timestamp: OcppTimestamp,
pub transaction_id: Option<String<36usize>>,
pub trigger: EventTriggerEnum,
pub variable: Variable<CustomDataType>,
pub variable_monitoring_id: Option<i64>,
}Expand description
Class to report an event notification for a component-variable.
Fields§
§actual_value: StringActual value (attributeType Actual) of the variable.
The Configuration Variable <<configkey-reporting-value-size,ReportingValueSize>> can be used to limit GetVariableResult.attributeValue, VariableAttribute.value and EventData.actualValue. The max size of these values will always remain equal.
cause: Option<i64>Refers to the Id of an event that is considered to be the cause for this event.
cleared: Option<bool>Cleared is set to true to report the clearing of a monitored situation, i.e. a ‘return to normal’.
component: Component<CustomDataType>§custom_data: Option<CustomDataType>§event_id: i64Identifies the event. This field can be referred to as a cause by other events.
event_notification_type: EventNotificationEnum§severity: Option<i64>(2.1) Severity associated with the monitor in variableMonitoringId or with the hardwired notification.
tech_code: Option<String<50usize>>Technical (error) code as reported by component.
tech_info: Option<String<500usize>>Technical detail information as reported by component.
timestamp: OcppTimestampTimestamp of the moment the report was generated.
transaction_id: Option<String<36usize>>If an event notification is linked to a specific transaction, this field can be used to specify its transactionId.
trigger: EventTriggerEnum§variable: Variable<CustomDataType>§variable_monitoring_id: Option<i64>Identifies the VariableMonitoring which triggered the event.