Groovy Documentation

org.linkedin.glu.orchestration.engine.delta
[Groovy] Interface DeltaService


interface DeltaService

Method Summary
java.util.Map computeDelta(SystemModel expectedModel)

Computes the delta between the expected model and the current one (which will be computed) In this version the delta is a set

java.lang.String computeDeltaAsJSON(java.lang.Object params)

params.expectedModel:
expected model
params.currentModel:
current model (null means compute it)
params.errorsOnly:
filter to show only errors (true/false)
params.prettyPrint:
if json should be pretty printed (true/false)
@params.flatten flatten the model (true/false)

java.util.Map computeGroupByDelta(SystemModel expectedSystem, java.util.Map groupByDefinition, java.util.Map groupBySelection)

This method used to be in DashboardController and as been moved here to be able to share/test more easily

java.util.Map computeRawDelta(SystemModel expectedModel)

Computes the raw delta between the expected model and the current one (which will be computed)

 

Method Detail

computeDelta

java.util.Map computeDelta(SystemModel expectedModel)
Computes the delta between the expected model and the current one (which will be computed) In this version the delta is a set
Returns:
a map with 2 entries: accuracy and delta.


computeDeltaAsJSON

java.lang.String computeDeltaAsJSON(java.lang.Object params)
params.expectedModel:
expected model
params.currentModel:
current model (null means compute it)
params.errorsOnly:
filter to show only errors (true/false)
params.prettyPrint:
if json should be pretty printed (true/false)
params.flatten:
flatten the model (true/false)
Returns:
json representation of the delta


computeGroupByDelta

java.util.Map computeGroupByDelta(SystemModel expectedSystem, java.util.Map groupByDefinition, java.util.Map groupBySelection)
This method used to be in DashboardController and as been moved here to be able to share/test more easily
Parameters:
groupByDefinition - TODO MED YP (in the meantime look at consoleConfig.defaults.dashboard)
groupBySelection - TODO MED YP (params from the request)
Returns:
the delta grouped by according to the definition and selection


computeRawDelta

java.util.Map computeRawDelta(SystemModel expectedModel)
Computes the raw delta between the expected model and the current one (which will be computed)
Returns:
a map with 2 entries [accuracy: accuracy, delta: SystemModelDelta]


 

Groovy Documentation