Add better tags to InfluxDB for GPSI data. (#3429)
This commit is contained in:
parent
05531a1137
commit
1fac02f6ae
|
|
@ -207,6 +207,16 @@ class InfluxDBDataGenerator {
|
|||
tags.experience = keyArray[0];
|
||||
tags.formFactor = keyArray[1];
|
||||
tags.metric = keyArray[2];
|
||||
} else if (type === 'gpsi.pageSummary') {
|
||||
if (key.indexOf('googleWebVitals') > -1) {
|
||||
tags.testType = 'googleWebVitals';
|
||||
} else if (key.indexOf('score') > -1) {
|
||||
tags.testType = 'score';
|
||||
} else if (key.indexOf('loadingExperience') > -1) {
|
||||
tags.experience = keyArray[0];
|
||||
tags.metric = keyArray[1];
|
||||
tags.testType = 'crux';
|
||||
}
|
||||
} else {
|
||||
// console.log('Missed added tags to ' + key + ' ' + type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue