Package ai.shipeasy.admin.model
Class SetExperimentMetricsRequestMetricsInner
java.lang.Object
ai.shipeasy.admin.model.SetExperimentMetricsRequestMetricsInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SetExperimentMetricsRequestMetricsInner
extends Object
SetExperimentMetricsRequestMetricsInner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumMetric role. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of SetExperimentMetricsRequestMetricsInner given an JSON stringExisting metric id in the project.Per-experiment override of the metric's `default_min_effect_of_interest` (relative, 0–1) — the smallest change worth acting on for THIS experiment's decision, which depends on the intervention's cost/risk.getRole()Metric role.inthashCode()minEffectOfInterest(BigDecimal minEffectOfInterest) voidsetMetricId(String metricId) voidsetMinEffectOfInterest(BigDecimal minEffectOfInterest) voidtoJson()Convert an instance of SetExperimentMetricsRequestMetricsInner 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_METRIC_ID
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_MIN_EFFECT_OF_INTEREST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SetExperimentMetricsRequestMetricsInner
public SetExperimentMetricsRequestMetricsInner()
-
-
Method Details
-
metricId
-
getMetricId
Existing metric id in the project.- Returns:
- metricId
-
setMetricId
-
role
public SetExperimentMetricsRequestMetricsInner role(@Nonnull SetExperimentMetricsRequestMetricsInner.RoleEnum role) -
getRole
Metric role. `goal` drives the decision, `guardrail` blocks ship if degraded, `secondary` is informational.- Returns:
- role
-
setRole
-
minEffectOfInterest
public SetExperimentMetricsRequestMetricsInner minEffectOfInterest(@Nullable BigDecimal minEffectOfInterest) -
getMinEffectOfInterest
Per-experiment override of the metric's `default_min_effect_of_interest` (relative, 0–1) — the smallest change worth acting on for THIS experiment's decision, which depends on the intervention's cost/risk. `null`/omitted falls back to the metric default. For a `guardrail` this is the non-inferiority margin (how large a regression is tolerated); for a `goal` it is the superiority threshold.- 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 SetExperimentMetricsRequestMetricsInner
-
fromJson
public static SetExperimentMetricsRequestMetricsInner fromJson(String jsonString) throws IOException Create an instance of SetExperimentMetricsRequestMetricsInner given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SetExperimentMetricsRequestMetricsInner
- Throws:
IOException- if the JSON string is invalid with respect to SetExperimentMetricsRequestMetricsInner
-
toJson
Convert an instance of SetExperimentMetricsRequestMetricsInner to an JSON string- Returns:
- JSON string
-