Class: Firecrawl::Models::Monitor
- Inherits:
-
Object
- Object
- Firecrawl::Models::Monitor
- Defined in:
- lib/firecrawl/models/monitor.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#current_check_id ⇒ Object
readonly
Returns the value of attribute current_check_id.
-
#estimated_credits_per_month ⇒ Object
readonly
Returns the value of attribute estimated_credits_per_month.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_check_summary ⇒ Object
readonly
Returns the value of attribute last_check_summary.
-
#last_run_at ⇒ Object
readonly
Returns the value of attribute last_run_at.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#next_run_at ⇒ Object
readonly
Returns the value of attribute next_run_at.
-
#notification ⇒ Object
readonly
Returns the value of attribute notification.
-
#retention_days ⇒ Object
readonly
Returns the value of attribute retention_days.
-
#schedule ⇒ Object
readonly
Returns the value of attribute schedule.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#webhook ⇒ Object
readonly
Returns the value of attribute webhook.
Instance Method Summary collapse
-
#initialize(data) ⇒ Monitor
constructor
A new instance of Monitor.
Constructor Details
#initialize(data) ⇒ Monitor
Returns a new instance of Monitor.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/firecrawl/models/monitor.rb', line 11 def initialize(data) @id = data["id"] @name = data["name"] @status = data["status"] @schedule = data["schedule"] @next_run_at = data["nextRunAt"] @last_run_at = data["lastRunAt"] @current_check_id = data["currentCheckId"] @targets = data["targets"] || [] @webhook = data["webhook"] @notification = data["notification"] @retention_days = data["retentionDays"] @estimated_credits_per_month = data["estimatedCreditsPerMonth"] @last_check_summary = data["lastCheckSummary"] @created_at = data["createdAt"] @updated_at = data["updatedAt"] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def created_at @created_at end |
#current_check_id ⇒ Object (readonly)
Returns the value of attribute current_check_id.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def current_check_id @current_check_id end |
#estimated_credits_per_month ⇒ Object (readonly)
Returns the value of attribute estimated_credits_per_month.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def estimated_credits_per_month @estimated_credits_per_month end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def id @id end |
#last_check_summary ⇒ Object (readonly)
Returns the value of attribute last_check_summary.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def last_check_summary @last_check_summary end |
#last_run_at ⇒ Object (readonly)
Returns the value of attribute last_run_at.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def last_run_at @last_run_at end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def name @name end |
#next_run_at ⇒ Object (readonly)
Returns the value of attribute next_run_at.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def next_run_at @next_run_at end |
#notification ⇒ Object (readonly)
Returns the value of attribute notification.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def notification @notification end |
#retention_days ⇒ Object (readonly)
Returns the value of attribute retention_days.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def retention_days @retention_days end |
#schedule ⇒ Object (readonly)
Returns the value of attribute schedule.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def schedule @schedule end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def status @status end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def targets @targets end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def updated_at @updated_at end |
#webhook ⇒ Object (readonly)
Returns the value of attribute webhook.
6 7 8 |
# File 'lib/firecrawl/models/monitor.rb', line 6 def webhook @webhook end |