Query openMDM Server#

This Notebook shows how to query instance data of your openMDM Server using the HTTP API.

Configure the base_url to your openMDM installation. You can then open the Web client to explore your data interactively or open the swagger OpenAPI contract to inspect the API.

#base_url ='http://docker.peaksolution.local:82/org.eclipse.mdm.nucleus'
base_url ='https://docker.peak-solution.de:10031/org.eclipse.mdm.nucleus'


print(f"Web Client: {base_url}")
print(f"OpenAPI: {base_url}/swagger.html")
Web Client: https://docker.peak-solution.de:10031/org.eclipse.mdm.nucleus
OpenAPI: https://docker.peak-solution.de:10031/org.eclipse.mdm.nucleus/swagger.html

Dependencies for this notebook#

import requests
import sys
import json
import mdm_pb2 as mdm
from google.protobuf.timestamp_pb2 import Timestamp

Establish session#

# login at glassfish http interface with form based authentication
session = requests.Session()
session.headers={'Content-Type': 'application/json', 'Accept': 'application/json'}

r = session.post(base_url + '/j_security_check', data={'j_username': 'Demo', 'j_password': 'mdm'}, headers={'Content-Type': 'application/x-www-form-urlencoded'})

r.raise_for_status() # throw if failed

The openMDM API is a session based API. The session object contains the session cookie. Close this session to release the connection license. Otherwise the session will be auto closed after 30 minutes of inactivity.

r = session.get(f'{base_url}/mdm/datasources')
r.raise_for_status() # throw if failed
r.json()
['NVHDEMO', 'CRASHDEMO', 'BLANKDEMO', 'ADASDEMO', 'FDXDEMO']

Now we could see the available data sources. Now we pick one to go on.

SOURCENAME=r.json()[0]
SOURCENAME
'NVHDEMO'

Retrieve Project instances#

📁Retrieve Project instances by query#

Retrieve Projects from datasource. There are different ways. We start with the generic one query.

query = {
    "filters": [
        {
            "sourceName": SOURCENAME,
            "filter": "",
            "searchString": ""
        }
    ],
    "columns": [
        "Project.Name"
    ],
    "resultType": "Project"
}
r = session.post(f'{base_url}/mdm/query',json=query)
r.raise_for_status()
projects = r.json()

project_names = [row['columns'][0]['value'] for row in projects['rows']]
print(f'Project Names: {project_names}')

projects
Project Names: ['PMV 2PV', 'PMV Model P', 'PMV Summit']
{'rows': [{'source': 'NVHDEMO',
   'type': 'Project',
   'id': '1',
   'columns': [{'type': 'Project', 'attribute': 'Name', 'value': 'PMV 2PV'}]},
  {'source': 'NVHDEMO',
   'type': 'Project',
   'id': '2',
   'columns': [{'type': 'Project',
     'attribute': 'Name',
     'value': 'PMV Model P'}]},
  {'source': 'NVHDEMO',
   'type': 'Project',
   'id': '3',
   'columns': [{'type': 'Project',
     'attribute': 'Name',
     'value': 'PMV Summit'}]}],
 'totalRecords': 3}

Now the filter can be extended or additional columns can be added. Here we add the condition that Project.Name should be like PM* and an additional column Project.Id was picked.

query = {
    "filters": [
        {
            "sourceName": SOURCENAME,
            "filter": "Project.Name lk 'PM*'",
            "searchString": ""
        }
    ],
    "columns": [
        "Project.Name",
        "Project.Id",
    ],
    "resultType": "Project"
}
r = session.post(f'{base_url}/mdm/query',json=query)
r.raise_for_status()
projects = r.json()

project_names = []
for row in projects['rows']:
    for column in row['columns']:
        if 'Name' == column['attribute']:
            project_names.append(column['value'])
print(f'Project Names: {project_names}')

