pub struct LogEvent {
pub action: Option<String>,
pub actor: Option<String>,
pub message: String,
pub new: Option<String>,
pub old: Option<String>,
pub source: Option<String>,
pub status: Option<String>,
pub target: Option<String>,
pub tenant_id: Option<String>,
pub timestamp: Option<String>,
}Expand description
A log event which conforms to the Pangea API
Fields§
§action: Option<String>This is used to record the action that occurred. Typical values seen in this field are “Create/Read/Update/Delete,” but could also include actions specific to your application.
actor: Option<String>The actor field is used to record who performed a specific action. This could be used to record the user ID, username, first and last name, or a combination of fields.
message: StringThis field is used to record a detailed account of what action occurred. This can be recorded as free-form text or as a JSON field. If JSON is provided the log viewer will render this field as JSON.
new: Option<String>Used in combination with “old,” new is used to record the value(s) of a record after a change has been made by the recorded action. If JSON is provided, the log viewer will render this field as JSON.
old: Option<String>This is usually used in combination with “new-value.” Old-value is used to record the value(s) of a record before any change made by the recorded action. If JSON is provided, the log viewer will render this field as JSON.
source: Option<String>The source field is for recording from where an activity occurred. This could be used to record a client’s IP address, country of origin, the application used, etc.
status: Option<String>Status is used to record whether or not the action was successful.
target: Option<String>This is used to record the specific record that was targeted by the recorded action. This could be an object ID, a username, or other identifying information.
tenant_id: Option<String>An optional client-supplied tenant_id
timestamp: Option<String>A Pangea-generated timestamp will always be provided with every log entry. This field is an optional client-supplied timestamp.