Package ai.shipeasy.admin.model
Class UpdateMetricWithQuery
java.lang.Object
ai.shipeasy.admin.model.UpdateMetricWithQuery
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateMetricWithQuery
extends Object
Update-metric variant that replaces the query with a `query` DSL string.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultMinEffectOfInterest(BigDecimal defaultMinEffectOfInterest) direction(MetricDirection direction) booleanstatic UpdateMetricWithQueryCreate an instance of UpdateMetricWithQuery given an JSON stringDefault minimum effect of interest (relative, 0–1) — the smallest change in this metric worth acting on, used as the power-planning baseline.Get directionSource event the query reads from.Optional folder name grouping items in the dashboard.getQuery()Metric query DSL string, e.g.Winsorise percentile (1–99) to clamp outliers.inthashCode()voidsetDefaultMinEffectOfInterest(BigDecimal defaultMinEffectOfInterest) voidsetDirection(MetricDirection direction) voidsetEventName(String eventName) voidvoidvoidsetWinsorizePct(Integer winsorizePct) toJson()Convert an instance of UpdateMetricWithQuery to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwinsorizePct(Integer winsorizePct)
-
Field Details
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_EVENT_NAME
- See Also:
-
SERIALIZED_NAME_QUERY
- See Also:
-
SERIALIZED_NAME_WINSORIZE_PCT
- See Also:
-
SERIALIZED_NAME_DEFAULT_MIN_EFFECT_OF_INTEREST
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateMetricWithQuery
public UpdateMetricWithQuery()
-
-
Method Details
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
eventName
-
getEventName
Source event the query reads from.- Returns:
- eventName
-
setEventName
-
query
-
getQuery
Metric query DSL string, e.g. `sum(purchase, amount)`. The alternative to `query_ir`. Every label the query references — in filters, the value position, `by (…)`, or `without (…)` — must exist as a property on the tracked event's payload; a query over a label the event never carries validates fine but returns empty results.- Returns:
- query
-
setQuery
-
winsorizePct
-
getWinsorizePct
Winsorise percentile (1–99) to clamp outliers. Defaults to 99. minimum: 1 maximum: 99- Returns:
- winsorizePct
-
setWinsorizePct
-
defaultMinEffectOfInterest
public UpdateMetricWithQuery defaultMinEffectOfInterest(@Nullable BigDecimal defaultMinEffectOfInterest) -
getDefaultMinEffectOfInterest
Default minimum effect of interest (relative, 0–1) — the smallest change in this metric worth acting on, used as the power-planning baseline. Intrinsic to the metric; an experiment overrides it per-attachment with `min_effect_of_interest` when a specific decision has a different cost/risk bar. `null` to omit.- Returns:
- defaultMinEffectOfInterest
-
setDefaultMinEffectOfInterest
-
direction
-
getDirection
Get direction- Returns:
- direction
-
setDirection
-
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 UpdateMetricWithQuery
-
fromJson
Create an instance of UpdateMetricWithQuery given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateMetricWithQuery
- Throws:
IOException- if the JSON string is invalid with respect to UpdateMetricWithQuery
-
toJson
Convert an instance of UpdateMetricWithQuery to an JSON string- Returns:
- JSON string
-