Class: GraphQL::Tracing::DetailedTrace::StoredTrace
- Inherits:
-
Object
- Object
- GraphQL::Tracing::DetailedTrace::StoredTrace
- Defined in:
- lib/graphql/tracing/detailed_trace.rb
Instance Attribute Summary collapse
-
#begin_ms ⇒ Object
readonly
Returns the value of attribute begin_ms.
-
#duration_ms ⇒ Object
readonly
Returns the value of attribute duration_ms.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#operation_name ⇒ Object
readonly
Returns the value of attribute operation_name.
-
#trace_data ⇒ Object
readonly
Returns the value of attribute trace_data.
Instance Method Summary collapse
-
#initialize(id:, operation_name:, duration_ms:, begin_ms:, trace_data:) ⇒ StoredTrace
constructor
A new instance of StoredTrace.
Constructor Details
#initialize(id:, operation_name:, duration_ms:, begin_ms:, trace_data:) ⇒ StoredTrace
Returns a new instance of StoredTrace.
81 82 83 84 85 86 87 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 81 def initialize(id:, operation_name:, duration_ms:, begin_ms:, trace_data:) @id = id @operation_name = operation_name @duration_ms = duration_ms @begin_ms = begin_ms @trace_data = trace_data end |
Instance Attribute Details
#begin_ms ⇒ Object (readonly)
Returns the value of attribute begin_ms.
89 90 91 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 89 def begin_ms @begin_ms end |
#duration_ms ⇒ Object (readonly)
Returns the value of attribute duration_ms.
89 90 91 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 89 def duration_ms @duration_ms end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
89 90 91 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 89 def id @id end |
#operation_name ⇒ Object (readonly)
Returns the value of attribute operation_name.
89 90 91 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 89 def operation_name @operation_name end |
#trace_data ⇒ Object (readonly)
Returns the value of attribute trace_data.
89 90 91 |
# File 'lib/graphql/tracing/detailed_trace.rb', line 89 def trace_data @trace_data end |