
org.moskito.control.plugins.pagespeed.Constants Maven / Gradle / Ivy
The newest version!
package org.moskito.control.plugins.pagespeed;
/**
* TODO comment this class
*
* @author lrosenberg
* @since 05.08.20 17:40
*/
public class Constants {
public static String ELEMENTS[] = {
"lighthouseResult.fetchTime",
"lighthouseResult.categories.performance.score",
"loadingExperience.metrics.FIRST_INPUT_DELAY_MS.category",
"loadingExperience.metrics.FIRST_INPUT_DELAY_MS.percentile",
"loadingExperience.metrics.CUMULATIVE_LAYOUT_SHIFT_SCORE.category",
"loadingExperience.metrics.CUMULATIVE_LAYOUT_SHIFT_SCORE.percentile",
"loadingExperience.metrics.LARGEST_CONTENTFUL_PAINT_MS.category",
"loadingExperience.metrics.LARGEST_CONTENTFUL_PAINT_MS.percentile",
"loadingExperience.metrics.FIRST_CONTENTFUL_PAINT_MS.category",
"loadingExperience.metrics.FIRST_CONTENTFUL_PAINT_MS.percentile",
"loadingExperience.overall_category",
"lighthouseResult.audits.largest-contentful-paint.numericValue",
"lighthouseResult.audits.largest-contentful-paint.score",
"lighthouseResult.audits.max-potential-fid.numericValue",
"lighthouseResult.audits.first-cpu-idle.numericValue",
"lighthouseResult.audits.network-rtt.numericValue",
"lighthouseResult.audits.interactive.numericValue",
"lighthouseResult.audits.total-byte-weight.numericValue",
"lighthouseResult.audits.server-response-time.numericValue",
};
public static String METRICS[] = {
"firstCPUIdle",
"observedFirstPaint",
"interactive",
"firstContentfulPaint",
"firstMeaningfulPaint",
"largestContentfulPaint",
"speedIndex",
"maxPotentialFID",
};
public static final String configName2ProducerName(String configurationName){
return configurationName;
}
public static final String CATEGORY_NAME = "pagespeed";
public static final String SUBSYSTEM_NAME = "pagespeed";
public static final String TAGS = "pagespeed";
public static String getNameSubstitution(String s) {
switch(s){
case "largestContentfulPaint":
return "LCP";
case "firstContentfulPaint":
return "FCP";
case "lighthouseResult.categories.performance.score":
return "Score";
/*case "firstMeaningfulPaint":
return "FMP";*/
default:
return s;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy