@Extension public class CoverageMetricsProviderFactory extends MetricsProviderFactory<io.jenkins.plugins.coverage.CoverageAction>
MetricsProviderFactory
for coverage metrics. Data fetched from the code-coverage-api-plugin.Constructor and Description |
---|
CoverageMetricsProviderFactory() |
Modifier and Type | Method and Description |
---|---|
MetricsProvider |
getFor(List<io.jenkins.plugins.coverage.CoverageAction> actions)
Get all
MetricsMeasurement s for the actions of a build. |
ArrayList<MetricDefinition> |
supportedMetricsFor(List<io.jenkins.plugins.coverage.CoverageAction> actions)
Returns all metrics this
MetricsProviderFactory reports, for a list of certain builds. |
Class<io.jenkins.plugins.coverage.CoverageAction> |
type()
Get the type of action this
MetricsProviderFactory is for. |
all, getAllFor, getAllSupportedMetricsFor
public Class<io.jenkins.plugins.coverage.CoverageAction> type()
MetricsProviderFactory
MetricsProviderFactory
is for. (This is necessary to be able to provide the
correct classes for the getFor(List) method.)type
in class MetricsProviderFactory<io.jenkins.plugins.coverage.CoverageAction>
public MetricsProvider getFor(List<io.jenkins.plugins.coverage.CoverageAction> actions)
MetricsProviderFactory
MetricsMeasurement
s for the actions of a build. An implementing extension is supposed to filter
the relevant actions from the list and calculate their metrics from them.getFor
in class MetricsProviderFactory<io.jenkins.plugins.coverage.CoverageAction>
actions
- the actions of a buildMetricsProvider
providing the actionspublic ArrayList<MetricDefinition> supportedMetricsFor(List<io.jenkins.plugins.coverage.CoverageAction> actions)
MetricsProviderFactory
MetricsProviderFactory
reports, for a list of certain builds.supportedMetricsFor
in class MetricsProviderFactory<io.jenkins.plugins.coverage.CoverageAction>
actions
- the actions of a buildCopyright © 2016–2020. All rights reserved.