Update project structure
This commit is contained in:
parent
8e8753da68
commit
0045d53a51
8 changed files with 20 additions and 8 deletions
|
@ -4,7 +4,14 @@ import io.prometheus.client.Collector;
|
||||||
import io.prometheus.client.Counter;
|
import io.prometheus.client.Counter;
|
||||||
import io.prometheus.client.SimpleCollector;
|
import io.prometheus.client.SimpleCollector;
|
||||||
import ru.ruscalworld.fabricexporter.config.MainConfig;
|
import ru.ruscalworld.fabricexporter.config.MainConfig;
|
||||||
import ru.ruscalworld.fabricexporter.metrics.*;
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.spark.MillisPerTick;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.spark.SparkMetric;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.spark.TicksPerSecond;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.world.Entities;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.world.LoadedChunks;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.world.OnlinePlayers;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.world.TotalLoadedChunks;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.spark;
|
||||||
|
|
||||||
import me.lucko.spark.api.statistic.StatisticWindow;
|
import me.lucko.spark.api.statistic.StatisticWindow;
|
||||||
import me.lucko.spark.api.statistic.misc.DoubleAverageInfo;
|
import me.lucko.spark.api.statistic.misc.DoubleAverageInfo;
|
|
@ -1,7 +1,8 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.spark;
|
||||||
|
|
||||||
import me.lucko.spark.api.Spark;
|
import me.lucko.spark.api.Spark;
|
||||||
import me.lucko.spark.api.SparkProvider;
|
import me.lucko.spark.api.SparkProvider;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
|
|
||||||
public abstract class SparkMetric extends Metric {
|
public abstract class SparkMetric extends Metric {
|
||||||
public SparkMetric(String name, String help, String... labels) {
|
public SparkMetric(String name, String help, String... labels) {
|
|
@ -1,4 +1,4 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.spark;
|
||||||
|
|
||||||
import me.lucko.spark.api.statistic.StatisticWindow;
|
import me.lucko.spark.api.statistic.StatisticWindow;
|
||||||
import me.lucko.spark.api.statistic.types.DoubleStatistic;
|
import me.lucko.spark.api.statistic.types.DoubleStatistic;
|
|
@ -1,4 +1,4 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.world;
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityType;
|
import net.minecraft.entity.EntityType;
|
||||||
|
@ -7,6 +7,7 @@ import net.minecraft.server.world.ServerWorld;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.TypeFilter;
|
import net.minecraft.util.TypeFilter;
|
||||||
import ru.ruscalworld.fabricexporter.FabricExporter;
|
import ru.ruscalworld.fabricexporter.FabricExporter;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
|
@ -1,7 +1,8 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.world;
|
||||||
|
|
||||||
import net.minecraft.server.world.ServerWorld;
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import ru.ruscalworld.fabricexporter.FabricExporter;
|
import ru.ruscalworld.fabricexporter.FabricExporter;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
||||||
|
|
||||||
public class LoadedChunks extends Metric {
|
public class LoadedChunks extends Metric {
|
|
@ -1,7 +1,8 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.world;
|
||||||
|
|
||||||
import net.minecraft.server.world.ServerWorld;
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import ru.ruscalworld.fabricexporter.FabricExporter;
|
import ru.ruscalworld.fabricexporter.FabricExporter;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
||||||
|
|
||||||
public class OnlinePlayers extends Metric {
|
public class OnlinePlayers extends Metric {
|
|
@ -1,7 +1,8 @@
|
||||||
package ru.ruscalworld.fabricexporter.metrics;
|
package ru.ruscalworld.fabricexporter.metrics.world;
|
||||||
|
|
||||||
import net.minecraft.server.world.ServerWorld;
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import ru.ruscalworld.fabricexporter.FabricExporter;
|
import ru.ruscalworld.fabricexporter.FabricExporter;
|
||||||
|
import ru.ruscalworld.fabricexporter.metrics.Metric;
|
||||||
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
import ru.ruscalworld.fabricexporter.util.TextUtil;
|
||||||
|
|
||||||
public class TotalLoadedChunks extends Metric {
|
public class TotalLoadedChunks extends Metric {
|
Loading…
Reference in a new issue