Get decision traces

get/traces
Internal-Use Only

Returns a collection of decision traces. The traces can either be returned in either text/tab-separated-values or application/vnd.sas.collection+json format. The former would be the same format used for adding a decision trace. In the latter format, the traces without the actual trace texts are returned as items in a collection.

There are two types of traces: one is at the decision step boundary and the other is at the variable assignment. Each GET only obtains the type of traces specified. The scope query parameter is used to specify the type of traces.

The order of the columns for query parameter scope=step in tab-separated-values format are: traceid, seqno, tracetimestamp, objecturi, processornote, text. The version is 1 implicitly. Always use the column heading to help you locate a specific column. The order of the column and the number of columns are not fixed.

The order of the columns for query parameter scope=assignment in tab-separated-values format are: traceid, seqno, tracetimestamp, objecturi, processornote, version, scope, and text. The current version is 2. However, always use the column heading to help you locate a specific column. The order of the column and the number of columns might change in a future version.

Request Samples

1

Response Samples

1traceid seqno tracetimestamp objecturi processornote text
23d4120b3-1fe7-4fce-b333-0ae1b93aa03c 1 2020-08-07T18:02:23Z /decisions/flows/835b0890-bca3-42f1-8a50-9dcce2c4a377/revisions/6f5c045a-94a6-4f9b-9adc-cc1dde33558 VVCT#STARTING_NODE_TRACE#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c
3VVCT#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c#/decisions/flows/835b0890-bca3-42f1-8a50-9dcce2c4a377/revisions/6f5c045a-94a6-4f9b-9adc-cc1dde33558#Start
4VVCT#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c#a=6
5VVCT#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c#b=Bond Park
6VVCT#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c#c=Centennial Campus
7VVCT#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c#temp_dg_out=[{ "metadata": [ { "id_ip": "string" }, { "id_profile": "string" }, { "cd_tp_channel": "decimal" }, { "cd_tp_slot": "decimal" }, { "id_lead": "decimal" }, { "id_offer": "decimal" }, { "id_communication": "decimal" }, { "id_campaign": "decimal" }, { "cd_tp_target": "decimal" }, { "cd_tp_decision": "decimal" }, { "param_1_text": "string" }, { "param_2_text": "string" }, { "param_3_text": "string" }, { "param_4_text": "string" }, { "param_5_text": "string" } ] }, { "data": [ [ "perf_test", "perf_test", 1899, 1899, 1899, 1899, 1899, 1899, 1899, 1899, "perf_test", "perf_test", "perf_test", "perf_test", "perf_test" ] ] }]
8VVCT#ENDING_NODE_TRACE#3d4120b3-1fe7-4fce-b333-0ae1b93aa03c
9b1c164de-397c-47ad-8029-2a52bc255f83 1 append 2020-08-07T18:02:23Z /decisions/flows/835b0890-bca3-42f1-8a50-9dcce2c4a377/revisions/6f5c045a-94a6-4f9b-9adc-cc1dde33558 VVCT#STARTING_NODE_TRACE#b1c164de-397c-47ad-8029-2a52bc255f83
10VVCT#b1c164de-397c-47ad-8029-2a52bc255f83#/decisions/flows/835b0890-bca3-42f1-8a50-9dcce2c4a377/revisions/6f5c045a-94a6-4f9b-9adc-cc1dde33558#Start
11VVCT#b1c164de-397c-47ad-8029-2a52bc255f83#a=8
12VVCT#b1c164de-397c-47ad-8029-2a52bc255f83#b=biometric
13VVCT#b1c164de-397c-47ad-8029-2a52bc255f83#c=cryptological
14VVCT#b1c164de-397c-47ad-8029-2a52bc255f83#temp_dg_out=[ { "metadata": [ { "id_ip": "string" }, { "id_profile": "string" }, { "cd_tp_channel": "decimal" }, { "cd_tp_slot": "decimal" }, { "id_lead": "decimal" }, { "id_offer": "decimal" }, { "id_communication": "decimal" }, { "id_campaign": "decimal" }, { "cd_tp_target": "decimal" }, { "cd_tp_decision": "decimal" }, { "param_1_text": "string" }, { "param_2_text": "string" }, { "param_3_text": "string" }, { "param_4_text": "string" }, { "param_5_text": "string" } ] }, { "data": [ [ "perf_test", "perf_test", 1899, 1899, 1899, 1899, 1899, 1899, 1899, 1899, "perf_test", "perf_test", "perf_test", "perf_test", "perf_test" ], [ "perf_test", "perf_test", 1900, 1900, 1900, 1900, 1900, 1900, 1900, 1900, "perf_test", "perf_test", "perf_test", "perf_test", "perf_test" ], [ "perf_test", "perf_test", 1901, 1901, 1901, 1901, 1901, 1901, 1901, 1901, "perf_test", "perf_test", "perf_test", "perf_test", "perf_test" ] ] } ]
15VVCT#ENDING_NODE_TRACE#b1c164de-397c-47ad-8029-2a52bc255f83
16

Query Parameters

NameTypeRequiredDescription
scope
string
false

The type of traces.

Allowed values:
assignmentstep
Default:
step
filter
string<filter-criteria>
false

The filter criteria for the returned traces. The fields that can be used are traceId, traceTimeStamp and processorNote.

limit
integer
false

The maximum number of items to return on this page. The actual number of returned items might be less if there are no more items in the collection. The default is 10 for the application/vnd.sas.collection+json format. For the tab-separated-values format the default is 1 because the trace text is included in the output. Trace text can be very long. There is much higher potential of exhausting the service's memory when retrieving a lot of trace texts at once.

sortBy
string<sort-criteria>
false

The sorting criteria for the returned traces.

start
integer
false

The starting index of the first item on a page. The index is 0-based. The default index is 0.

Header Parameters

NameTypeRequiredDescription
Accept
string
false

Selects the desired representation

Allowed values:
text/tab-separated-valuesapplication/vnd.sas.collection+jsonapplication/json
Default:
application/vnd.sas.collection+json

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema