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,15 +30,21 @@ package love.distributedrebirth.nx01.warp.fault.report;
import java.util.Map;
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.
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public class ReportSitraSystemEnvironment implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_ENVIRONMENT);
@Override
public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
for (String key : System.getenv().keySet()) {
String value = System.getenv(key);
tracer.put(key, value);

View file

@ -31,15 +31,21 @@ import java.util.Locale;
import java.util.Map;
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.
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public class ReportSitraSystemLocale implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_LOCALE);
@Override
public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
Locale locale = Locale.getDefault();
tracer.put("Locale-Language", locale.getLanguage());
tracer.put("Locale-Country", locale.getCountry());

View file

@ -30,15 +30,21 @@ package love.distributedrebirth.nx01.warp.fault.report;
import java.util.Map;
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.
///
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
public class ReportSitraSystemProperties implements SitraManifestReportProvider {
private static final String GOAL_SCORE = ZilLaLaManyfestoSectionGoal.BUBBLES.spaceCadet(ZilLaLaManyfestoSectionChampionsLeague.BUBBLES_PROPERTIES);
@Override
public void fillReport(Map<String, String> tracer) {
tracer.put(ZilLaLaManyfestoHeader.SIGNAL_FAULT_SECTION_GOAL, GOAL_SCORE);
for (Object keyObj : System.getProperties().keySet()) {
if (keyObj instanceof String) {
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_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";
}