projects
Project Names: ['PMV 2PV', 'PMV Model P', 'PMV Summit']
{'rows': [{'source': 'NVHDEMO',
   'type': 'Project',
   'id': '1',
   'columns': [{'type': 'Project', 'attribute': 'Name', 'value': 'PMV 2PV'},
    {'type': 'Project', 'attribute': 'Id', 'value': '1'}]},
  {'source': 'NVHDEMO',
   'type': 'Project',
   'id': '2',
   'columns': [{'type': 'Project',
     'attribute': 'Name',
     'value': 'PMV Model P'},
    {'type': 'Project', 'attribute': 'Id', 'value': '2'}]},
  {'source': 'NVHDEMO',
   'type': 'Project',
   'id': '3',
   'columns': [{'type': 'Project', 'attribute': 'Name', 'value': 'PMV Summit'},
    {'type': 'Project', 'attribute': 'Id', 'value': '3'}]}],
 'totalRecords': 3}

The REST API also contains an entry point for all objects.

📁Project instances by entry point#

The REST API also contains an entry point for all objects of a given type.

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/projects')
r.raise_for_status()
projects = r.json()

project_names = []
for row in projects['data']:
    for column in row['attributes']:
        if 'Name' == column['name']:
            project_names.append(column['value'])
print(f'Project Names: {project_names}')

projects
Project Names: ['PMV 2PV', 'PMV Model P', 'PMV Summit']
{'type': 'Project',
 'data': [{'name': 'PMV 2PV',
   'id': '1',
   'type': 'Project',
   'sourceType': 'Project',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotest',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name', 'value': 'PMV 2PV', 'unit': '', 'dataType': 'STRING'}],
   'relations': []},
  {'name': 'PMV Model P',
   'id': '2',
   'type': 'Project',
   'sourceType': 'Project',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotest',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name',
     'value': 'PMV Model P',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'PMV Summit',
   'id': '3',
   'type': 'Project',
   'sourceType': 'Project',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotest',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name', 'value': 'PMV Summit', 'unit': '', 'dataType': 'STRING'}],
   'relations': []}]}

You can also retrieve info from a single element. The returned structure is equal but only one element will be returned.

project_id = projects['data'][0]['id']

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/projects/{project_id}')
r.raise_for_status()
project = r.json()

project
{'type': 'Project',
 'data': [{'name': 'PMV 2PV',
   'id': '1',
   'type': 'Project',
   'sourceType': 'Project',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotest',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name', 'value': 'PMV 2PV', 'unit': '', 'dataType': 'STRING'}],
   'relations': []}]}

Get Tree children#

  • 📁Project

    • 📁Pool

      • 📁Test

        • 📁TestStep

          • 📖Ordered Context

            • 🚗UnitUnderTest

            • 🏭TestEquipment

            • 🔀TestSequence

          • 📊Measurement

            • 📖Measured Context

              • 🚗UnitUnderTest

              • 🏭TestEquipment

              • 🔀TestSequence

📁Pool#

Traversing down the hierarchy, the next level is called ‘Pool’. To get all ‘Pool’-children of our ‘Project’ you use the same filter syntax as before, now querying for ‘/pools’ which belong to the same parent ‘Project’ by using the project_id - as defined by the pool_filter.

pool_filter = f'Project.Id eq {project_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/pools', params={'filter': pool_filter})
r.raise_for_status()
pools = r.json()

pool_id = pools['data'][0]['id']

pools
{'type': 'Pool',
 'data': [{'name': 'Engine Noise Measurements',
   'id': '7',
   'type': 'Pool',
   'sourceType': 'StructureLevel',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aosubtest.structurelevel',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name',
     'value': 'Engine Noise Measurements',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []}]}

📁Test#

For finding the ‘Test’-children of the ‘Pool’ from above, you can follow the same pattern and attach a test_filter with the pool_id.

test_filter = f'Pool.Id eq {pool_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/tests', params={'filter': test_filter})
r.raise_for_status()
tests = r.json()

test_id = tests['data'][0]['id']

tests
{'type': 'Test',
 'data': [{'name': 'EngineNoise 2PV 20191206',
   'id': '5',
   'type': 'Test',
   'sourceType': 'Test',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'DateClosed',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'DateCreated',
     'value': '2019-12-06T15:59:35Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aosubtest.test',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name',
     'value': 'EngineNoise 2PV 20191206',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateTest',
     'contextType': None,
     'ids': ['4']},
    {'name': None,
     'type': 'MUTABLE',
     'entityType': 'Classification',
     'contextType': None,
     'ids': ['10']},
    {'name': None,
     'type': 'MUTABLE',
     'entityType': 'User',
     'contextType': None,
     'ids': ['3']}]}]}

