Class: Firecrawl::Models::MonitorCheckDetail
- Inherits:
-
MonitorCheck
- Object
- MonitorCheck
- Firecrawl::Models::MonitorCheckDetail
- Defined in:
- lib/firecrawl/models/monitor.rb
Overview
A monitor check with paginated page results inlined.
Each entry in #pages is a Hash with the standard monitor page fields (id, targetId, url, status, previousScrapeId, currentScrapeId, statusCode, error, metadata, createdAt) plus:
-
“diff” – when the page changed. A hash with “text” (markdown unified diff) and/or “json” (parseDiff AST for markdown monitors, or a per-field { “previous”, “current” } map for JSON-extraction monitors).
-
“snapshot” – present on JSON / mixed-mode monitors. A hash with a “json” key holding the current JSON extraction at this run.
Instance Attribute Summary collapse
-
#next_url ⇒ Object
Returns the value of attribute next_url.
-
#pages ⇒ Object
Returns the value of attribute pages.
Attributes inherited from MonitorCheck
#actual_credits, #billing_status, #created_at, #error, #estimated_credits, #finished_at, #id, #monitor_id, #notification_status, #reserved_credits, #scheduled_for, #started_at, #status, #summary, #target_results, #trigger, #updated_at
Instance Method Summary collapse
-
#initialize(data) ⇒ MonitorCheckDetail
constructor
A new instance of MonitorCheckDetail.
Constructor Details
#initialize(data) ⇒ MonitorCheckDetail
Returns a new instance of MonitorCheckDetail.
74 75 76 77 78 |
# File 'lib/firecrawl/models/monitor.rb', line 74 def initialize(data) super @pages = data["pages"] || [] @next_url = data["next"] end |
Instance Attribute Details
#next_url ⇒ Object
Returns the value of attribute next_url.
72 73 74 |
# File 'lib/firecrawl/models/monitor.rb', line 72 def next_url @next_url end |
#pages ⇒ Object
Returns the value of attribute pages.
72 73 74 |
# File 'lib/firecrawl/models/monitor.rb', line 72 def pages @pages end |