Package ai.shipeasy.admin.model
Class GetMetricResponse
java.lang.Object
ai.shipeasy.admin.model.GetMetricResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class GetMetricResponse
extends Object
A metric definition.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDesired direction of movement. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultMinEffectOfInterest(BigDecimal defaultMinEffectOfInterest) direction(GetMetricResponse.DirectionEnum direction) booleanstatic GetMetricResponseCreate an instance of GetMetricResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ISO-8601 creation timestamp.Metric-level default minimum effect of interest (relative, 0–1), or `null`.Desired direction of movement.Source event name (camelCase in response).Folder grouping the metric, or `null`.getId()Stable opaque metric id.getName()Metric key.getQuery()Rendered DSL text form of the query, or `null` if it could not be rendered.Get queryIrISO-8601 last-update timestamp.Winsorise percentile applied to the metric.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(String createdAt) voidsetDefaultMinEffectOfInterest(BigDecimal defaultMinEffectOfInterest) voidsetDirection(GetMetricResponse.DirectionEnum direction) voidsetEventName(String eventName) voidvoidvoidvoidvoidsetQueryIr(QueryIr queryIr) voidsetUpdatedAt(String updatedAt) voidsetWinsorizePct(BigDecimal winsorizePct) toJson()Convert an instance of GetMetricResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwinsorizePct(BigDecimal winsorizePct)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_EVENT_NAME
- See Also:
-
SERIALIZED_NAME_QUERY
- See Also:
-
SERIALIZED_NAME_QUERY_IR
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
SERIALIZED_NAME_WINSORIZE_PCT
- See Also:
-
SERIALIZED_NAME_DEFAULT_MIN_EFFECT_OF_INTEREST
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GetMetricResponse
public GetMetricResponse()
-
-
Method Details
-
id
-
getId
Stable opaque metric id.- Returns:
- id
-
setId
-
name
-
getName
Metric key.- Returns:
- name
-
setName
-
folder
-
getFolder
Folder grouping the metric, or `null`.- Returns:
- folder
-
setFolder
-
eventName
-
getEventName
Source event name (camelCase in response).- Returns:
- eventName
-
setEventName
-
query
-
getQuery
Rendered DSL text form of the query, or `null` if it could not be rendered.- Returns:
- query
-
setQuery
-
queryIr
-
getQueryIr
Get queryIr- Returns:
- queryIr
-
setQueryIr
-
direction
-
getDirection
Desired direction of movement. `higher_better` (default), `lower_better`, or `neutral` (guardrail).- Returns:
- direction
-
setDirection
-
winsorizePct
-
getWinsorizePct
Winsorise percentile applied to the metric.- Returns:
- winsorizePct
-
setWinsorizePct
-
defaultMinEffectOfInterest
public GetMetricResponse defaultMinEffectOfInterest(@Nullable BigDecimal defaultMinEffectOfInterest) -
getDefaultMinEffectOfInterest
Metric-level default minimum effect of interest (relative, 0–1), or `null`.- Returns:
- defaultMinEffectOfInterest
-
setDefaultMinEffectOfInterest
-
createdAt
-
getCreatedAt
ISO-8601 creation timestamp.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
ISO-8601 last-update timestamp.- Returns:
- updatedAt
-
setUpdatedAt
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the GetMetricResponse instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 GetMetricResponse
-
fromJson
Create an instance of GetMetricResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetMetricResponse
- Throws:
IOException- if the JSON string is invalid with respect to GetMetricResponse
-
toJson
Convert an instance of GetMetricResponse to an JSON string- Returns:
- JSON string
-