Class: Datadog::CI::TestVisibility::Serializers::TestModule
- Inherits:
-
Base
- Object
- Base
- Datadog::CI::TestVisibility::Serializers::TestModule
show all
- Defined in:
- lib/datadog/ci/test_visibility/serializers/test_module.rb
Constant Summary
collapse
- CONTENT_FIELDS =
(%w[test_session_id test_module_id] + Base::CONTENT_FIELDS).freeze
- CONTENT_MAP_SIZE =
calculate_content_map_size(CONTENT_FIELDS)
- REQUIRED_FIELDS =
(%w[test_session_id test_module_id] + Base::REQUIRED_FIELDS).freeze
Constants inherited
from Base
Base::MAXIMUM_DURATION_NANO, Base::MINIMUM_DURATION_NANO, Base::MINIMUM_TIMESTAMP_NANO
Instance Attribute Summary
Attributes inherited from Base
#meta, #options, #span, #trace
Instance Method Summary
collapse
Methods inherited from Base
calculate_content_map_size, #duration, #error, #initialize, #metrics, #parent_id, #runtime_id, #service, #span_id, #span_type, #start, #test_module_id, #test_session_id, #test_suite_id, #to_msgpack, #trace_id, #valid?, #validate!, #validation_errors, #version
Instance Method Details
#content_fields ⇒ Object
17
18
19
|
# File 'lib/datadog/ci/test_visibility/serializers/test_module.rb', line 17
def content_fields
CONTENT_FIELDS
end
|
#content_map_size ⇒ Object
21
22
23
|
# File 'lib/datadog/ci/test_visibility/serializers/test_module.rb', line 21
def content_map_size
CONTENT_MAP_SIZE
end
|
#event_type ⇒ Object
25
26
27
|
# File 'lib/datadog/ci/test_visibility/serializers/test_module.rb', line 25
def event_type
Ext::AppTypes::TYPE_TEST_MODULE
end
|
#name ⇒ Object
29
30
31
|
# File 'lib/datadog/ci/test_visibility/serializers/test_module.rb', line 29
def name
"#{@span.get_tag(Ext::Test::TAG_FRAMEWORK)}.test_module"
end
|
#resource ⇒ Object
33
34
35
|
# File 'lib/datadog/ci/test_visibility/serializers/test_module.rb', line 33
def resource
"#{@span.get_tag(Ext::Test::TAG_FRAMEWORK)}.test_module.#{@span.get_tag(Ext::Test::TAG_MODULE)}"
end
|