Package ai.shipeasy.admin.model
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`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ErrorSeriesRequestCreate an instance of ErrorSeriesRequest given an JSON stringBucket width in seconds (60s–86400s/1d).getFrom()Window start, epoch seconds (inclusive).getTo()Window end, epoch seconds (exclusive).inthashCode()voidvoidvoidtoJson()Convert an instance of ErrorSeriesRequest 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_FROM
- See Also:
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_BUCKET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ErrorSeriesRequest
public ErrorSeriesRequest()
-
-
Method Details
-
from
-
getFrom
Window start, epoch seconds (inclusive). minimum: 0- Returns:
- from
-
setFrom
-
to
-
getTo
Window end, epoch seconds (exclusive). Must be greater than `from`. minimum: 0- Returns:
- to
-
setTo
-
bucket
-
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
-
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 ErrorSeriesRequest
-
fromJson
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
Convert an instance of ErrorSeriesRequest to an JSON string- Returns:
- JSON string
-