@@ -56,13 +56,13 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
5656 const filteredEventData = { } ;
5757 // use this array of selected metrics to filter the eventData down to only the metrics we want to see
5858 const selectedArr = selectedMetrics [ 0 ] . Event ;
59- console . log ( 'selectedArr IS: ' , selectedArr )
59+ // console.log('selectedArr IS: ', selectedArr)
6060 // only one service... 'Event'
6161 for ( const service in eventDataObj ) {
6262 filteredEventData [ service ] = { } ;
6363 // define the object of all the metrics
6464 const serviceMetricsObject = eventDataObj [ service ] ;
65- console . log ( 'serviceMetricsObject IS: ' , serviceMetricsObject )
65+ // console.log('serviceMetricsObject IS: ', serviceMetricsObject)
6666 // iterate through all the metrics
6767 for ( const metricName in serviceMetricsObject ) {
6868 // if the metric name matches a string in the selectedArr, we add it to our filtered object
@@ -71,7 +71,7 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
7171 }
7272 } ;
7373 } ;
74- console . log ( 'filteredEventData IS: ' , filteredEventData )
74+ // console.log('filteredEventData IS: ', filteredEventData)
7575 return filteredEventData ;
7676 } ;
7777
@@ -97,11 +97,11 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
9797 for ( const service in filteredEventDataObj ) {
9898 const metricObject = filteredEventDataObj [ service ] ;
9999 for ( const metricName in metricObject ) {
100- console . log ( 'metricName IS: ' , metricName )
100+ // console.log('metricName IS: ', metricName)
101101 const chartData = metricObject [ metricName ] ;
102- console . log ( 'chartData IS: ' , chartData )
102+ // console.log('chartData IS: ', chartData)
103103 const token = chartData . token ;
104- console . log ( 'token IS: ' , token ) ;
104+ // console.log('token IS: ', token);
105105 // plotting using plotly
106106 // if (!isGrafana) {
107107 // console.log("plotting plotly")
@@ -117,7 +117,7 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
117117 // } else {
118118
119119 // plotting using grafana
120- console . log ( "plotting grafana" )
120+ // console.log("plotting grafana")
121121 grafanaChartsArray . push (
122122 < GrafanaEventChart metricName = { metricName } token = { token } /> ) ;
123123
@@ -126,7 +126,7 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
126126 }
127127 // currently, we only display graph using grafana. It can be implement as a option to choose between ploty and grafana for future iterations
128128 // if (isGrafana) {
129- console . log ( grafanaChartsArray )
129+ // console.log(grafanaChartsArray)
130130 setEventChartsArr ( grafanaChartsArray ) ;
131131 setCurrChunk ( grafanaChartsArray . slice ( currIndex , currIndex + chunkSize ) ) ;
132132 setCurrIndex ( currIndex + chunkSize ) ;
0 commit comments