public static HealthStateScope forStage(String pipelineName, String stageName) { return new HealthStateScope(ScopeType.STAGE, pipelineName + "/" + stageName); }
public static HealthStateScope forFanin(String pipelineName) { return new HealthStateScope(ScopeType.FANIN, pipelineName); }
public static HealthStateScope forGroup(String groupName) { return new HealthStateScope(ScopeType.GROUP, groupName); }
public static HealthStateScope aboutPlugin(String symbolicName, String operation) { return new HealthStateScope(ScopeType.PLUGIN, symbolicName + operation); }
public static HealthStateScope forPipeline(String pipelineName) { return new HealthStateScope(ScopeType.PIPELINE, pipelineName); }
public static HealthStateScope forJob(String pipelineName, String stageName, String jobName) { return new HealthStateScope(ScopeType.JOB, pipelineName + "/" + stageName + "/" + jobName); }
public static HealthStateScope forConfigRepo(String operation) { return new HealthStateScope(ScopeType.CONFIG_REPO, operation); }
public static HealthStateScope forDuplicatePipelineLabel() { return new HealthStateScope(ScopeType.GLOBAL, "PipelineLabelCorrector"); }
public static HealthStateScope fromPlugin(String symbolicName) { return new HealthStateScope(ScopeType.FROM_PLUGIN, symbolicName); }
public static HealthStateScope forPartialConfigRepo(String fingerprint) { return new HealthStateScope(ScopeType.CONFIG_PARTIAL, fingerprint); }
public static HealthStateScope forAgent(String cookie) { return new HealthStateScope(ScopeType.GLOBAL, cookie); }
public static HealthStateScope forInvalidConfig() { return new HealthStateScope(ScopeType.GLOBAL, "global"); }
public static HealthStateScope aboutPlugin(String symbolicName) { return new HealthStateScope(ScopeType.PLUGIN, symbolicName); }
public static HealthStateScope forBackupCron() { return new HealthStateScope(ScopeType.SCHEDULED_BACKUP, "Scheduled backup"); }
public static HealthStateScope forMaterialConfig(MaterialConfig materialConfig) { return new HealthStateScope(ScopeType.MATERIAL, materialConfig.getSqlCriteria().toString()); }
public static HealthStateScope forMaterialUpdate(Material material) { return new HealthStateScope(ScopeType.MATERIAL_UPDATE, material.getFingerprint()); }
public static HealthStateScope forMaterial(Material material) { return new HealthStateScope(ScopeType.MATERIAL, material.getSqlCriteria().toString()); }
public static HealthStateScope forMaterialConfigUpdate(MaterialConfig materialConfig) { return new HealthStateScope(ScopeType.MATERIAL_UPDATE, materialConfig.getFingerprint()); }
public static HealthStateScope forPartialConfigRepo(ConfigRepoConfig repoConfig) { return new HealthStateScope(ScopeType.CONFIG_PARTIAL, repoConfig.getMaterialConfig().getFingerprint()); }