📁TestStep#

And for the ‘TestStep’-children of the ‘Test’, you can apply again the exact same pattern…

test_step_filter = f'Test.Id eq {test_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/teststeps', params={'filter': test_step_filter})
r.raise_for_status()
test_steps = r.json()

test_step_id = test_steps['data'][0]['id']

test_steps
{'type': 'TestStep',
 'data': [{'name': 'EngineNoise - 100% load',
   'id': '12',
   'type': 'TestStep',
   'sourceType': 'TestStep',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'Sortindex',
     'value': '10',
     'unit': '',
     'dataType': 'INTEGER'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Optional', 'value': 'true', 'unit': '', 'dataType': 'BOOLEAN'},
    {'name': 'DateCreated',
     'value': '2019-12-06T15:59:35Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aosubtest.teststep',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name',
     'value': 'EngineNoise - 100% load',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateTestStep',
     'contextType': None,
     'ids': ['2']},
    {'name': None,
     'type': 'MUTABLE',
     'entityType': 'Classification',
     'contextType': None,
     'ids': ['10']}]}]}

📖Context#

The ‘Context’ contains additional meta data for a certain ‘Test’ respective ‘TestStep’. The context is being composed of UnitUnderTest, TestEquipment and TestSequence. The ‘Context’ can vary between the moment of the test being ‘ordered’ and the data being ‘measured’ (think of a sensor which needed to be exchanged), this call will return all three for measured and ordered:

  • measured

    • 🚗UNITUNDERTEST

    • 🏭TESTSEQUENCE

    • 🔀TESTEQUIPMENT

  • ordered

    • 🚗UNITUNDERTEST

    • 🏭TESTSEQUENCE

    • 🔀TESTEQUIPMENT

But we only print the ‘measured’ context…

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/teststeps/{test_step_id}/contexts')
r.raise_for_status()
contexts = r.json()

context_measured = next(context["measured"] for context in contexts['data'] if "measured" in context)
context_ordered = next(context["ordered"] for context in contexts['data'] if "ordered" in context)

print(f"Context: {context_measured.keys()}")

