Package ai.shipeasy.admin.model
Class UpdateExperimentRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateExperimentRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateExperimentRequest
extends Object
Body for `PATCH /api/admin/experiments/{id}`. Partial — only supplied fields change. `allocation_pct`, `groups`, `salt`, `universe`, `params` are immutable while the experiment is running (stop first).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets inner -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGuardrailMetricsItem(ExperimentInlineMetric guardrailMetricsItem) allocationPct(Integer allocationPct) allocationPercent(BigDecimal allocationPercent) description(String description) booleanstatic UpdateExperimentRequestCreate an instance of UpdateExperimentRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Basis-points allocation (0–10000).Allocation as a **percentage** (0–100).Get audienceUser-attribute name used as the bucketing key — e.g.Get descriptionOptional folder name grouping items in the dashboard.Replaces the goal metric — DSL `query` or `event` (+`aggregation`/`value`) the server compiles (event auto-upserted).Replacement groups.Replaces the guardrail set wholesale (event auto-upserted per entry).Get hypothesisGet minRuntimeDays minimum: 0 maximum: 365Get minSampleSize minimum: 1 maximum: 9007199254740991getName()Stable experiment key.Get ownerEmailMap of param-name → scalar type.getSalt()Hash salt.Get sequentialTestingGet significanceThreshold minimum: 0.00010 maximum: 0.5getTag()Get tagGet targetingGateNew universe name.goalMetric(ExperimentInlineMetric goalMetric) guardrailMetrics(List<ExperimentInlineMetric> guardrailMetrics) inthashCode()hypothesis(String hypothesis) minRuntimeDays(Integer minRuntimeDays) minSampleSize(Integer minSampleSize) ownerEmail(String ownerEmail) params(Map<String, UpdateExperimentRequest.InnerEnum> params) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putParamsItem(String key, UpdateExperimentRequest.InnerEnum paramsItem) sequentialTesting(Boolean sequentialTesting) voidsetAllocationPct(Integer allocationPct) voidsetAllocationPercent(BigDecimal allocationPercent) voidsetAudience(String audience) voidsetBucketBy(String bucketBy) voidsetDescription(String description) voidvoidsetGoalMetric(ExperimentInlineMetric goalMetric) voidvoidsetGuardrailMetrics(List<ExperimentInlineMetric> guardrailMetrics) voidsetHypothesis(String hypothesis) voidsetMinRuntimeDays(Integer minRuntimeDays) voidsetMinSampleSize(Integer minSampleSize) voidvoidsetOwnerEmail(String ownerEmail) voidvoidvoidsetSequentialTesting(Boolean sequentialTesting) voidsetSignificanceThreshold(BigDecimal significanceThreshold) voidvoidsetTargetingGate(String targetingGate) voidsetUniverse(String universe) significanceThreshold(BigDecimal significanceThreshold) targetingGate(String targetingGate) toJson()Convert an instance of UpdateExperimentRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_HYPOTHESIS
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
SERIALIZED_NAME_OWNER_EMAIL
- See Also:
-
SERIALIZED_NAME_AUDIENCE
- See Also:
-
SERIALIZED_NAME_BUCKET_BY
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_TARGETING_GATE
- See Also:
-
SERIALIZED_NAME_ALLOCATION_PCT
- See Also:
-
SERIALIZED_NAME_ALLOCATION_PERCENT
- See Also:
-
SERIALIZED_NAME_SALT
- See Also:
-
SERIALIZED_NAME_UNIVERSE
- See Also:
-
SERIALIZED_NAME_PARAMS
- See Also:
-
SERIALIZED_NAME_GROUPS
- See Also:
-
SERIALIZED_NAME_SIGNIFICANCE_THRESHOLD
- See Also:
-
SERIALIZED_NAME_MIN_RUNTIME_DAYS
- See Also:
-
SERIALIZED_NAME_MIN_SAMPLE_SIZE
- See Also:
-
SERIALIZED_NAME_SEQUENTIAL_TESTING
- See Also:
-
SERIALIZED_NAME_GOAL_METRIC
- See Also:
-
SERIALIZED_NAME_GUARDRAIL_METRICS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateExperimentRequest
public UpdateExperimentRequest()
-
-
Method Details
-
name
-
getName
Stable experiment key. Single segment or `folder.name` (a-z, 0-9, `_`/`-`; max 128 chars). Used by SDKs as `Shipeasy.getExperiment(user, '<name>')`. Immutable after create.- Returns:
- name
-
setName
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
hypothesis
-
getHypothesis
Get hypothesis- Returns:
- hypothesis
-
setHypothesis
-
tag
-
getTag
Get tag- Returns:
- tag
-
setTag
-
ownerEmail
-
getOwnerEmail
Get ownerEmail- Returns:
- ownerEmail
-
setOwnerEmail
-
audience
-
getAudience
Get audience- Returns:
- audience
-
setAudience
-
bucketBy
-
getBucketBy
User-attribute name used as the bucketing key — e.g. `user_id` (default), `session_id`, `device_id`, or a custom attribute like `company_id` to keep a whole org on one variant. Defaults to `user_id` when omitted.- Returns:
- bucketBy
-
setBucketBy
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
targetingGate
-
getTargetingGate
Get targetingGate- Returns:
- targetingGate
-
setTargetingGate
-
allocationPct
-
getAllocationPct
Basis-points allocation (0–10000). Use `allocation_percent` (0–100) for percent. Immutable while the experiment is running. minimum: 0 maximum: 10000- Returns:
- allocationPct
-
setAllocationPct
-
allocationPercent
-
getAllocationPercent
Allocation as a **percentage** (0–100). Friendlier alias for `allocation_pct`; converted to basis points server-side. Wins over `allocation_pct` if both are supplied. Immutable while running. minimum: 0 maximum: 100- Returns:
- allocationPercent
-
setAllocationPercent
-
salt
-
getSalt
Hash salt. Immutable while running.- Returns:
- salt
-
setSalt
-
universe
-
getUniverse
New universe name. Immutable while running. Returns `422` if the universe doesn't exist.- Returns:
- universe
-
setUniverse
-
params
public UpdateExperimentRequest params(@Nullable Map<String, UpdateExperimentRequest.InnerEnum> params) -
putParamsItem
public UpdateExperimentRequest putParamsItem(String key, UpdateExperimentRequest.InnerEnum paramsItem) -
getParams
Map of param-name → scalar type. Defines the shape of `groups[].params`. Example: `{ headline: 'string', show_cta: 'bool' }`.- Returns:
- params
-
setParams
-
groups
public UpdateExperimentRequest groups(@Nullable List<ListExperimentsResponseDataInnerGroupsInner> groups) -
addGroupsItem
public UpdateExperimentRequest addGroupsItem(ListExperimentsResponseDataInnerGroupsInner groupsItem) -
getGroups
Replacement groups. Weights must sum to 10000. Immutable while running.- Returns:
- groups
-
setGroups
-
significanceThreshold
-
getSignificanceThreshold
Get significanceThreshold minimum: 0.00010 maximum: 0.5- Returns:
- significanceThreshold
-
setSignificanceThreshold
-
minRuntimeDays
-
getMinRuntimeDays
Get minRuntimeDays minimum: 0 maximum: 365- Returns:
- minRuntimeDays
-
setMinRuntimeDays
-
minSampleSize
-
getMinSampleSize
Get minSampleSize minimum: 1 maximum: 9007199254740991- Returns:
- minSampleSize
-
setMinSampleSize
-
sequentialTesting
-
getSequentialTesting
Get sequentialTesting- Returns:
- sequentialTesting
-
setSequentialTesting
-
goalMetric
-
getGoalMetric
Replaces the goal metric — DSL `query` or `event` (+`aggregation`/`value`) the server compiles (event auto-upserted).- Returns:
- goalMetric
-
setGoalMetric
-
guardrailMetrics
public UpdateExperimentRequest guardrailMetrics(@Nullable List<ExperimentInlineMetric> guardrailMetrics) -
addGuardrailMetricsItem
-
getGuardrailMetrics
Replaces the guardrail set wholesale (event auto-upserted per entry).- Returns:
- guardrailMetrics
-
setGuardrailMetrics
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UpdateExperimentRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UpdateExperimentRequest
-
fromJson
Create an instance of UpdateExperimentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateExperimentRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateExperimentRequest
-
toJson
Convert an instance of UpdateExperimentRequest to an JSON string- Returns:
- JSON string
-