This example describes how to create a mapper for Avro data type.
Procedure
- Go to https://Telcocloud serviceassurance-ui-IP.
A typical URL for logging into the user interface from the same system on which VMware Telco Cloud Service Assurance is installed is https://10.x.x.x.
- Enter the user name and password.
- Click Next.
- Navigate to the Administration > Configuration.
- Click Kafka Mappers.
Add Kafka Mapper appears in the right pane.
- Provide name of the mapping in the Mapper Name.
- Provide description about Kafka mapping in the Mapper Description.
- In the Mapping Details section:
- If you already have the Kafka mapper which is compliant with the VMware Telco Cloud Service Assurance schema, then click Replace Mapping Schema and upload.
- If you want to build the mapper using editor with help of JSON path expression, you need to upload the sample data using Sample Data.
You can select any of the following data type for sample data:
- JSON: If you have your data in JSON format, you can directly upload and use evaluate functionality.
- MnR: If you have your data in MnR type you can select sample data type as MnR and upload MnR file, it gets converted into JSON format and then you can use Evaluate option.
- Avro: In sample data for Avro data type, you can upload your Avro schema and Avro binary data, it gets converted into JSON and then you can click Evaluate. The evaluate tab contains the processed data or error based on the current Kafka Mapper, and converted Avro JSON sample data in the code window.
- To create Kafka mapping, click Create Mapper.