Class: Datadog::CI::TestVisibility::Serializers::TestV2

Inherits:
TestV1
  • Object
show all
Defined in:
lib/datadog/ci/test_visibility/serializers/test_v2.rb

Constant Summary collapse

CONTENT_FIELDS =
(["test_session_id", "test_module_id", "test_suite_id"] + TestV1::CONTENT_FIELDS).freeze
CONTENT_MAP_SIZE =
calculate_content_map_size(CONTENT_FIELDS)
REQUIRED_FIELDS =
(["test_session_id", "test_module_id", "test_suite_id"] + TestV1::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, #span, #trace

Instance Method Summary collapse

Methods inherited from TestV1

#event_type, #name, #resource

Methods inherited from Base

calculate_content_map_size, #duration, #error, #event_type, #initialize, #metrics, #name, #parent_id, #resource, #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

Constructor Details

This class inherits a constructor from Datadog::CI::TestVisibility::Serializers::Base

Instance Method Details

#content_fieldsObject



17
18
19
# File 'lib/datadog/ci/test_visibility/serializers/test_v2.rb', line 17

def content_fields
  CONTENT_FIELDS
end

#content_map_sizeObject



21
22
23
# File 'lib/datadog/ci/test_visibility/serializers/test_v2.rb', line 21

def content_map_size
  CONTENT_MAP_SIZE
end

#versionObject



25
26
27
# File 'lib/datadog/ci/test_visibility/serializers/test_v2.rb', line 25

def version
  2
end