context_measured
Context: dict_keys(['TESTEQUIPMENT', 'TESTSEQUENCE', 'UNITUNDERTEST'])
{'TESTEQUIPMENT': [{'name': 'da_hardware',
   'id': '29',
   'type': 'ContextComponent',
   'sourceType': 'da_hardware',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotestequipmentpart.da_hardware.da_hardware',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'da_hardware',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'testbench_type',
     'value': 'PAK',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'measurement_device',
     'value': '',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'TESTEQUIPMENT',
     'ids': ['5'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 20},
  {'name': 'calibrator',
   'id': '29',
   'type': 'ContextComponent',
   'sourceType': 'calibrator',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotestequipmentpart.calibrator.calibrator',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'calibrator',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'calibrator_serial',
     'value': '223344',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'calibrator_type',
     'value': '',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'TESTEQUIPMENT',
     'ids': ['6'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 30}],
 'TESTSEQUENCE': [{'name': 'test_conduction_general',
   'id': '29',
   'type': 'ContextComponent',
   'sourceType': 'test_conduction_general',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotestsequencepart.test_conduction_general.test_conduction_general',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'test_conduction_general',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'test_method',
     'value': 'Method 1 - Full Vehicle Engine Noise',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'test_engineer',
     'value': 'MRE',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'rig_operator',
     'value': 'AKN',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'test_date',
     'value': '2019-12-06T00:00:00Z',
     'unit': '',
     'dataType': 'DATE',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'comments',
     'value': '',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'TESTSEQUENCE',
     'ids': ['4'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 20},
  {'name': 'engine_noise_conduction',
   'id': '29',
   'type': 'ContextComponent',
   'sourceType': 'engine_noise_conduction',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotestsequencepart.engine_noise_conduction.engine_noise_conduction',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'engine_noise_conduction',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'gear',
     'value': '5',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'powertrain_load',
     'value': '100.0',
     'unit': '%',
     'dataType': 'FLOAT',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'driving_mode',
     'value': 'Comfort',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'TESTSEQUENCE',
     'ids': ['5'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 30},
  {'name': 'testsite',
   'id': '39',
   'type': 'ContextComponent',
   'sourceType': 'testsite',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aotestsequencepart.testsite.testsite',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'testsite',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'track_id',
     'value': 'Test cabin 1',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': False,
     'description': ''},
    {'name': 'weather',
     'value': '',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': False,
     'description': ''},
    {'name': 'ambient_temperature',
     'value': '16',
     'unit': 'gradC',
     'dataType': 'SHORT',
     'sortIndex': 40,
     'readOnly': False,
     'optional': False,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'TESTSEQUENCE',
     'ids': ['6'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 40}],
 'UNITUNDERTEST': [{'name': 'engine',
   'id': '39',
   'type': 'ContextComponent',
   'sourceType': 'engine',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.engine.engine',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'engine',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Peak Motors Ltd.',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'model',
     'value': 'Peak 123',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'type',
     'value': 'Compression-ignition',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'power',
     'value': '86',
     'unit': 'kW',
     'dataType': 'SHORT',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'nr_of_cylinders',
     'value': '4',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'fuel_type',
     'value': 'Diesel',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 70,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['17'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 20},
  {'name': 'vehicle',
   'id': '39',
   'type': 'ContextComponent',
   'sourceType': 'vehicle',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.vehicle.vehicle',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'vehicle',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Peak Motor Vehicles',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'model',
     'value': '2PV',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'vehicle_type',
     'value': 'Hatchback',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'vehicle_category',
     'value': 'Passenger transport',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'side_window_glazing',
     'value': 'Laminated',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 100,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'upholstery',
     'value': 'Textile',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 110,
     'readOnly': False,
     'optional': False,
     'description': ''},
    {'name': 'roof_type',
     'value': 'Standard',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 120,
     'readOnly': False,
     'optional': False,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['15'],
     'parentId': None},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': None}],
   'sortIndex': 20},
  {'name': 'gearbox',
   'id': '39',
   'type': 'ContextComponent',
   'sourceType': 'gearbox',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.gearbox.gearbox',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'gearbox',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'transmission',
     'value': 'Non-automatic',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'no_forward_gears',
     'value': '5',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 30,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'gearbox_model',
     'value': 'GB_456_P',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'drivetrain_type',
     'value': 'FWD',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['16'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 30},
  {'name': 'FL_tyre',
   'id': '150',
   'type': 'ContextComponent',
   'sourceType': 'tyre',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.tyre.fl_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'FL_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Tunnelsand',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'axle',
     'value': '1',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 30,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'side',
     'value': 'Left',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'size',
     'value': '55R15',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tread_depth',
     'value': '',
     'unit': '',
     'dataType': 'FLOAT',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tyre_pressure',
     'value': '2.5',
     'unit': 'bar',
     'dataType': 'FLOAT',
     'sortIndex': 70,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['18'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 40},
  {'name': 'FR_tyre',
   'id': '151',
   'type': 'ContextComponent',
   'sourceType': 'tyre',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.tyre.fr_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'FR_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Tunnelsand',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'axle',
     'value': '1',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 30,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'side',
     'value': 'Right',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'size',
     'value': '55R15',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tread_depth',
     'value': '',
     'unit': '',
     'dataType': 'FLOAT',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tyre_pressure',
     'value': '2.51',
     'unit': 'bar',
     'dataType': 'FLOAT',
     'sortIndex': 70,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['19'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 50},
  {'name': 'RL_tyre',
   'id': '152',
   'type': 'ContextComponent',
   'sourceType': 'tyre',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.tyre.rl_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'RL_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Tunnelsand',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'axle',
     'value': '2',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 30,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'side',
     'value': 'Left',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'size',
     'value': '55R15',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tread_depth',
     'value': '',
     'unit': '',
     'dataType': 'FLOAT',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tyre_pressure',
     'value': '2.31',
     'unit': 'bar',
     'dataType': 'FLOAT',
     'sortIndex': 70,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['20'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 60},
  {'name': 'RR_tyre',
   'id': '153',
   'type': 'ContextComponent',
   'sourceType': 'tyre',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aounitundertestpart.tyre.rr_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'Name',
     'value': 'RR_tyre',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': None,
     'readOnly': None,
     'optional': None,
     'description': None},
    {'name': 'manufacturer',
     'value': 'Tunnelsand',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 20,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'axle',
     'value': '2',
     'unit': '',
     'dataType': 'SHORT',
     'sortIndex': 30,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'side',
     'value': 'Right',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 40,
     'readOnly': True,
     'optional': True,
     'description': ''},
    {'name': 'size',
     'value': '55R15',
     'unit': '',
     'dataType': 'STRING',
     'sortIndex': 50,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tread_depth',
     'value': '',
     'unit': '',
     'dataType': 'FLOAT',
     'sortIndex': 60,
     'readOnly': False,
     'optional': True,
     'description': ''},
    {'name': 'tyre_pressure',
     'value': '2.32',
     'unit': 'bar',
     'dataType': 'FLOAT',
     'sortIndex': 70,
     'readOnly': False,
     'optional': True,
     'description': ''}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'TemplateComponent',
     'contextType': 'UNITUNDERTEST',
     'ids': ['21'],
     'parentId': '15'},
    {'name': None,
     'type': 'PARENT',
     'entityType': 'ContextRoot',
     'contextType': None,
     'ids': ['38'],
     'parentId': '15'}],
   'sortIndex': 70}]}

It is also possible to retrieve a single context type, for instance UnitUnderTest.

  • measured

    • 🚗UNITUNDERTEST

  • ordered

    • 🚗UNITUNDERTEST

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/teststeps/{test_step_id}/contexts/unitundertest')
r.raise_for_status()
contexts_unitundertest = r.json()

contexts_unitundertest
{'data': [{'measured': {'UNITUNDERTEST': [{'name': 'engine',
      'id': '39',
      'type': 'ContextComponent',
      'sourceType': 'engine',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.engine.engine',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'engine',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Peak Motors Ltd.',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'model',
        'value': 'Peak 123',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'type',
        'value': 'Compression-ignition',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'power',
        'value': '86',
        'unit': 'kW',
        'dataType': 'SHORT',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'nr_of_cylinders',
        'value': '4',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'fuel_type',
        'value': 'Diesel',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['17'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 20},
     {'name': 'vehicle',
      'id': '39',
      'type': 'ContextComponent',
      'sourceType': 'vehicle',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.vehicle.vehicle',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'vehicle',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Peak Motor Vehicles',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'model',
        'value': '2PV',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'vehicle_type',
        'value': 'Hatchback',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'vehicle_category',
        'value': 'Passenger transport',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'side_window_glazing',
        'value': 'Laminated',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 100,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'upholstery',
        'value': 'Textile',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 110,
        'readOnly': False,
        'optional': False,
        'description': ''},
       {'name': 'roof_type',
        'value': 'Standard',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 120,
        'readOnly': False,
        'optional': False,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['15'],
        'parentId': None},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': None}],
      'sortIndex': 20},
     {'name': 'gearbox',
      'id': '39',
      'type': 'ContextComponent',
      'sourceType': 'gearbox',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.gearbox.gearbox',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'gearbox',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'transmission',
        'value': 'Non-automatic',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'no_forward_gears',
        'value': '5',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'gearbox_model',
        'value': 'GB_456_P',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'drivetrain_type',
        'value': 'FWD',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['16'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 30},
     {'name': 'FL_tyre',
      'id': '150',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.fl_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'FL_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '1',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Left',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '2.5',
        'unit': 'bar',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['18'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 40},
     {'name': 'FR_tyre',
      'id': '151',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.fr_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'FR_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '1',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Right',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '2.51',
        'unit': 'bar',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['19'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 50},
     {'name': 'RL_tyre',
      'id': '152',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.rl_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'RL_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '2',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Left',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '2.31',
        'unit': 'bar',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['20'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 60},
     {'name': 'RR_tyre',
      'id': '153',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.rr_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'RR_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '2',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Right',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '2.32',
        'unit': 'bar',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['21'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['38'],
        'parentId': '15'}],
      'sortIndex': 70}]},
   'ordered': {'UNITUNDERTEST': [{'name': 'engine',
      'id': '37',
      'type': 'ContextComponent',
      'sourceType': 'engine',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.engine.engine',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'engine',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Peak Motors Ltd.',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'model',
        'value': 'Peak 123',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'type',
        'value': 'Compression-ignition',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'power',
        'value': '86',
        'unit': 'kW',
        'dataType': 'SHORT',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'nr_of_cylinders',
        'value': '4',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'fuel_type',
        'value': 'Diesel',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['17'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 20},
     {'name': 'vehicle',
      'id': '37',
      'type': 'ContextComponent',
      'sourceType': 'vehicle',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.vehicle.vehicle',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'vehicle',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Peak Motor Vehicles',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'model',
        'value': '2PV',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'vehicle_type',
        'value': 'Hatchback',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'vehicle_category',
        'value': 'Passenger transport',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'side_window_glazing',
        'value': 'Laminated',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 100,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'upholstery',
        'value': 'Textile',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 110,
        'readOnly': False,
        'optional': False,
        'description': ''},
       {'name': 'roof_type',
        'value': 'Standard',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 120,
        'readOnly': False,
        'optional': False,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['15'],
        'parentId': None},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': None}],
      'sortIndex': 20},
     {'name': 'gearbox',
      'id': '37',
      'type': 'ContextComponent',
      'sourceType': 'gearbox',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.gearbox.gearbox',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'gearbox',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'transmission',
        'value': 'Non-automatic',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'no_forward_gears',
        'value': '5',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'gearbox_model',
        'value': 'GB_456_P',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'drivetrain_type',
        'value': 'FWD',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['16'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 30},
     {'name': 'FL_tyre',
      'id': '142',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.fl_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'FL_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '1',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Left',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['18'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 40},
     {'name': 'FR_tyre',
      'id': '143',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.fr_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'FR_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '1',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Right',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['19'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 50},
     {'name': 'RL_tyre',
      'id': '144',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.rl_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'RL_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '2',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Left',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['20'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 60},
     {'name': 'RR_tyre',
      'id': '145',
      'type': 'ContextComponent',
      'sourceType': 'tyre',
      'sourceName': 'NVHDEMO',
      'attributes': [{'name': 'MimeType',
        'value': 'application/x-asam.aounitundertestpart.tyre.rr_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'Name',
        'value': 'RR_tyre',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': None,
        'readOnly': None,
        'optional': None,
        'description': None},
       {'name': 'manufacturer',
        'value': 'Tunnelsand',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 20,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'axle',
        'value': '2',
        'unit': '',
        'dataType': 'SHORT',
        'sortIndex': 30,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'side',
        'value': 'Right',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 40,
        'readOnly': True,
        'optional': True,
        'description': ''},
       {'name': 'size',
        'value': '55R15',
        'unit': '',
        'dataType': 'STRING',
        'sortIndex': 50,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tread_depth',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 60,
        'readOnly': False,
        'optional': True,
        'description': ''},
       {'name': 'tyre_pressure',
        'value': '',
        'unit': '',
        'dataType': 'FLOAT',
        'sortIndex': 70,
        'readOnly': False,
        'optional': True,
        'description': ''}],
      'relations': [{'name': None,
        'type': 'MUTABLE',
        'entityType': 'TemplateComponent',
        'contextType': 'UNITUNDERTEST',
        'ids': ['21'],
        'parentId': '15'},
       {'name': None,
        'type': 'PARENT',
        'entityType': 'ContextRoot',
        'contextType': None,
        'ids': ['36'],
        'parentId': '15'}],
      'sortIndex': 70}]}}]}

📊Measurement#

To retrieve the ‘Measurement’-children of the ‘TestStep’, remember the query pattern used before…

measurement_filter = f'TestStep.Id eq {test_step_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/measurements', params={'filter': measurement_filter})
r.raise_for_status()
measurements = r.json()

measurement_id = measurements['data'][0]['id']

measurements
{'type': 'Measurement',
 'data': [{'name': '1/3 Octave - mics',
   'id': '156',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': [{'identifier': 'EXTREF:$(DISC1)2023/PeakSolution-BrochurePTDM.pdf',
       'mimeType': 'application/pdf',
       'description': 'PeakSolution-BrochurePTDM.pdf',
       'fileName': 'PeakSolution-BrochurePTDM.pdf'}],
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '2188', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.octavespectrum3d',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': '1/3 Octave - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'APS - acc and magnitude',
   'id': '153',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '150708', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrum3d',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'APS - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'APS - mics',
   'id': '155',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '601908', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrum3d',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name', 'value': 'APS - mics', 'unit': '', 'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Compressed - CAN',
   'id': '172',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '14000', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Compressed - CAN',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Compressed - acc and magnitude',
   'id': '168',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '3840', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Compressed - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Compressed - mics',
   'id': '164',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '3200', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Compressed - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Integrity - CAN',
   'id': '170',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '1250', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Integrity - CAN',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Integrity - acc and magnitude',
   'id': '166',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '800', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Integrity - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Integrity - mics',
   'id': '162',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '800', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Integrity - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Level - CAN',
   'id': '171',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '1500', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Level - CAN',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Level - acc and magnitude',
   'id': '167',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '960', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Level - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Level - mics',
   'id': '163',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'database',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '960', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Level - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Order APS - acc and magnitude',
   'id': '157',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '80328', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrum3d',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Order APS - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Order APS - mics',
   'id': '154',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '20328', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrum3d',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Order APS - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Order complex;c:2 w:0.2 ord. - mics',
   'id': '158',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '128', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrumcut',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Order complex;c:2 w:0.2 ord. - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Order complex;c:4 w:0.2 ord. - mics',
   'id': '159',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '128', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrumcut',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Order complex;c:4 w:0.2 ord. - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Order complex;c:6 w:0.2 ord. - mics',
   'id': '160',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '128', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.spectrumcut',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Order complex;c:6 w:0.2 ord. - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'PAK native',
   'id': '173',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': '',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description',
     'value': 'PAK native data',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': [{'identifier': 'EXTREF:$(DISC1)2019/mea_compressed0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput0]',
       'fileName': 'mea_compressed0'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_integrity0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput0]',
       'fileName': 'mea_integrity0'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_level0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput0]',
       'fileName': 'mea_level0'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_throughput0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput0]',
       'fileName': 'mea_throughput0'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_TachTimes138',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_TachTimes138'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_TachTimes144',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_TachTimes144'},
      {'identifier': 'EXTREF:$(DISC1)2019/mea_TachTimes146',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_TachTimes146'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/mea_compressed0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_compressed0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/mea_integrity0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_integrity0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/mea_level0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_level0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/mea_throughput0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput1]',
       'fileName': 'mea_throughput0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/22/mea_compressed0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput2]',
       'fileName': 'mea_compressed0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/21/mea_integrity0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput2]',
       'fileName': 'mea_integrity0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/22/mea_level0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput2]',
       'fileName': 'mea_level0'},
      {'identifier': 'EXTREF:$(DISC1)2019/16/21/mea_throughput0',
       'mimeType': 'application/octet-stream',
       'description': '[PAK_Throughput2]',
       'fileName': 'mea_throughput0'}],
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'DateCreated', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.native.pak',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'Name', 'value': 'PAK native', 'unit': '', 'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Slow quantity - CAN',
   'id': '152',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '896', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.streamed.nondynamic',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Slow quantity - CAN',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Slow quantity - acc and magnitude',
   'id': '151',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '192', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.streamed.nondynamic',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Slow quantity - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Throughput - CAN',
   'id': '169',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '56000', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.streamed.nondynamic',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Throughput - CAN',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Throughput - acc and magnitude',
   'id': '165',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '1966080', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.streamed',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Throughput - acc and magnitude',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Throughput - mics',
   'id': '161',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '13107200', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'DateCreated',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.streamed',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin',
     'value': '2014-09-23T13:18:26Z',
     'unit': '',
     'dataType': 'DATE'},
    {'name': 'Name',
     'value': 'Throughput - mics',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'geometry',
   'id': '150',
   'type': 'Measurement',
   'sourceType': 'MeaResult',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'StorageType',
     'value': 'external_only',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'MDMLinks',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'Size', 'value': '420', 'unit': '', 'dataType': 'LONG'},
    {'name': 'MeasurementEnd', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'DateCreated', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'analytic_path',
     'value': '',
     'unit': '',
     'dataType': 'FILE_LINK_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurement.geometry',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'MeasurementBegin', 'value': '', 'unit': '', 'dataType': 'DATE'},
    {'name': 'Name', 'value': 'geometry', 'unit': '', 'dataType': 'STRING'}],
   'relations': []}]}

📊ChannelGroup#

To retrieve the ‘ChannelGroup’-children of the ‘Measurement’, remember the query pattern used before…

Note: A ‘ChannelGroups’ is sometimes referred to as ‘SubMatrix’.

channelgroup_filter = f'Measurement.Id eq {measurement_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/channelgroups', params={'filter': channelgroup_filter})
r.raise_for_status()
channelgroups = r.json()

channelgroup_id = channelgroups['data'][0]['id']

channelgroups
{'type': 'ChannelGroup',
 'data': [{'name': 'Sx:1/3 Octave(mics)',
   'id': '202',
   'type': 'ChannelGroup',
   'sourceType': 'SubMatrix',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aosubmatrix',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'SubMatrixNoRows',
     'value': '11',
     'unit': '',
     'dataType': 'INTEGER'},
    {'name': 'Name',
     'value': 'Sx:1/3 Octave(mics)',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Sy:1/3 Octave(mics)',
   'id': '201',
   'type': 'ChannelGroup',
   'sourceType': 'SubMatrix',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aosubmatrix',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'SubMatrixNoRows',
     'value': '165',
     'unit': '',
     'dataType': 'INTEGER'},
    {'name': 'Name',
     'value': 'Sy:1/3 Octave(mics)',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []},
  {'name': 'Sz:1/3 Octave(mics)',
   'id': '203',
   'type': 'ChannelGroup',
   'sourceType': 'SubMatrix',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'MimeType',
     'value': 'application/x-asam.aosubmatrix',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'SubMatrixNoRows',
     'value': '15',
     'unit': '',
     'dataType': 'INTEGER'},
    {'name': 'Name',
     'value': 'Sz:1/3 Octave(mics)',
     'unit': '',
     'dataType': 'STRING'}],
   'relations': []}]}

