Added missing fault section goals in reports

This commit is contained in:
Willem Cazander 2024-12-19 19:45:49 +01:00
parent e2ded94f91
commit 423e128993
4 changed files with 24 additions and 3 deletions

View file

@ -30,6 +30,9 @@ package love.distributedrebirth.nx01.warp.fault.report;
import java.util.Map; import java.util.Map;
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider; import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
/// Reports the system environment variables. /// Reports the system environment variables.
/// ///
@ -37,8 +40,11 @@ import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider
/// @version ©Δ 仙上主天 /// @version ©Δ 仙上主天
public class ReportSitraSystemEnvironment implements SitraManifestReportProvider { public class ReportSitraSystemEnvironment implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_ENVIRONMENT);
@Override @Override
public void fillReport(Map<String, String> tracer) { public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
for (String key : System.getenv().keySet()) { for (String key : System.getenv().keySet()) {
String value = System.getenv(key); String value = System.getenv(key);
tracer.put(key, value); tracer.put(key, value);

View file

@ -31,6 +31,9 @@ import java.util.Locale;
import java.util.Map; import java.util.Map;
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider; import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
/// Reports the system locale. /// Reports the system locale.
/// ///
@ -38,8 +41,11 @@ import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider
/// @version ©Δ 仙上主天 /// @version ©Δ 仙上主天
public class ReportSitraSystemLocale implements SitraManifestReportProvider { public class ReportSitraSystemLocale implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_LOCALE);
@Override @Override
public void fillReport(Map<String, String> tracer) { public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
Locale locale = Locale.getDefault(); Locale locale = Locale.getDefault();
tracer.put("Locale-Language", locale.getLanguage()); tracer.put("Locale-Language", locale.getLanguage());
tracer.put("Locale-Country", locale.getCountry()); tracer.put("Locale-Country", locale.getCountry());

View file

@ -30,6 +30,9 @@ package love.distributedrebirth.nx01.warp.fault.report;
import java.util.Map; import java.util.Map;
import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider; import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoHeader;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionChampionsLeague;
import love.distributedrebirth.nx01.warp.fault.sitra.ZilLaLaManyfestoSectionGoal;
/// Reports all the system properties. /// Reports all the system properties.
/// ///
@ -37,8 +40,11 @@ import love.distributedrebirth.nx01.warp.fault.sitra.SitraManifestReportProvider
/// @version ©Δ 仙上主天 /// @version ©Δ 仙上主天
public class ReportSitraSystemProperties implements SitraManifestReportProvider { public class ReportSitraSystemProperties implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_PROPERTIES);
@Override @Override
public void fillReport(Map<String, String> tracer) { public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
for (Object keyObj : System.getProperties().keySet()) { for (Object keyObj : System.getProperties().keySet()) {
if (keyObj instanceof String) { if (keyObj instanceof String) {
String key = String.class.cast(keyObj); String key = String.class.cast(keyObj);

View file

@ -43,6 +43,9 @@ public enum ZilLaLaManyfestoSectionChampionsLeague {
public static final String BUBBLES_OPERATING_SYSTEM = "os"; public static final String BUBBLES_OPERATING_SYSTEM = "os";
public static final String BUBBLES_RUMTIME = "runtime"; public static final String BUBBLES_RUMTIME = "runtime";
public static final String BUBBLES_LOCALE = "locale";
public static final String BUBBLES_ENVIRONMENT = "environment";
public static final String BUBBLES_PROPERTIES = "properties";
public static final String BIMBAMBOO_MAVEN = "maven"; public static final String BIMBAMBOO_MAVEN = "maven";
} }