[server] Add trace properties to the Trace instance #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick from 2021-06 branch. See PR #79 for review.
The purpose of this commit is to get the trace properties using tsp. The "properties" attribute will be in the trace instance, and it will be filled if the opened trace implements ITmfPropertiesProviders.
Example:
{
"name": "string",
"path": "string",
"nbEvents": 0,
"start": 0,
"indexingStatus": "RUNNING",
"end": 0,
"properties":
{
"hostname": "qemu1",
"clock_offset": "1450192743562703624"
},
"UUID": "f50af7e0-0dd5-4361-ab96-2e04f7bc7e30"
}
[Added] "properties" field in the returned Trace instance [Added] a separate trace instrance will be created when "/traces" is queried [Changed] /experiment endpoint will use Trace.from(ITmfTrace) to get more info of the trace