Class AntigravityLogFormat
java.lang.Object
io.jenkins.plugins.aiagentjob.antigravity.AntigravityLogFormat
- All Implemented Interfaces:
AiAgentLogFormat
Classifies Antigravity CLI
stream-json events.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclassify(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a single JSON object into a parsed event.classifyAll(long lineNumber, net.sf.json.JSONObject json) Attempt to classify a JSON object that may contain multiple displayable events.
-
Field Details
-
INSTANCE
-
-
Method Details
-
classify
Description copied from interface:AiAgentLogFormatAttempt to classify a single JSON object into a parsed event.- Specified by:
classifyin interfaceAiAgentLogFormat- Parameters:
lineNumber- 1-based line number in the raw log filejson- the parsed JSON object for this line- Returns:
- a classified
AiAgentLogParser.ParsedLine, ornullif this format does not handle the given JSON structure
-
classifyAll
Description copied from interface:AiAgentLogFormatAttempt to classify a JSON object that may contain multiple displayable events.Implementations that emit at most one event can rely on this default. Returning
nullstill means the format did not recognize the input; an empty list means it recognized the input but intentionally produced no visible events.- Specified by:
classifyAllin interfaceAiAgentLogFormat
-