Class PropertyStatistics
java.lang.Object
io.jenkins.plugins.analysis.core.model.PropertyStatistics
Groups issue by a specified property, like package name or origin. Provides statistics for this property in order to
draw graphs or show the result in tables.
- Author:
- Ullrich Hafner
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the maximum number of issues for the specified property instance.getDisplayName(String key) Returns a display name for the specified property instance.longgetErrorCount(String key) Returns the number of issues with severitySeverity.ERRORfor the specified property instance.longgetHighCount(String key) Returns the number of issues with severitySeverity.WARNING_HIGHfor the specified property instance.getKeys()Returns all instances for this property.longgetLowCount(String key) Returns the number of issues with severitySeverity.WARNING_LOWfor the specified property instance.intgetMax()Returns the maximum number of issues for each property instance.longgetNewCount(String key) Returns the new number of issues for the specified property instance.longgetNormalCount(String key) Returns the number of issues with severitySeverity.WARNING_NORMALfor the specified property instance.Returns the name of this property.getToolTip(String key) Returns a display name for the specified property instance.intgetTotal()Returns the total number of issues.intReturns the number of issues introduced since the last build.
-
Method Details
-
getTotal
public int getTotal()Returns the total number of issues.- Returns:
- total number of issues
-
getTotalNewIssues
public int getTotalNewIssues()Returns the number of issues introduced since the last build.- Returns:
- the number of new issues
-
getProperty
Returns the name of this property. E.g., 'package name', 'module name', ect.- Returns:
- the name
-
getDisplayName
Returns a display name for the specified property instance.- Parameters:
key- the property instance- Returns:
- the display name
-
getToolTip
Returns a display name for the specified property instance.- Parameters:
key- the property instance- Returns:
- the display name
-
getKeys
Returns all instances for this property.- Returns:
- the property instances
-
getMax
public int getMax()Returns the maximum number of issues for each property instance.- Returns:
- the maximum number of issues
-
getCount
Returns the maximum number of issues for the specified property instance.- Parameters:
key- the property instance- Returns:
- the maximum number of issues
-
getNewCount
Returns the new number of issues for the specified property instance.- Parameters:
key- the property instance- Returns:
- the new number of issues
-
getErrorCount
Returns the number of issues with severitySeverity.ERRORfor the specified property instance.- Parameters:
key- the property instance- Returns:
- the number of error issues
-
getHighCount
Returns the number of issues with severitySeverity.WARNING_HIGHfor the specified property instance.- Parameters:
key- the property instance- Returns:
- the number of high-severity issues
-
getNormalCount
Returns the number of issues with severitySeverity.WARNING_NORMALfor the specified property instance.- Parameters:
key- the property instance- Returns:
- the number of normal-severity issues
-
getLowCount
Returns the number of issues with severitySeverity.WARNING_LOWfor the specified property instance.- Parameters:
key- the property instance- Returns:
- the number of low-severity issues
-