public interface ImpactAnalysisService
ImpactAnalysisService impactAnalysisService = ucmdbService.getImpactAnalysisService(); ImpactAnalysisFactory impactFactory = impactAnalysisService.getFactory(); ImpactAnalysisDefinition definition = impactFactory.createImpactAnalysisDefinition(); definition.addTriggerCI(disk).withSeverity(impactFactory.getSeverityByName("Warning(2)")); definition.useAllRules(); ImpactAnalysisResult impactResult = impactAnalysisService.analyze(definition); AffectedTopology affectedCIs = impactResult.getAffectedCIs(); for (AffectedCI affectedCI : affectedCIs.getAllCIs()) { System.out.println("Affected " + affectedCI.getType() + " " + affectedCI.getId() + " - severity " + affectedCI.getSeverity()); }
Modifier and Type | Method and Description |
---|---|
ImpactAnalysisResult |
analyze(ImpactAnalysisDefinition definition) |
ImpactAnalysisExpandedResult |
analyzeAndExpandPaths(ImpactAnalysisDefinition definition) |
ImpactAnalysisFactory |
getFactory() |
Map<String,Collection<String>> |
getImpactRulesPerBundle() |
List<ImpactSeverity> |
getSeverities()
Returns the list of severities defined in uCMDB, ordered from low to high.
|
Graph |
retrieveImpactLinkPaths(AffectedRelationPathRequest pathRequest) |
ImpactAnalysisFactory getFactory()
List<ImpactSeverity> getSeverities()
ImpactAnalysisResult analyze(ImpactAnalysisDefinition definition)
@NotFinalAPI ImpactAnalysisExpandedResult analyzeAndExpandPaths(ImpactAnalysisDefinition definition)
@NotFinalAPI Graph retrieveImpactLinkPaths(AffectedRelationPathRequest pathRequest)
Map<String,Collection<String>> getImpactRulesPerBundle()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.