Package ch.mobi.mobitor.model
Class ScreenViewHelper
- java.lang.Object
-
- ch.mobi.mobitor.model.ScreenViewHelper
-
@Component public class ScreenViewHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ScreenViewHelper(ServersConfigurationService serversConfigurationService, SonarReportLimitsRule sonarReportLimitsRule, ch.mobi.mobitor.service.EnvironmentsConfigurationService environmentsConfigurationService, NexusIqConfigurationService nexusIqConfigurationService, TeamCityCoverageLimitsRule teamCityCoverageLimitRules)
-
Method Summary
-
-
-
Constructor Detail
-
ScreenViewHelper
@Autowired public ScreenViewHelper(ServersConfigurationService serversConfigurationService, SonarReportLimitsRule sonarReportLimitsRule, ch.mobi.mobitor.service.EnvironmentsConfigurationService environmentsConfigurationService, NexusIqConfigurationService nexusIqConfigurationService, TeamCityCoverageLimitsRule teamCityCoverageLimitRules)
-
-
Method Detail
-
getCssClassForServer
public String getCssClassForServer(LiimaInformation liimaInformation)
-
getCssClassForProject
public String getCssClassForProject(TeamCityProjectInformation teamCityProjectInformation)
-
getCssClassForBuild
public String getCssClassForBuild(TeamCityBuildInformation tcInformation)
-
getVersionFromVersionInformation
public String getVersionFromVersionInformation(ch.mobi.mobitor.domain.screen.ServerContext serverContext, String applicationName)
-
getEnvironmentConfig
public ch.mobi.mobitor.config.EnvironmentConfigProperties getEnvironmentConfig(String environment)
-
getSonarCssClass
public String getSonarCssClass(SonarInformation sonarInformation)
-
getCoverageCssClass
public String getCoverageCssClass(TeamCityCoverageInformation teamCityCoverageInformation)
-
getRestCssClass
public String getRestCssClass(RestCallInformation restInformation)
-
getNumberOfRestErrors
public long getNumberOfRestErrors(ch.mobi.mobitor.domain.screen.Screen screen)
-
getTotalNumberOfRestCalls
public long getTotalNumberOfRestCalls(ch.mobi.mobitor.domain.screen.Screen screen)
-
getRestErrorsCssGradient
public String getRestErrorsCssGradient(long errors, long max)
-
getCssClassForNexusIq
public String getCssClassForNexusIq(NexusIqInformation nexusIqInformation)
-
getPolicySummary
public String getPolicySummary(NexusIqInformation nexusIqInformation)
-
getCssClassForZaproxy
public String getCssClassForZaproxy(ZaproxyInformation zaproxyInformation)
-
getCssClassForJira
public String getCssClassForJira(JiraInformation jiraInformation)
-
getRestartCountClass
public String getRestartCountClass(long restartCount)
-
getCssClassForDb
public String getCssClassForDb(FlywayRestServiceResponse flywayResponse)
-
getFlywayRestServiceResponse
public FlywayRestServiceResponse getFlywayRestServiceResponse(RestCallInformation restCallInformation)
-
getKubernetesPodStatusCssClass
public String getKubernetesPodStatusCssClass(KubernetesBatchJobInformation information)
-
getKubernetesPodStatusIconCssClass
public String getKubernetesPodStatusIconCssClass(KubernetesBatchJobInformation information)
-
getEdwhDeploymentStatusCssClass
public String getEdwhDeploymentStatusCssClass(EdwhDeploymentsInformation information)
-
getDwhDeploymentStatusCssClass
public String getDwhDeploymentStatusCssClass(DwhDeploymentsInformation information)
-
getStreamworksStatusCssClass
public String getStreamworksStatusCssClass(StreamworksStatusInformation info)
-
getStreamworksLastRunStatusCssClass
public String getStreamworksLastRunStatusCssClass(StreamworksLastRunStatusInformation info)
-
getCssClassForSwd
public String getCssClassForSwd(SwdDeploymentInformation swdInfo)
-
-