MCPcopy Create free account
hub / github.com/apache/storm / formatConfigData

Function formatConfigData

storm-webapp/src/main/webapp/js/script.js:256–267  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

254})
255
256function formatConfigData(data) {
257 var mustacheFormattedData = {'config':[]};
258 for (var prop in data) {
259 if(data.hasOwnProperty(prop)) {
260 mustacheFormattedData['config'].push({
261 'key': prop,
262 'value': JSON.stringify(data[prop])
263 });
264 }
265 }
266 return mustacheFormattedData;
267}
268
269function formatErrorTimeSecs(response){
270 if('componentErrors' in response) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected