Class PropertyStatistics
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.PropertyStatistics
-
public class PropertyStatistics extends Object
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount(String key)
Returns the maximum number of issues for the specified property instance.String
getDisplayName(String key)
Returns a display name for the specified property instance.long
getErrorsCount(String key)
Returns the number of issues with severitySeverity.ERROR
for the specified property instance.long
getHighCount(String key)
Returns the number of issues with severitySeverity.WARNING_HIGH
for the specified property instance.Set<String>
getKeys()
Returns all instances for this property.long
getLowCount(String key)
Returns the number of issues with severitySeverity.WARNING_LOW
for the specified property instance.int
getMax()
Returns the maximum number of issues for each property instance.long
getNewCount(String key)
Returns the new number of issues for the specified property instance.long
getNormalCount(String key)
Returns the number of issues with severitySeverity.WARNING_NORMAL
for the specified property instance.String
getProperty()
Returns the name of this property.String
getToolTip(String key)
Returns a display name for the specified property instance.int
getTotal()
Returns the total number of issues.int
getTotalNewIssues()
Returns the amount of issues introduced since the last build.
-
-
-
Method Detail
-
getTotal
public int getTotal()
Returns the total number of issues.- Returns:
- total number of issues
-
getTotalNewIssues
public int getTotalNewIssues()
Returns the amount of issues introduced since the last build.- Returns:
- the amount of new issues
-
getProperty
public String getProperty()
Returns the name of this property. E.g., 'package name', 'module name', ect.- Returns:
- the name
-
getDisplayName
public String getDisplayName(String key)
Returns a display name for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the display name
-
getToolTip
public String getToolTip(String key)
Returns a display name for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the display name
-
getKeys
public Set<String> 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
public long getCount(String key)
Returns the maximum number of issues for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the maximum number of issues
-
getNewCount
public long getNewCount(String key)
Returns the new number of issues for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the new number of issues
-
getErrorsCount
public long getErrorsCount(String key)
Returns the number of issues with severitySeverity.ERROR
for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the number of high severity issues
-
getHighCount
public long getHighCount(String key)
Returns the number of issues with severitySeverity.WARNING_HIGH
for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the number of high severity issues
-
getNormalCount
public long getNormalCount(String key)
Returns the number of issues with severitySeverity.WARNING_NORMAL
for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the number of normal severity issues
-
getLowCount
public long getLowCount(String key)
Returns the number of issues with severitySeverity.WARNING_LOW
for the specified property instance.- Parameters:
key
- the property instance- Returns:
- the number of low severity issues
-
-