Class: Firecrawl::Models::MonitorTargetResult
- Inherits:
-
Object
- Object
- Firecrawl::Models::MonitorTargetResult
- Defined in:
- lib/firecrawl/models/monitor.rb
Overview
A per-target result on a monitor check.
Search targets (+type: "search"+) populate the search_completed,
result_count, matches, summary, judge_degraded,
degraded_reason, search_credits, judge_credits, and
results_judged fields.
Instance Attribute Summary collapse
-
#crawl_id ⇒ Object
readonly
Returns the value of attribute crawl_id.
-
#degraded_reason ⇒ Object
readonly
Returns the value of attribute degraded_reason.
-
#expected_jobs ⇒ Object
readonly
Returns the value of attribute expected_jobs.
-
#judge_credits ⇒ Object
readonly
Returns the value of attribute judge_credits.
-
#judge_degraded ⇒ Object
readonly
Returns the value of attribute judge_degraded.
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#result_count ⇒ Object
readonly
Returns the value of attribute result_count.
-
#results_judged ⇒ Object
readonly
Returns the value of attribute results_judged.
-
#search_completed ⇒ Object
readonly
Returns the value of attribute search_completed.
-
#search_credits ⇒ Object
readonly
Returns the value of attribute search_credits.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#target_id ⇒ Object
readonly
Returns the value of attribute target_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ MonitorTargetResult
constructor
A new instance of MonitorTargetResult.
Constructor Details
#initialize(data) ⇒ MonitorTargetResult
Returns a new instance of MonitorTargetResult.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/firecrawl/models/monitor.rb', line 62 def initialize(data) @target_id = data["targetId"] @type = data["type"] @expected_jobs = data["expectedJobs"] @crawl_id = data["crawlId"] # search target result fields @search_completed = data["searchCompleted"] @result_count = data["resultCount"] @matches = data["matches"] @summary = data["summary"] @judge_degraded = data["judgeDegraded"] @degraded_reason = data["degradedReason"] @search_credits = data["searchCredits"] @judge_credits = data["judgeCredits"] @results_judged = data["resultsJudged"] end |
Instance Attribute Details
#crawl_id ⇒ Object (readonly)
Returns the value of attribute crawl_id.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def crawl_id @crawl_id end |
#degraded_reason ⇒ Object (readonly)
Returns the value of attribute degraded_reason.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def degraded_reason @degraded_reason end |
#expected_jobs ⇒ Object (readonly)
Returns the value of attribute expected_jobs.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def expected_jobs @expected_jobs end |
#judge_credits ⇒ Object (readonly)
Returns the value of attribute judge_credits.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def judge_credits @judge_credits end |
#judge_degraded ⇒ Object (readonly)
Returns the value of attribute judge_degraded.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def judge_degraded @judge_degraded end |
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def matches @matches end |
#result_count ⇒ Object (readonly)
Returns the value of attribute result_count.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def result_count @result_count end |
#results_judged ⇒ Object (readonly)
Returns the value of attribute results_judged.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def results_judged @results_judged end |
#search_completed ⇒ Object (readonly)
Returns the value of attribute search_completed.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def search_completed @search_completed end |
#search_credits ⇒ Object (readonly)
Returns the value of attribute search_credits.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def search_credits @search_credits end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def summary @summary end |
#target_id ⇒ Object (readonly)
Returns the value of attribute target_id.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def target_id @target_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
57 58 59 |
# File 'lib/firecrawl/models/monitor.rb', line 57 def type @type end |