@@ -80,7 +80,7 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
80
80
className = 'chart'
81
81
// key={`Chart${counter}`}
82
82
renderService = 'CPU Utilization'
83
- metric = { awsData . CPUUtilization [ 0 ] ?. unit }
83
+ metric = { awsData . CPUUtilization [ 0 ] ? awsData . CPUUtilization [ 0 ] . unit : 'Units' }
84
84
timeList = { awsData . CPUUtilization ?. map ( el => el . time ) }
85
85
valueList = { awsData . CPUUtilization ?. map ( el => el . value ) }
86
86
// sizing={props.sizing}
@@ -90,7 +90,7 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
90
90
className = 'chart'
91
91
// key={`Chart${counter}`}
92
92
renderService = 'Network In'
93
- metric = 'Percent'
93
+ metric = { awsData . NetworkIn [ 0 ] ? awsData . NetworkIn [ 0 ] . unit : 'Units' }
94
94
timeList = { awsData . NetworkIn ?. map ( el => el . time ) }
95
95
valueList = { awsData . NetworkIn ?. map ( el => el . value ) }
96
96
// sizing={props.sizing}
@@ -100,7 +100,7 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
100
100
className = 'chart'
101
101
// key={`Chart${counter}`}
102
102
renderService = 'Network Out'
103
- metric = 'Percent'
103
+ metric = { awsData . NetworkOut [ 0 ] ? awsData . NetworkOut [ 0 ] . unit : 'Units' }
104
104
timeList = { awsData . NetworkOut ?. map ( el => el . time ) }
105
105
valueList = { awsData . NetworkOut ?. map ( el => el . value ) }
106
106
// sizing={props.sizing}
@@ -109,8 +109,8 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
109
109
< AwsChart
110
110
className = 'chart'
111
111
// key={`Chart${counter}`}
112
- renderService = 'DiskReadBytes '
113
- metric = 'Percent'
112
+ renderService = 'Disk Read Bytes '
113
+ metric = { awsData . DiskReadBytes [ 0 ] ? awsData . DiskReadBytes [ 0 ] . unit : 'Units' }
114
114
timeList = { awsData . DiskReadBytes ?. map ( el => el . time ) }
115
115
valueList = { awsData . DiskReadBytes ?. map ( el => el . value ) }
116
116
// sizing={props.sizing}
0 commit comments