Class: HttpObservatory::Scan
- Defined in:
- lib/http_observatory/models/scan.rb
Overview
Scan Object
github.com/mozilla/http-observatory/blob/master/httpobs/docs/api.md#scan
The scan can exist in one of six states:
-
ABORTED aborted for internal technical reasons
-
FAILED failed to complete, typically due to the site being unavailable or timing out
-
FINISHED completed successfully
-
PENDING issued by the API but not yet picked up by a scanner instance
-
STARTING assigned to a scanning instance
-
RUNNING currently in the process of scanning a website
Instance Attribute Summary collapse
-
#end_time ⇒ Object
timestamp for when the scan completed.
-
#grade ⇒ Object
timestamp for when the scan completed.
-
#hidden ⇒ Object
timestamp for when the scan completed.
-
#likelihood_indicator ⇒ Object
timestamp for when the scan completed.
-
#response_headers ⇒ Object
timestamp for when the scan completed.
-
#scan_id ⇒ Object
timestamp for when the scan completed.
-
#score ⇒ Object
timestamp for when the scan completed.
-
#start_time ⇒ Object
timestamp for when the scan completed.
-
#state ⇒ Object
timestamp for when the scan completed.
-
#tests_failed ⇒ Object
timestamp for when the scan completed.
-
#tests_passed ⇒ Object
timestamp for when the scan completed.
-
#tests_quantity ⇒ Object
timestamp for when the scan completed.
Attributes inherited from Base
Method Summary
Methods inherited from Base
Constructor Details
This class inherits a constructor from HttpObservatory::Base
Instance Attribute Details
#end_time ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def end_time @end_time end |
#grade ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def grade @grade end |
#hidden ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def hidden @hidden end |
#likelihood_indicator ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def likelihood_indicator @likelihood_indicator end |
#response_headers ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def response_headers @response_headers end |
#scan_id ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def scan_id @scan_id end |
#score ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def score @score end |
#start_time ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def start_time @start_time end |
#state ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def state @state end |
#tests_failed ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def tests_failed @tests_failed end |
#tests_passed ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def tests_passed @tests_passed end |
#tests_quantity ⇒ Object
timestamp for when the scan completed
17 18 19 |
# File 'lib/http_observatory/models/scan.rb', line 17 def tests_quantity @tests_quantity end |