@Extension public class WarningsMetricsProviderFactory extends MetricsProviderFactory<io.jenkins.plugins.analysis.core.model.ResultAction>
MetricsProviderFactory for the number of warnings and git forensics data. Uses the warnings-ng-plugin and
forensics-api-plugin as sources.| Constructor and Description |
|---|
WarningsMetricsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
MetricsProvider |
getFor(List<io.jenkins.plugins.analysis.core.model.ResultAction> actions)
Get all
MetricsMeasurements for the actions of a build. |
ArrayList<MetricDefinition> |
supportedMetricsFor(List<io.jenkins.plugins.analysis.core.model.ResultAction> actions)
Returns all metrics this
MetricsProviderFactory reports, for a list of certain builds. |
Class<io.jenkins.plugins.analysis.core.model.ResultAction> |
type()
Get the type of action this
MetricsProviderFactory is for. |
all, getAllFor, getAllSupportedMetricsForpublic Class<io.jenkins.plugins.analysis.core.model.ResultAction> type()
MetricsProviderFactoryMetricsProviderFactory 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.analysis.core.model.ResultAction>public MetricsProvider getFor(List<io.jenkins.plugins.analysis.core.model.ResultAction> actions)
MetricsProviderFactoryMetricsMeasurements 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.analysis.core.model.ResultAction>actions - the actions of a buildMetricsProvider providing the actionspublic ArrayList<MetricDefinition> supportedMetricsFor(List<io.jenkins.plugins.analysis.core.model.ResultAction> actions)
MetricsProviderFactoryMetricsProviderFactory reports, for a list of certain builds.supportedMetricsFor in class MetricsProviderFactory<io.jenkins.plugins.analysis.core.model.ResultAction>actions - the actions of a buildCopyright © 2016–2020. All rights reserved.