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.
-
“judgment” – present when the monitor has a
goalset and judging is enabled. A hash with “meaningful” (Boolean), “confidence” (+“high”+ / “medium” / “low”), “reason” (String), and “fields” (Array of String) describing which fields the judge weighed.
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.
82 83 84 85 86 |
# File 'lib/firecrawl/models/monitor.rb', line 82 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.
80 81 82 |
# File 'lib/firecrawl/models/monitor.rb', line 80 def next_url @next_url end |
#pages ⇒ Object
Returns the value of attribute pages.
80 81 82 |
# File 'lib/firecrawl/models/monitor.rb', line 80 def pages @pages end |