public class Plot extends Object implements Comparable<Plot>
| Modifier and Type | Field and Description |
|---|---|
String |
csvFileName
The name of the CSV file that persists the plots data.
|
boolean |
exclZero
Whether or not to exclude zero as default Y-axis value.
|
String |
group
Group name that this plot belongs to.
|
String |
numBuilds
Number of builds back to show on this plot.
|
List<Series> |
series
List of data series.
|
String |
style
Optional style of plot: line, line3d, stackedArea, stackedBar, etc.
|
String |
title
Title of plot.
|
String |
urlNumBuilds
Number of builds back to show on this plot from url.
|
String |
urlStyle
Style of plot from url.
|
String |
urlTitle
Title of plot from url.
|
Boolean |
urlUseDescr
Use description flag from url.
|
boolean |
useDescr
Whether or not to use build descriptions as X-axis labels.
|
String |
yaxis
Y-axis label.
|
| Constructor and Description |
|---|
Plot() |
Plot(String title,
String yaxis,
String group,
String numBuilds,
String csvFileName,
String style,
boolean useDescr)
Deprecated.
Kept for backward compatibility.
|
Plot(String title,
String yaxis,
String group,
String numBuilds,
String csvFileName,
String style,
boolean useDescr,
boolean keepRecords,
boolean exclZero)
Creates a new plot with the given paramenters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBuild(hudson.model.AbstractBuild<?,?> build,
PrintStream logger)
Called when a build completes.
|
int |
compareTo(Plot o) |
String |
getCsvFileName() |
boolean |
getExclZero() |
String |
getGroup() |
boolean |
getKeepRecords() |
String |
getNumBuilds() |
hudson.model.AbstractProject<?,?> |
getProject() |
List<Series> |
getSeries() |
String |
getTitle() |
String |
getURLNumBuilds() |
String |
getYaxis() |
boolean |
hasLegend() |
void |
plotGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Generates and writes the plot to the response output stream.
|
void |
plotGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Generates and writes the plot's clickable map to the response
output stream.
|
void |
setProject(hudson.model.AbstractProject<?,?> project)
A reference to the project is needed to retrieve
the project's root directory where the CSV file
is located.
|
String |
toString() |
public transient String urlNumBuilds
public transient String urlTitle
public transient String urlStyle
public transient Boolean urlUseDescr
public String title
public String yaxis
public String group
public String numBuilds
public String csvFileName
public String style
public boolean useDescr
public boolean exclZero
@DataBoundConstructor public Plot(String title, String yaxis, String group, String numBuilds, String csvFileName, String style, boolean useDescr, boolean keepRecords, boolean exclZero)
@Deprecated public Plot(String title, String yaxis, String group, String numBuilds, String csvFileName, String style, boolean useDescr)
public Plot()
public boolean getKeepRecords()
public boolean getExclZero()
public int compareTo(Plot o)
compareTo in interface Comparable<Plot>public String getYaxis()
public String getGroup()
public String getCsvFileName()
public String getTitle()
public boolean hasLegend()
public String getURLNumBuilds()
public String getNumBuilds()
public hudson.model.AbstractProject<?,?> getProject()
public void setProject(hudson.model.AbstractProject<?,?> project)
project - the projectpublic void plotGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - the incoming requestrsp - the response streamIOExceptionpublic void plotGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - the incoming requestrsp - the response streamIOExceptionpublic void addBuild(hudson.model.AbstractBuild<?,?> build,
PrintStream logger)
build - logger - Copyright © 2004-2014. All Rights Reserved.