Class: Quark::MdkTracing::Protocol::LogEvent

Inherits:
Object
  • Object
show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_tracing/protocol.rb

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Constructor Details

#initializeLogEvent

Returns a new instance of LogEvent.



26
27
28
29
30
31
# File 'lib/mdk_tracing/protocol.rb', line 26

def initialize()
    
    super()

    nil
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def category
  @category
end

#contentTypeObject

Returns the value of attribute contentType.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def contentType
  @contentType
end

#contextObject

Returns the value of attribute context.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def context
  @context
end

#levelObject

Returns the value of attribute level.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def level
  @level
end

#nodeObject

Returns the value of attribute node.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def node
  @node
end

#textObject

Returns the value of attribute text.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def text
  @text
end

#timestampObject

Returns the value of attribute timestamp.



18
19
20
# File 'lib/mdk_tracing/protocol.rb', line 18

def timestamp
  @timestamp
end

Instance Method Details

#__init_fields__Object



118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/mdk_tracing/protocol.rb', line 118

def __init_fields__()
    
    super
    self.context = nil
    self.timestamp = nil
    self.node = nil
    self.level = nil
    self.category = nil
    self.contentType = nil
    self.text = nil

    nil
end

#_getClassObject



50
51
52
53
54
55
# File 'lib/mdk_tracing/protocol.rb', line 50

def _getClass()
    
    return "mdk_tracing.protocol.LogEvent"

    nil
end

#_getField(name) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/mdk_tracing/protocol.rb', line 57

def _getField(name)
    
    if ((name) == ("_json_type"))
        return ::Quark.mdk_tracing.protocol.LogEvent._json_type
    end
    if ((name) == ("context"))
        return (self).context
    end
    if ((name) == ("timestamp"))
        return (self).timestamp
    end
    if ((name) == ("node"))
        return (self).node
    end
    if ((name) == ("level"))
        return (self).level
    end
    if ((name) == ("category"))
        return (self).category
    end
    if ((name) == ("contentType"))
        return (self).contentType
    end
    if ((name) == ("text"))
        return (self).text
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/mdk_tracing/protocol.rb', line 88

def _setField(name, value)
    
    if ((name) == ("_json_type"))
        ::Quark.mdk_tracing.protocol.LogEvent._json_type = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("context"))
        (self).context = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_protocol.SharedContext }
    end
    if ((name) == ("timestamp"))
        (self).timestamp = ::DatawireQuarkCore.cast(value) { ::Integer }
    end
    if ((name) == ("node"))
        (self).node = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("level"))
        (self).level = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("category"))
        (self).category = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("contentType"))
        (self).contentType = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("text"))
        (self).text = ::DatawireQuarkCore.cast(value) { ::String }
    end

    nil
end

#getTimestampObject



36
37
38
39
40
41
# File 'lib/mdk_tracing/protocol.rb', line 36

def getTimestamp()
    
    return (self).timestamp

    nil
end

#toStringObject



43
44
45
46
47
48
# File 'lib/mdk_tracing/protocol.rb', line 43

def toString()
    
    return (((((((((((((("<LogEvent ") + ((@timestamp).to_s)) + (" ")) + (@context.toString())) + (", ")) + (@node)) + (", ")) + (@level)) + (", ")) + (@category)) + (", ")) + (@contentType)) + (", ")) + (@text)) + (">")

    nil
end