Class JenkinsMetricsImpl
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Metrics.Data.JenkinsMetricsImpl
-
- All Implemented Interfaces:
IPublishMetrics
public class JenkinsMetricsImpl extends Object implements IPublishMetrics
-
-
Constructor Summary
Constructors Constructor Description JenkinsMetricsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashMap<String,Object>
collectMetrics(Object details)
This function will set Jenkins properties and send details to clientint
getActivePlugins()
int
getFailedPlugins()
String
getHostName()
int
getInactivePlugins()
int
getPlugins()
int
getProjects()
int
getUpdateablePlugins()
void
incrementActivePlugins()
void
incrementInactivePlugins()
void
incrementUpdateablePlugins()
void
setFailedPlugins(int failedPlugins)
void
setHostName(String hostName)
void
setPlugins(int plugins)
void
setProjects(int projects)
-
-
-
Method Detail
-
getPlugins
public int getPlugins()
-
setPlugins
public void setPlugins(int plugins)
-
getProjects
public int getProjects()
-
setProjects
public void setProjects(int projects)
-
getHostName
public String getHostName()
-
setHostName
public void setHostName(String hostName)
-
getActivePlugins
public int getActivePlugins()
-
incrementActivePlugins
public void incrementActivePlugins()
-
getFailedPlugins
public int getFailedPlugins()
-
setFailedPlugins
public void setFailedPlugins(int failedPlugins)
-
getInactivePlugins
public int getInactivePlugins()
-
incrementInactivePlugins
public void incrementInactivePlugins()
-
getUpdateablePlugins
public int getUpdateablePlugins()
-
incrementUpdateablePlugins
public void incrementUpdateablePlugins()
-
collectMetrics
public HashMap<String,Object> collectMetrics(Object details)
This function will set Jenkins properties and send details to client- Specified by:
collectMetrics
in interfaceIPublishMetrics
-
-