1.Download kpi.csv file from https://github.com/CognizantOneDevOps/Insights/tree/master/PlatformInsights 2.Check KPI list , and add or Modify KPI as per requirement , File must be in csv format Note: Please do not change header 3.Go to neo4j browser http://localhost:7474/browser/ 4.Run following csv upload command LOAD CSV WITH HEADERS FROM 'file:///kpi.csv' AS row create (:INFERENCE:CONFIG { kpiID:row.kpiID, expectedTrend:row.expectedTrend, name:row.name, action:row.action, schedule:row.schedule, vector:row.vector, toolName:row.toolName, isGroupBy:row.isGroupBy, groupByFieldName:COALESCE(row.groupByFieldName,""), groupByField:COALESCE(row.groupByField,""), averageField:row.averageField, startTimeField:row.startTimeField, endTimeField:row.endTimeField, resultOutPutType:row.resultOutPutType, isComparisionKpi:row.isComparisionKpi, neo4jQuery:row.neo4jQuery, timeFormat:row.timeFormat, neo4jLabel:row.neo4jLabel, nextRun:row.nextRun, lastRunTime:row.lastRunTime, isActive:row.isActive }) RETURN row 5.Now Check all configuration in Neo4j with lable INFERENCE:CONFIG using following query MATCH (n:INFERENCE:CONFIG) RETURN n LIMIT 25 |