Class: GraphQL::Tracing::MonitorTrace::Monitor::Event
- Inherits:
-
Object
- Object
- GraphQL::Tracing::MonitorTrace::Monitor::Event
- Defined in:
- lib/graphql/tracing/monitor_trace.rb
Direct Known Subclasses
AppsignalTrace::AppsignalMonitor::Event, DataDogTrace::DatadogMonitor::Event, NewRelicTrace::NewrelicMonitor::Event, PrometheusTrace::PrometheusMonitor::Event, ScoutTrace::ScoutMonitor::Event, SentryTrace::SentryMonitor::Event, StatsdTrace::StatsdMonitor::Event
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#finish ⇒ Object
-
#initialize(monitor, keyword, object) ⇒ Event
constructor
A new instance of Event.
-
#start ⇒ Object
Constructor Details
#initialize(monitor, keyword, object) ⇒ Event
Returns a new instance of Event.
69 70 71 72 73 |
# File 'lib/graphql/tracing/monitor_trace.rb', line 69 def initialize(monitor, keyword, object) @monitor = monitor @keyword = keyword @object = object end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
75 76 77 |
# File 'lib/graphql/tracing/monitor_trace.rb', line 75 def keyword @keyword end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
75 76 77 |
# File 'lib/graphql/tracing/monitor_trace.rb', line 75 def object @object end |
Instance Method Details
#finish ⇒ Object
81 82 83 |
# File 'lib/graphql/tracing/monitor_trace.rb', line 81 def finish raise "Implement #{self.class}#finish to end this event (#{inspect})" end |
#start ⇒ Object
77 78 79 |
# File 'lib/graphql/tracing/monitor_trace.rb', line 77 def start raise "Implement #{self.class}#start to begin a new event (#{inspect})" end |