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.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/firecrawl/models/monitor.rb', line 115

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.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def actual_credits
  @actual_credits
end

#billing_statusObject (readonly)

Returns the value of attribute billing_status.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def billing_status
  @billing_status
end

#created_atObject (readonly)

Returns the value of attribute created_at.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def created_at
  @created_at
end

#errorObject (readonly)

Returns the value of attribute error.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def error
  @error
end

#estimated_creditsObject (readonly)

Returns the value of attribute estimated_credits.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def estimated_credits
  @estimated_credits
end

#finished_atObject (readonly)

Returns the value of attribute finished_at.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def finished_at
  @finished_at
end

#idObject (readonly)

Returns the value of attribute id.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def id
  @id
end

#monitor_idObject (readonly)

Returns the value of attribute monitor_id.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def monitor_id
  @monitor_id
end

#notification_statusObject (readonly)

Returns the value of attribute notification_status.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def notification_status
  @notification_status
end

#reserved_creditsObject (readonly)

Returns the value of attribute reserved_credits.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def reserved_credits
  @reserved_credits
end

#scheduled_forObject (readonly)

Returns the value of attribute scheduled_for.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def scheduled_for
  @scheduled_for
end

#started_atObject (readonly)

Returns the value of attribute started_at.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def started_at
  @started_at
end

#statusObject (readonly)

Returns the value of attribute status.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def status
  @status
end

#summaryObject (readonly)

Returns the value of attribute summary.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def summary
  @summary
end

#target_resultsObject (readonly)

Returns the value of attribute target_results.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def target_results
  @target_results
end

#triggerObject (readonly)

Returns the value of attribute trigger.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def trigger
  @trigger
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



109
110
111
# File 'lib/firecrawl/models/monitor.rb', line 109

def updated_at
  @updated_at
end