Class MetricReport
java.lang.Object
io.jenkins.plugins.interactiveinput.output.MetricReport
- All Implemented Interfaces:
Serializable
A named group of
Metrics published by one interactiveOutput call (e.g. "Cost report"
or "Carbon footprint"). A build may hold several reports; they are stored in the build's
InteractiveOutputBuildAction and therefore persisted in build.xml via XStream.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCross-build trend as a grouped bar chart.static final StringCross-build trend as a line chart (default).static final StringThe latest build's numeric metrics as a pie chart.static final StringThe latest build's metrics as a time series, when each metric's LABEL is a date/timestamp (e.g. -
Constructor Summary
ConstructorsConstructorDescriptionMetricReport(String name, List<Metric> metrics, long createdTs) MetricReport(String name, List<Metric> metrics, long createdTs, String chartType) -
Method Summary
-
Field Details
-
CHART_LINE
Cross-build trend as a line chart (default).- See Also:
-
CHART_BAR
Cross-build trend as a grouped bar chart.- See Also:
-
CHART_PIE
The latest build's numeric metrics as a pie chart.- See Also:
-
CHART_TIMESERIES
The latest build's metrics as a time series, when each metric's LABEL is a date/timestamp (e.g.2026-07-01). Points are emitted sorted by date and can be re-bucketed (day/month/year) client-side. Labels that do not parse as a date are skipped.- See Also:
-
-
Constructor Details
-
MetricReport
-
MetricReport
-
-
Method Details
-
getName
-
getChartType
- Returns:
- the report's chart type, defaulting legacy/blank/unknown values to
CHART_LINE.
-
getMetrics
-
getCreatedTs
public long getCreatedTs() -
getCreatedDate
-