private CanaryScope getScopeForNamedScope(CanaryExecutionRequest executionRequest, String scopeName, boolean isCanary) { CanaryScopePair canaryScopePair = executionRequest.getScopes().get(scopeName); CanaryScope canaryScope = isCanary ? canaryScopePair.getExperimentScope() : canaryScopePair.getControlScope(); if (canaryScope == null) { throw new IllegalArgumentException("Canary scope for named scope " + scopeName + " is missing experimentScope or controlScope keys"); } return canaryScope; }
"judgementStartTimeIso", firstScopePair.getControlScope().getStart().toString(), "judgementStartTimeMillis", firstScopePair.getControlScope().getStart().toEpochMilli(), "judgementEndTimeIso", firstScopePair.getControlScope().getEnd().toString(), "judgementEndTimeMillis", firstScopePair.getControlScope().getEnd().toEpochMilli() ));
private CanaryScope getScopeForNamedScope(CanaryExecutionRequest executionRequest, String scopeName, boolean isCanary) { CanaryScopePair canaryScopePair = executionRequest.getScopes().get(scopeName); CanaryScope canaryScope = isCanary ? canaryScopePair.getExperimentScope() : canaryScopePair.getControlScope(); if (canaryScope == null) { throw new IllegalArgumentException("Canary scope for named scope " + scopeName + " is missing experimentScope or controlScope keys"); } return canaryScope; }
"judgementStartTimeIso", firstScopePair.getControlScope().getStart().toString(), "judgementStartTimeMillis", firstScopePair.getControlScope().getStart().toEpochMilli(), "judgementEndTimeIso", firstScopePair.getControlScope().getEnd().toString(), "judgementEndTimeMillis", firstScopePair.getControlScope().getEnd().toEpochMilli() ));