Class: Firecrawl::Models::MonitorTargetResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idObject (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_reasonObject (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_jobsObject (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_creditsObject (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_degradedObject (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

#matchesObject (readonly)

Returns the value of attribute matches.



57
58
59
# File 'lib/firecrawl/models/monitor.rb', line 57

def matches
  @matches
end

#result_countObject (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_judgedObject (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_completedObject (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_creditsObject (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

#summaryObject (readonly)

Returns the value of attribute summary.



57
58
59
# File 'lib/firecrawl/models/monitor.rb', line 57

def summary
  @summary
end

#target_idObject (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

#typeObject (readonly)

Returns the value of attribute type.



57
58
59
# File 'lib/firecrawl/models/monitor.rb', line 57

def type
  @type
end