@ExportedBean
public class MetricsView
extends io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
implements hudson.model.ModelObject
Constructor and Description |
---|
MetricsView(hudson.model.Run<?,?> owner)
Create a new
MetricsView . |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
Object |
getDynamic(String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the
ClassDetailsView for the selected class. |
String |
getHistogram(String metricId)
Get the histogram for a specific metric.
|
String |
getMetricsJSON()
Get all metrics for the table as JSON.
|
String |
getMetricsTree(String metricId)
Get a tree consisting of
MetricsTreeNode s for a specific metric. |
hudson.model.Run<?,?> |
getOwner()
Returns the build as owner of this object.
|
List<String> |
getProjectOverview() |
String |
getScatterPlot(String metricId,
String secondMetricId)
Get a scatterplot for two metrics.
|
List<MetricDefinition> |
getSupportedMetrics() |
String |
getSupportedMetricsJSON() |
io.jenkins.plugins.datatables.TableModel |
getTableModel(String id)
Get the table model for the metrics details table.
|
public MetricsView(hudson.model.Run<?,?> owner)
MetricsView
.owner
- the Run
owning the viewpublic String getDisplayName()
getDisplayName
in interface hudson.model.ModelObject
public final hudson.model.Run<?,?> getOwner()
@JavaScriptMethod public List<MetricDefinition> getSupportedMetrics()
public String getSupportedMetricsJSON()
@JavaScriptMethod public String getMetricsJSON()
@JavaScriptMethod public String getMetricsTree(String metricId)
MetricsTreeNode
s for a specific metric.metricId
- the id of the metric to show@JavaScriptMethod public String getHistogram(String metricId)
metricId
- the id of the metric to show@JavaScriptMethod public String getScatterPlot(String metricId, String secondMetricId)
metricId
- the id of the first metric to includesecondMetricId
- the id of the second metric to includepublic Object getDynamic(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
ClassDetailsView
for the selected class.link
- the name of the class to show details forrequest
- Stapler requestresponse
- Stapler responsepublic io.jenkins.plugins.datatables.TableModel getTableModel(String id)
getTableModel
in interface io.jenkins.plugins.datatables.AsyncTableContentProvider
id
- the id of the table to retrieveMetricsTableModel
containing all metricsCopyright © 2016–2020. All rights reserved.