Class ToolApi
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.restapi.ToolApi
-
@ExportedBean public class ToolApi extends Object
Remote API model for a static analysis tool that has been invoked in a build. Simple Java Bean that exposes several methods of a tool instance.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description ToolApi(String id, String name, String latestUrl, int size)
Deprecated.useToolApi(String, String, String, int, Map)
instead.ToolApi(String id, String name, String latestUrl, int size, Map<edu.hm.hafner.analysis.Severity,Integer> sizePerSeverity)
Creates a new instance ofToolApi
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorSize()
int
getHighSize()
String
getId()
String
getLatestUrl()
int
getLowSize()
String
getName()
int
getNormalSize()
int
getSize()
-
-
-
Constructor Detail
-
ToolApi
@Deprecated public ToolApi(String id, String name, String latestUrl, int size)
Deprecated.useToolApi(String, String, String, int, Map)
instead.Creates a new instance ofToolApi
.- Parameters:
id
- unique ID of the toolname
- human-readable name of the toollatestUrl
- the URL to the latest resultssize
- the number of warnings
-
ToolApi
public ToolApi(String id, String name, String latestUrl, int size, Map<edu.hm.hafner.analysis.Severity,Integer> sizePerSeverity)
Creates a new instance ofToolApi
.- Parameters:
id
- unique ID of the toolname
- human-readable name of the toollatestUrl
- the URL to the latest resultssize
- the number of warningssizePerSeverity
- the number of warnings, grouped by severity
-
-
Method Detail
-
getId
@Exported public String getId()
-
getName
@Exported public String getName()
-
getSize
@Exported public int getSize()
-
getLatestUrl
@Exported public String getLatestUrl()
-
getErrorSize
@Exported public int getErrorSize()
-
getHighSize
@Exported public int getHighSize()
-
getNormalSize
@Exported public int getNormalSize()
-
getLowSize
@Exported public int getLowSize()
-
-