Class Runs
java.lang.Object
org.jenkinsci.plugins.prometheus.util.Runs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBuildParameters(Run build) static booleanincludeBuildInMetrics(Run build) static booleanincludeRunInPerBuildMetrics(Run<?, ?> run, int buildIndex) Checks if a run should be included in per-build metrics based on retention settings.
-
Constructor Details
-
Runs
public Runs()
-
-
Method Details
-
includeBuildInMetrics
-
includeRunInPerBuildMetrics
Checks if a run should be included in per-build metrics based on retention settings. This method checks both time-based (max age) and count-based (max builds) limits.- Parameters:
run- the run to checkbuildIndex- the 0-based index of this build (0 = latest build)- Returns:
- true if the run should be included in per-build metrics, false otherwise
-
getBuildParameters
-