Package io.jenkins.plugins.echarts
Klasse AsyncConfigurableTrendJobAction<T extends io.jenkins.plugins.util.BuildAction<?>>
java.lang.Object
io.jenkins.plugins.util.JobAction<T>
io.jenkins.plugins.echarts.AsyncTrendJobAction<T>
io.jenkins.plugins.echarts.AsyncConfigurableTrendJobAction<T>
- Typparameter:
T- type of the results
- Alle implementierten Schnittstellen:
Action,ModelObject,AsyncConfigurableTrendChart,AsyncTrendChart
public abstract class AsyncConfigurableTrendJobAction<T extends io.jenkins.plugins.util.BuildAction<?>>
extends AsyncTrendJobAction<T>
implements AsyncConfigurableTrendChart
A job action displays a link on the side panel of a job that refers to the last build that contains results (i.e. a
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. This action basically is the same as AsyncTrendJobAction,
it additionally provides a configuration of the trend chart using a JSON object (given as a string value). This
JSON object can be populated in the client using a configuration dialog (or using the browser's local storage).
For the default trend charts that are simply built around ChartModelConfiguration you can include the provided
global configuration dialog with <st:adjunct includes="io.jenkins.plugins.echarts-trend-default-setup"/>.- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedAsyncConfigurableTrendJobAction(Job<?, ?> owner, Class<T> buildActionClass) Creates a new instance ofAsyncConfigurableTrendJobAction. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final edu.hm.hafner.echarts.LinesChartModelCreates the model of the trend chart.protected abstract edu.hm.hafner.echarts.LinesChartModelcreateChartModel(String configuration) Creates the model of the trend chart.final StringReturns the UI model for an ECharts chart that shows the build trend.getConfigurableBuildTrendModel(String configuration) Returns the UI model for an ECharts chart that shows the build trend.Von Klasse geerbte Methoden io.jenkins.plugins.echarts.AsyncTrendJobAction
createBuildHistory, isTrendVisibleVon Klasse geerbte Methoden io.jenkins.plugins.util.JobAction
doIndex, getBuildActionClass, getLatestAction, getOwnerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden hudson.model.Action
getDisplayName, getIconFileName, getUrlNameVon Schnittstelle geerbte Methoden io.jenkins.plugins.echarts.AsyncConfigurableTrendChart
isTrendVisible
-
Konstruktordetails
-
AsyncConfigurableTrendJobAction
Creates a new instance ofAsyncConfigurableTrendJobAction.- Parameter:
owner- the job that owns this actionbuildActionClass- the type of the action to find
-
-
Methodendetails
-
getBuildTrendModel
Beschreibung aus Schnittstelle kopiert:AsyncTrendChartReturns the UI model for an ECharts chart that shows the build trend. The model has to be a JSON representation of a correspondingLinesChartModelinstance, that will be inserted into the client side model of the corresponding ECharts instance.- Angegeben von:
getBuildTrendModelin SchnittstelleAsyncTrendChart- Setzt außer Kraft:
getBuildTrendModelin KlasseAsyncTrendJobAction<T extends io.jenkins.plugins.util.BuildAction<?>>- Gibt zurück:
- the UI model as JSON
- Siehe auch:
-
getConfigurableBuildTrendModel
Beschreibung aus Schnittstelle kopiert:AsyncConfigurableTrendChartReturns the UI model for an ECharts chart that shows the build trend. The model has to be a JSON representation of a correspondingLinesChartModelinstance, that will be inserted into the client side model of the corresponding ECharts instance.- Angegeben von:
getConfigurableBuildTrendModelin SchnittstelleAsyncConfigurableTrendChart- Parameter:
configuration- JSON configuration of the chart (number of builds, etc.). It is up to an individual plugin to correctly create this configuration in the trend configuration dialog.- Gibt zurück:
- the UI model as JSON
- Siehe auch:
-
createChartModel
Creates the model of the trend chart. The returned model will be converted to JSON and inserted into the client side model of the corresponding ECharts instance.- Parameter:
configuration- JSON configuration of the chart (number of builds, etc.). It is up to an individual plugin to correctly create this configuration in the trend configuration dialog.- Gibt zurück:
- the model of the trend chart
- Siehe auch:
-
createChartModel
protected final edu.hm.hafner.echarts.LinesChartModel createChartModel()Beschreibung aus Klasse kopiert:AsyncTrendJobActionCreates the model of the trend chart. The returned model will be converted to JSON and inserted into the client side model of the corresponding ECharts instance.- Angegeben von:
createChartModelin KlasseAsyncTrendJobAction<T extends io.jenkins.plugins.util.BuildAction<?>>- Gibt zurück:
- the model of the trend chart
- Siehe auch:
-