Class ErrorSeriesRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ErrorSeriesRequest extends Object
Time window for the occurrence series. Bounds are epoch **seconds** (Analytics Engine stores the occurrence timestamp in seconds). `to` must be strictly greater than `from`.
  • Field Details

  • Constructor Details

    • ErrorSeriesRequest

      public ErrorSeriesRequest()
  • Method Details

    • from

      public ErrorSeriesRequest from(@Nonnull Integer from)
    • getFrom

      @Nonnull public Integer getFrom()
      Window start, epoch seconds (inclusive). minimum: 0
      Returns:
      from
    • setFrom

      public void setFrom(@Nonnull Integer from)
    • to

      public ErrorSeriesRequest to(@Nonnull Integer to)
    • getTo

      @Nonnull public Integer getTo()
      Window end, epoch seconds (exclusive). Must be greater than `from`. minimum: 0
      Returns:
      to
    • setTo

      public void setTo(@Nonnull Integer to)
    • bucket

      public ErrorSeriesRequest bucket(@Nullable Integer bucket)
    • getBucket

      @Nullable public Integer getBucket()
      Bucket width in seconds (60s–86400s/1d). Defaults to `3600` (hourly). Each returned point is floor-aligned to this width. minimum: 60 maximum: 86400
      Returns:
      bucket
    • setBucket

      public void setBucket(@Nullable Integer bucket)
    • 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 ErrorSeriesRequest
    • fromJson

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

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