Class MonitorPageDiff


  • public class MonitorPageDiff
    extends java.lang.Object
    Diff 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: text holds the unified diff and json holds the parseDiff AST (a {"files": [...]} object).
    • JSON-extraction monitors: json holds the per-field map of MonitorJsonFieldDiff entries and text is absent.
    • Mixed (JSON + git-diff) monitors: both fields are populated: json is the per-field diff map and text is the markdown sidecar.

    json is exposed as Object because its concrete shape depends on the monitor mode; callers should cast or re-deserialize with Jackson into either a Map<String, MonitorJsonFieldDiff> (JSON / mixed mode) or a Map<String, Object> containing the files key (markdown mode).

    • Constructor Summary

      Constructors 
      Constructor Description
      MonitorPageDiff()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getJson()  
      java.lang.String getText()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MonitorPageDiff

        public MonitorPageDiff()
    • Method Detail

      • getText

        public java.lang.String getText()
      • getJson

        public java.lang.Object getJson()