Class ABTestResource
- java.lang.Object
-
- lumis.service.analytics.abtest.rest.ABTestResource
-
-
Constructor Summary
Constructors Constructor Description ABTestResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abandonExperiment(HttpServletRequest request, String experimentId, String reqData)
Abandon theActiveExperimentVariant
.String
applyExperiment(HttpServletRequest request, String experimentId, String reqData)
Perform the operation of creating a newActiveExperimentVariant
if need and respond with theABTestExperimentVariant
configuration.void
experimentGoalAchieved(HttpServletRequest request, String experimentId, String reqData)
Complete theActiveExperimentVariant
.
-
-
-
Method Detail
-
applyExperiment
@Path("/applyExperiment/{targetExperiment:[a-fA-F0-9]{32}}") @POST @Consumes({"application/json","text/plain"}) @Produces("application/json") public String applyExperiment(@Context HttpServletRequest request, @PathParam("targetExperiment") String experimentId, @NotNull String reqData) throws PortalException
Perform the operation of creating a newActiveExperimentVariant
if need and respond with theABTestExperimentVariant
configuration.- Parameters:
request
- The request to save the applied experiment.experimentId
- The experiment to be applied.reqData
- JSON object containing the additional data.- Returns:
- A JSON containing the variant configuration or null if the session is not in a
ActiveExperimentVariant
. - Throws:
PortalException
- Since:
- 14.0.0
-
experimentGoalAchieved
@Path("/experimentGoalAchieved/{targetExperiment:[a-fA-F0-9]{32}}") @POST public void experimentGoalAchieved(@Context HttpServletRequest request, @PathParam("targetExperiment") String experimentId, @NotNull String reqData) throws PortalException
Complete theActiveExperimentVariant
.- Parameters:
request
- The request of the applied experiment.experimentId
- The experiment to be complete.reqData
- JSON object containing the additional data.- Throws:
PortalException
- Since:
- 14.0.0
-
abandonExperiment
@Path("/abandonExperiment/{targetExperiment:[a-fA-F0-9]{32}}") @POST public void abandonExperiment(@Context HttpServletRequest request, @PathParam("targetExperiment") String experimentId, @NotNull String reqData) throws PortalException
Abandon theActiveExperimentVariant
.- Parameters:
request
- The request of the applied experiment.experimentId
- The experiment to be abandon.reqData
- JSON object containing the additional data.- Throws:
PortalException
- Since:
- 14.0.0
-
-