Package ai.shipeasy.admin.model
Class OpsMeasurePlanContext
java.lang.Object
ai.shipeasy.admin.model.OpsMeasurePlanContext
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OpsMeasurePlanContext
extends Object
An assistant-proposed measurement plan: what it already built, what it still needs, and the event instrumentation you implement.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCreatedItem(MeasurePlanResource createdItem) addInstrumentationItem(MeasurePlanStep instrumentationItem) addPendingItem(MeasurePlanResource pendingItem) created(List<MeasurePlanResource> created) booleanstatic OpsMeasurePlanContextCreate an instance of OpsMeasurePlanContext given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Resources the assistant already created on approval (live now) — don't recreate them.getGoal()The customer's underlying intent in their own words — WHAT they want to learn or achieve and WHY, independent of the specific steps.The code instrumentation to implement before the metrics can collect data.Resources the assistant couldn't create yet (usually a metric whose backing event isn't emitted); create these after the instrumentation lands.inthashCode()instrumentation(List<MeasurePlanStep> instrumentation) pending(List<MeasurePlanResource> pending) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreated(List<MeasurePlanResource> created) voidvoidsetInstrumentation(List<MeasurePlanStep> instrumentation) voidsetPending(List<MeasurePlanResource> pending) toJson()Convert an instance of OpsMeasurePlanContext 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_GOAL
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_PENDING
- See Also:
-
SERIALIZED_NAME_INSTRUMENTATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsMeasurePlanContext
public OpsMeasurePlanContext()
-
-
Method Details
-
goal
-
getGoal
The customer's underlying intent in their own words — WHAT they want to learn or achieve and WHY, independent of the specific steps. The plan below is a best-effort proposal made without repo access; when the code reveals a better path, this goal is the target you optimize for, not literal step-adherence.- Returns:
- goal
-
setGoal
-
created
-
addCreatedItem
-
getCreated
Resources the assistant already created on approval (live now) — don't recreate them.- Returns:
- created
-
setCreated
-
pending
-
addPendingItem
-
getPending
Resources the assistant couldn't create yet (usually a metric whose backing event isn't emitted); create these after the instrumentation lands.- Returns:
- pending
-
setPending
-
instrumentation
-
addInstrumentationItem
-
getInstrumentation
The code instrumentation to implement before the metrics can collect data.- Returns:
- instrumentation
-
setInstrumentation
-
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 OpsMeasurePlanContext 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 OpsMeasurePlanContext
-
fromJson
Create an instance of OpsMeasurePlanContext given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OpsMeasurePlanContext
- Throws:
IOException- if the JSON string is invalid with respect to OpsMeasurePlanContext
-
toJson
Convert an instance of OpsMeasurePlanContext to an JSON string- Returns:
- JSON string
-