Struct sentry_rs::Event
[−]
[src]
pub struct Event { pub event_id: String, pub message: String, pub timestamp: String, pub level: String, pub logger: String, pub platform: String, pub sdk: SDK, pub device: Device, pub culprit: Option<String>, pub server_name: Option<String>, pub stacktrace: Option<Vec<StackFrame>>, pub release: Option<String>, pub tags: BTreeMap<String, String>, pub environment: Option<String>, pub modules: BTreeMap<String, String>, pub extra: BTreeMap<String, String>, pub fingerprint: Vec<String>, }
A Sentry Event.
Fields
event_id: String
The event id of this event.
message: String
The message of this event.
timestamp: String
The timestamp of this event.
level: String
The level of warning for this event.
logger: String
The logger for this event.
platform: String
The platform for this event.
sdk: SDK
The SDK of this event.
device: Device
The Device of this event.
culprit: Option<String>
The culprit of this event.
server_name: Option<String>
The server name for this event.
stacktrace: Option<Vec<StackFrame>>
The stacktrace of this event.
release: Option<String>
The release of this event.
The tags of this event.
environment: Option<String>
The environment this event occured in.
modules: BTreeMap<String, String>
The modules of this event.
extra: BTreeMap<String, String>
The extra info for this event.
fingerprint: Vec<String>
The fingerprints of this event.
Methods
impl Event
[src]
fn to_string(&self) -> String
Turns an event into a string. Due it a special way this way, because renaming a value of a value inside of serde isn't really friendly, and just feels weird if they made it possible. this method is super ugly right now, but it works.
TODO: Refactor All this.
impl Event
[src]
fn new(logger: &str,
level: &str,
message: &str,
culprit: Option<&str>,
fingerprint: Option<Vec<String>>,
server_name: Option<&str>,
stacktrace: Option<Vec<StackFrame>>,
release: Option<&str>,
environment: Option<&str>)
-> Event
level: &str,
message: &str,
culprit: Option<&str>,
fingerprint: Option<Vec<String>>,
server_name: Option<&str>,
stacktrace: Option<Vec<StackFrame>>,
release: Option<&str>,
environment: Option<&str>)
-> Event
A Wrapper around creating a brand new event. May be a little bit of a perf hinderance,
if You have Strings
, since this method asks for &str
(and then turns them into Strings).
But if you want to use static strings, or need to pass in one this can be :totes: helpful.
fn add_tag(&mut self, key: String, value: String)
Adds a tag to this event.
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more