Package ai.shipeasy.admin.model
Class ExperimentInlineMetric
java.lang.Object
ai.shipeasy.admin.model.ExperimentInlineMetric
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ExperimentInlineMetric
extends Object
Inline metric — a DSL `query`, or an `event` (+ `aggregation`/`value`) the server compiles into one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReducer for the `event` form.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregation(ExperimentInlineMetric.AggregationEnum aggregation) booleanstatic ExperimentInlineMetricCreate an instance of ExperimentInlineMetric given an JSON stringReducer for the `event` form.getEvent()Event name to build the metric from server-side.Per-experiment override of the metric's default minimum effect of interest (relative, 0–1) — the smallest change worth acting on for this experiment's decision.getName()Stable metric key.getQuery()Metric DSL string.getValue()Numeric event property for `sum`/`avg` (with `event`).inthashCode()minEffectOfInterest(BigDecimal minEffectOfInterest) voidsetAggregation(ExperimentInlineMetric.AggregationEnum aggregation) voidvoidsetMinEffectOfInterest(BigDecimal minEffectOfInterest) voidvoidvoidtoJson()Convert an instance of ExperimentInlineMetric 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_QUERY
- See Also:
-
SERIALIZED_NAME_EVENT
- See Also:
-
SERIALIZED_NAME_AGGREGATION
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_MIN_EFFECT_OF_INTEREST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ExperimentInlineMetric
public ExperimentInlineMetric()
-
-
Method Details
-
name
-
getName
Stable metric key. Single segment or `folder.name`; lowercase letters, digits, `_`/`-`; max 128 chars.- Returns:
- name
-
setName
-
query
-
getQuery
Metric DSL string. Provide this OR `event`.- Returns:
- query
-
setQuery
-
event
-
getEvent
Event name to build the metric from server-side. Auto-created if missing.- Returns:
- event
-
setEvent
-
aggregation
public ExperimentInlineMetric aggregation(@Nullable ExperimentInlineMetric.AggregationEnum aggregation) -
getAggregation
Reducer for the `event` form. Defaults to `count_users`.- Returns:
- aggregation
-
setAggregation
-
value
-
getValue
Numeric event property for `sum`/`avg` (with `event`).- Returns:
- value
-
setValue
-
minEffectOfInterest
-
getMinEffectOfInterest
Per-experiment override of the metric's default minimum effect of interest (relative, 0–1) — the smallest change worth acting on for this experiment's decision. `null`/omitted inherits the metric default. For a guardrail, the non-inferiority margin.- Returns:
- minEffectOfInterest
-
setMinEffectOfInterest
-
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 ExperimentInlineMetric
-
fromJson
Create an instance of ExperimentInlineMetric given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExperimentInlineMetric
- Throws:
IOException- if the JSON string is invalid with respect to ExperimentInlineMetric
-
toJson
Convert an instance of ExperimentInlineMetric to an JSON string- Returns:
- JSON string
-