[][src]Struct logdna_client::body::Line

pub struct Line {
    pub annotations: Option<KeyValueMap>,
    pub app: Option<String>,
    pub env: Option<String>,
    pub file: Option<String>,
    pub labels: Option<KeyValueMap>,
    pub level: Option<String>,
    pub meta: Option<Value>,
    pub line: String,
    pub timestamp: i64,
}

Defines a log line, marking none required fields as Option

Fields

annotations: Option<KeyValueMap>

The annotations field, which is a key value map

app: Option<String>

The app field, e.g hello-world-service

env: Option<String>

The env field, e.g kubernetes

file: Option<String>

The file field, e.g /var/log/syslog

labels: Option<KeyValueMap>

The labels field, which is a key value map

level: Option<String>

The level field, e.g INFO

meta: Option<Value>

The meta field, can be any json value

line: String

The line field, e.g 28/Jul/2006:10:27:32 -0300 LogDNA is awesome!

timestamp: i64

The timestamp of when the log line is constructed e.g, 342t783264

Methods

impl Line[src]

pub fn builder() -> LineBuilder[src]

create a new line builder

Trait Implementations

impl Clone for Line[src]

impl PartialEq<Line> for Line[src]

impl Debug for Line[src]

impl Serialize for Line[src]

impl<'de> Deserialize<'de> for Line[src]

Auto Trait Implementations

impl Send for Line

impl Unpin for Line

impl Sync for Line

impl RefUnwindSafe for Line

impl UnwindSafe for Line

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,