public class Plot extends Object implements Comparable<Plot>
A plot has the following characteristics:
A plots group effects the way in which plots are displayed. Group names are listed as links on the top-level plot page. The user then clicks on a group and sees the plots that belong to that group.
| 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.
|
boolean |
logarithmic
Use a logarithmic Y-axis.
|
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.
|
String |
yaxisMaximum |
String |
yaxisMinimum
Min/max yaxis values, string used so if no value defaults used
|
| 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,
boolean logarithmic,
String yaxisMinimum,
String yaxisMaximum)
Creates a new plot with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBuild(hudson.model.AbstractBuild<?,?> build,
PrintStream logger) |
void |
addBuild(hudson.model.Run<?,?> run,
PrintStream logger,
hudson.FilePath workspace)
Called when a build completes.
|
int |
compareTo(Plot o) |
boolean |
equals(Object o) |
String |
getCsvFileName() |
Double |
getDoubleFromString(String input) |
boolean |
getExclZero() |
String |
getGroup() |
hudson.model.Job<?,?> |
getJob() |
boolean |
getKeepRecords() |
String |
getNumBuilds() |
hudson.model.AbstractProject<?,?> |
getProject()
Deprecated.
|
List<Series> |
getSeries() |
String |
getTitle() |
String |
getURLNumBuilds() |
String |
getYaxis() |
Double |
getYaxisMaximum() |
Double |
getYaxisMinimum() |
int |
hashCode() |
boolean |
hasLegend() |
boolean |
hasYaxisMaximum() |
boolean |
hasYaxisMinimum() |
boolean |
isLogarithmic() |
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 |
setJob(hudson.model.Job<?,?> job) |
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
public boolean logarithmic
public String yaxisMinimum
public String yaxisMaximum
@DataBoundConstructor public Plot(String title, String yaxis, String group, String numBuilds, String csvFileName, String style, boolean useDescr, boolean keepRecords, boolean exclZero, boolean logarithmic, String yaxisMinimum, String yaxisMaximum)
@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 boolean isLogarithmic()
public boolean hasYaxisMinimum()
public Double getYaxisMinimum()
public boolean hasYaxisMaximum()
public Double getYaxisMaximum()
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.Job<?,?> getJob()
public void setJob(hudson.model.Job<?,?> job)
@Deprecated public hudson.model.AbstractProject<?,?> getProject()
public void setProject(hudson.model.AbstractProject<?,?> project)
public 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)
addBuild(Run, PrintStream, FilePath)public void addBuild(hudson.model.Run<?,?> run,
PrintStream logger,
hudson.FilePath workspace)
Copyright © 2016–2020. All rights reserved.