Package com.firecrawl.models
Class MonitorPageDiff
- java.lang.Object
-
- com.firecrawl.models.MonitorPageDiff
-
public class MonitorPageDiff extends java.lang.ObjectDiff payload returned alongside a monitor page when its scrape produced a change. The shape depends on what the monitor's formats asked for:- Markdown-only monitors:
textholds the unified diff andjsonholds theparseDiffAST (a{"files": [...]}object). - JSON-extraction monitors:
jsonholds the per-field map ofMonitorJsonFieldDiffentries andtextis absent. - Mixed (JSON + git-diff) monitors: both fields are populated:
jsonis the per-field diff map andtextis the markdown sidecar.
jsonis exposed asObjectbecause its concrete shape depends on the monitor mode; callers should cast or re-deserialize with Jackson into either aMap<String, MonitorJsonFieldDiff>(JSON / mixed mode) or aMap<String, Object>containing thefileskey (markdown mode). - Markdown-only monitors:
-
-
Constructor Summary
Constructors Constructor Description MonitorPageDiff()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetJson()java.lang.StringgetText()
-