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.



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_atObject (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_idObject (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_monthObject (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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def id
  @id
end

#last_check_summaryObject (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_atObject (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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def name
  @name
end

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

#notificationObject (readonly)

Returns the value of attribute notification.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def notification
  @notification
end

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

#scheduleObject (readonly)

Returns the value of attribute schedule.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def schedule
  @schedule
end

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def status
  @status
end

#targetsObject (readonly)

Returns the value of attribute targets.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def targets
  @targets
end

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

#webhookObject (readonly)

Returns the value of attribute webhook.



6
7
8
# File 'lib/firecrawl/models/monitor.rb', line 6

def webhook
  @webhook
end