Class: Firecrawl::Models::Monitor

Inherits:
Object
  • Object
show all
Defined in:
lib/firecrawl/models/monitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Monitor

Returns a new instance of Monitor.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/firecrawl/models/monitor.rb', line 87

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"]
  @goal = data["goal"]
  @judge_enabled = data["judgeEnabled"] || false
  @created_at = data["createdAt"]
  @updated_at = data["updatedAt"]
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def created_at
  @created_at
end

#current_check_idObject (readonly)

Returns the value of attribute current_check_id.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def current_check_id
  @current_check_id
end

#estimated_credits_per_monthObject (readonly)

Returns the value of attribute estimated_credits_per_month.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def estimated_credits_per_month
  @estimated_credits_per_month
end

#goalObject (readonly)

Returns the value of attribute goal.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def goal
  @goal
end

#idObject (readonly)

Returns the value of attribute id.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def id
  @id
end

#judge_enabledObject (readonly)

Returns the value of attribute judge_enabled.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def judge_enabled
  @judge_enabled
end

#last_check_summaryObject (readonly)

Returns the value of attribute last_check_summary.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def last_check_summary
  @last_check_summary
end

#last_run_atObject (readonly)

Returns the value of attribute last_run_at.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def last_run_at
  @last_run_at
end

#nameObject (readonly)

Returns the value of attribute name.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def name
  @name
end

#next_run_atObject (readonly)

Returns the value of attribute next_run_at.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def next_run_at
  @next_run_at
end

#notificationObject (readonly)

Returns the value of attribute notification.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def notification
  @notification
end

#retention_daysObject (readonly)

Returns the value of attribute retention_days.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def retention_days
  @retention_days
end

#scheduleObject (readonly)

Returns the value of attribute schedule.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def schedule
  @schedule
end

#statusObject (readonly)

Returns the value of attribute status.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def status
  @status
end

#targetsObject (readonly)

Returns the value of attribute targets.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def targets
  @targets
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def updated_at
  @updated_at
end

#webhookObject (readonly)

Returns the value of attribute webhook.



81
82
83
# File 'lib/firecrawl/models/monitor.rb', line 81

def webhook
  @webhook
end