Class MetricsExporter
java.lang.Object
io.jenkins.plugins.dorametrics.store.MetricsExporter
Builds metrics snapshots and delegates upload to the configured storage backend.
Upload logic lives in each ExportStorageConfig implementation, not here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidExport a snapshot of the last 24 hours to the configured storage backend, logging rather than throwing if it fails.static intexportFinishedBetween(long afterMs, long untilMs) Exports the builds that finished afterafterMsand up tountilMs, to a file named after the moment of the export so that no export overwrites another.static StringexportFullDump(int days) Export a full dump for testing/debugging.
-
Constructor Details
-
MetricsExporter
public MetricsExporter()
-
-
Method Details
-
exportDailySnapshot
public static void exportDailySnapshot()Export a snapshot of the last 24 hours to the configured storage backend, logging rather than throwing if it fails. -
exportFinishedBetween
Exports the builds that finished afterafterMsand up tountilMs, to a file named after the moment of the export so that no export overwrites another. Throws when the export did not go through, so the caller can try the same window again.- Returns:
- how many builds were exported; 0 when nothing finished in the window
- Throws:
Exception
-
exportFullDump
Export a full dump for testing/debugging.
-