TestSpanEnrichmentDetails¶
- class oci.apm_config.models.TestSpanEnrichmentDetails(**kwargs)¶
Bases:
TestDetailsRun a set of span enrichment rules on a given span to see the result.
Attributes:
A constant which can be used with the test_type property of a TestDetails.
Gets the filters of this TestSpanEnrichmentDetails.
[Required] Gets the options of this TestSpanEnrichmentDetails.
[Required] Gets the span of this TestSpanEnrichmentDetails.
[Required] Gets the test_type of this TestDetails.
Methods:
__init__(**kwargs)Initializes a new TestSpanEnrichmentDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- TEST_TYPE_SPAN_ENRICHMENT = 'SPAN_ENRICHMENT'¶
A constant which can be used with the test_type property of a TestDetails. This constant has a value of “SPAN_ENRICHMENT”
- __init__(**kwargs)¶
Initializes a new TestSpanEnrichmentDetails object with values from keyword arguments. The default value of the
test_typeattribute of this class isSPAN_ENRICHMENTand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
test_type (str) – The value to assign to the test_type property of this TestSpanEnrichmentDetails. Allowed values for this property are: “SPAN_ENRICHMENT”
options (object) – The value to assign to the options property of this TestSpanEnrichmentDetails.
filters (list[oci.apm_config.models.FilterTextOrId]) – The value to assign to the filters property of this TestSpanEnrichmentDetails.
span (object) – The value to assign to the span property of this TestSpanEnrichmentDetails.
- property filters¶
Gets the filters of this TestSpanEnrichmentDetails. A list of filters to try against the given span.
- Returns
The filters of this TestSpanEnrichmentDetails.
- Return type
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property options¶
[Required] Gets the options of this TestSpanEnrichmentDetails. The span enrichment rules to test in the format of an Options resource.
- Returns
The options of this TestSpanEnrichmentDetails.
- Return type
object
- property span¶
[Required] Gets the span of this TestSpanEnrichmentDetails. The span to test the rules on. This should be a valid JSON object that follows one of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or Oracle Application Performance Monitoring.
- Returns
The span of this TestSpanEnrichmentDetails.
- Return type
object
- property test_type¶
[Required] Gets the test_type of this TestDetails. The kind of test to run.
Allowed values for this property are: “SPAN_ENRICHMENT”
- Returns
The test_type of this TestDetails.
- Return type
str