Processing Data From a REST API JSON Format
KB1237 - Aug 02, 2018
Type: Best practice
Description: How to process data from a REST API JSON format using Monitoring Studio.
Additional Keywords: JSON, REST API, Text Pre-processing
Introduction
In this article, we will assume that a Web request has been configured in Monitoring Studio to obtain the local VDC disk details of an EMC ECS storage system. The response data is in JSON format as shown below:
From this response data, we want to extract the StoragePoolName, the healthStatus, and the displayName information (the properties) located under embedded/instances (the JSON entry key). This article explains how to do it using Monitoring Studio.
Procedure
To process the response data in JSON format:
- Right-click the Web Request instance and click KM Commands > New > Text Pre-Processing
-
Select Convert JSON to CSV (Comma-Separated Values) and click Next
-
Specify the JSON entry key and the properties:
In our example:
- the JSON entry key is
_embedded/_instances
- the properties are
StoragePoolName;healthStatus;displayName
- the JSON entry key is
- Click Next
-
Configure the Monitor Settings and click Finish.