📈Channel#

Finally we end at the ‘Channel’-level.

channels_filter = f'ChannelGroup.Id eq {channelgroup_id}'

r = session.get(f'{base_url}/mdm/environments/{SOURCENAME}/channels', params={'filter': channels_filter})
r.raise_for_status()
channels = r.json()

channel_id = channels['data'][0]['id']

channels
{'type': 'Channel',
 'data': [{'name': 'Octave Frequency',
   'id': '946',
   'type': 'Channel',
   'sourceType': 'MeaQuantity',
   'sourceName': 'NVHDEMO',
   'attributes': [{'name': 'flags_name',
     'value': '',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Minimum', 'value': '', 'unit': '', 'dataType': 'DOUBLE'},
    {'name': 'raw_name', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'Description', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'phys_imag_name', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'non_reference_channel_name',
     'value': '',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Average', 'value': '', 'unit': '', 'dataType': 'DOUBLE'},
    {'name': 'Rank', 'value': '', 'unit': '', 'dataType': 'INTEGER'},
    {'name': 'Dimension',
     'value': '',
     'unit': '',
     'dataType': 'INTEGER_SEQUENCE'},
    {'name': 'MimeType',
     'value': 'application/x-asam.aomeasurementquantity',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'Name',
     'value': 'Octave Frequency',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'phys_name', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'raw_imag_name', 'value': '', 'unit': '', 'dataType': 'STRING'},
    {'name': 'TypeSize', 'value': '', 'unit': '', 'dataType': 'INTEGER'},
    {'name': 'Interpolation',
     'value': 'NONE',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Maximum', 'value': '', 'unit': '', 'dataType': 'DOUBLE'},
    {'name': 'reference_channel_name',
     'value': '',
     'unit': '',
     'dataType': 'STRING'},
    {'name': 'DataType',
     'value': 'DOUBLE',
     'unit': '',
     'dataType': 'ENUMERATION'},
    {'name': 'Deviation', 'value': '', 'unit': '', 'dataType': 'DOUBLE'}],
   'relations': [{'name': None,
     'type': 'MUTABLE',
     'entityType': 'Unit',
     'contextType': None,
     'ids': ['33']},
    {'name': None,
     'type': 'MUTABLE',
     'entityType': 'Quantity',
     'contextType': None,
     'ids': ['23']}]}]}

Close the session#

It is important to close the session to make sure the license bound to the session is freed.

r = session.get(f'{base_url}/mdm/logout')
r.raise_for_status()
session.close()

License#

Copyright © 2024 Peak Solution GmbH

The training material in this repository is licensed under a Creative Commons BY-NC-SA 4.0 license. See LICENSE file for more information.