Class: Firecrawl::Models::MonitorCheck

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

Direct Known Subclasses

MonitorCheckDetail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ MonitorCheck

Returns a new instance of MonitorCheck.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/firecrawl/models/monitor.rb', line 37

def initialize(data)
  @id = data["id"]
  @monitor_id = data["monitorId"]
  @status = data["status"]
  @trigger = data["trigger"]
  @scheduled_for = data["scheduledFor"]
  @started_at = data["startedAt"]
  @finished_at = data["finishedAt"]
  @estimated_credits = data["estimatedCredits"]
  @reserved_credits = data["reservedCredits"]
  @actual_credits = data["actualCredits"]
  @billing_status = data["billingStatus"]
  @summary = data["summary"] || {}
  @target_results = data["targetResults"]
  @notification_status = data["notificationStatus"]
  @error = data["error"]
  @created_at = data["createdAt"]
  @updated_at = data["updatedAt"]
end

Instance Attribute Details

#actual_creditsObject (readonly)

Returns the value of attribute actual_credits.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def actual_credits
  @actual_credits
end

#billing_statusObject (readonly)

Returns the value of attribute billing_status.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def billing_status
  @billing_status
end

#created_atObject (readonly)

Returns the value of attribute created_at.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def created_at
  @created_at
end

#errorObject (readonly)

Returns the value of attribute error.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def error
  @error
end

#estimated_creditsObject (readonly)

Returns the value of attribute estimated_credits.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def estimated_credits
  @estimated_credits
end

#finished_atObject (readonly)

Returns the value of attribute finished_at.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def finished_at
  @finished_at
end

#idObject (readonly)

Returns the value of attribute id.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def id
  @id
end

#monitor_idObject (readonly)

Returns the value of attribute monitor_id.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def monitor_id
  @monitor_id
end

#notification_statusObject (readonly)

Returns the value of attribute notification_status.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def notification_status
  @notification_status
end

#reserved_creditsObject (readonly)

Returns the value of attribute reserved_credits.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def reserved_credits
  @reserved_credits
end

#scheduled_forObject (readonly)

Returns the value of attribute scheduled_for.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def scheduled_for
  @scheduled_for
end

#started_atObject (readonly)

Returns the value of attribute started_at.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def started_at
  @started_at
end

#statusObject (readonly)

Returns the value of attribute status.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def status
  @status
end

#summaryObject (readonly)

Returns the value of attribute summary.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def summary
  @summary
end

#target_resultsObject (readonly)

Returns the value of attribute target_results.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def target_results
  @target_results
end

#triggerObject (readonly)

Returns the value of attribute trigger.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def trigger
  @trigger
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



31
32
33
# File 'lib/firecrawl/models/monitor.rb', line 31

def updated_at
  @updated_at
end