Class UpdateMetricFields

java.lang.Object
ai.shipeasy.admin.model.UpdateMetricFields

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class UpdateMetricFields extends Object
Update-metric variant that leaves the query untouched (metadata-only edit — folder, event, winsorisation, default minimum effect of interest, direction).
  • Field Details

  • Constructor Details

    • UpdateMetricFields

      public UpdateMetricFields()
  • Method Details

    • folder

      public UpdateMetricFields folder(@Nullable String folder)
    • getFolder

      @Nullable public String getFolder()
      Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).
      Returns:
      folder
    • setFolder

      public void setFolder(@Nullable String folder)
    • eventName

      public UpdateMetricFields eventName(@Nullable String eventName)
    • getEventName

      @Nullable public String getEventName()
      Source event the query reads from.
      Returns:
      eventName
    • setEventName

      public void setEventName(@Nullable String eventName)
    • winsorizePct

      public UpdateMetricFields winsorizePct(@Nullable Integer winsorizePct)
    • getWinsorizePct

      @Nullable public Integer getWinsorizePct()
      Winsorise percentile (1–99) to clamp outliers. Defaults to 99. minimum: 1 maximum: 99
      Returns:
      winsorizePct
    • setWinsorizePct

      public void setWinsorizePct(@Nullable Integer winsorizePct)
    • defaultMinEffectOfInterest

      public UpdateMetricFields defaultMinEffectOfInterest(@Nullable BigDecimal defaultMinEffectOfInterest)
    • getDefaultMinEffectOfInterest

      @Nullable public BigDecimal 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

      public void setDefaultMinEffectOfInterest(@Nullable BigDecimal defaultMinEffectOfInterest)
    • direction

      public UpdateMetricFields direction(@Nullable MetricDirection direction)
    • getDirection

      @Nullable public MetricDirection getDirection()
      Get direction
      Returns:
      direction
    • setDirection

      public void setDirection(@Nullable MetricDirection direction)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 UpdateMetricFields
    • fromJson

      public static UpdateMetricFields fromJson(String jsonString) throws IOException
      Create an instance of UpdateMetricFields given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of UpdateMetricFields
      Throws:
      IOException - if the JSON string is invalid with respect to UpdateMetricFields
    • toJson

      public String toJson()
      Convert an instance of UpdateMetricFields to an JSON string
      Returns:
      JSON string