T - type of the resultspublic abstract class AsyncTrendJobAction<T extends io.jenkins.plugins.util.BuildAction<?>> extends io.jenkins.plugins.util.JobAction<T> implements AsyncTrendChart
BuildAction with a corresponding result). This action also is responsible to render the historical trend via
its associated 'floatingBox.jelly' view. The trend chart will be rendered by ECharts: the model of the chart will be
obtained using an asynchronous Ajax call.| Modifier | Constructor and Description |
|---|---|
protected |
AsyncTrendJobAction(Job<?,?> owner,
Class<T> buildActionClass)
Creates a new instance of
AsyncTrendJobAction. |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<? extends edu.hm.hafner.echarts.BuildResult<T>> |
createBuildHistory() |
protected abstract edu.hm.hafner.echarts.LinesChartModel |
createChartModel()
Creates the model of the trend chart.
|
String |
getBuildTrendModel()
Returns the UI model for an ECharts chart that shows the build trend.
|
boolean |
isTrendVisible()
This default implementation checks whether there are at least two build results available.
|
doIndex, getBuildActionClass, getLatestAction, getOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, getIconFileName, getUrlNameprotected AsyncTrendJobAction(Job<?,?> owner, Class<T> buildActionClass)
AsyncTrendJobAction.owner - the job that owns this actionbuildActionClass - the type of the action to find@JavaScriptMethod public String getBuildTrendModel()
AsyncTrendChartLinesChartModel instance, that will be inserted into the client side model of the
corresponding ECharts instance.getBuildTrendModel in interface AsyncTrendChartfor details on how to construct such a model,
for an example on how to provide the JSON representationpublic boolean isTrendVisible()
isTrendVisible in interface AsyncTrendCharttrue if there are at least two results, false otherwiseprotected abstract edu.hm.hafner.echarts.LinesChartModel createChartModel()
for details on how to construct such a modelCopyright © 2016–2020. All rights reserved.