Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseResultV5
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb
Overview
The Lighthouse result object.
Instance Attribute Summary collapse
-
#audits ⇒ Hash<String,Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5>
Map of audits in the LHR.
-
#categories ⇒ Google::Apis::PagespeedonlineV5::Categories
The categories in a Lighthouse run.
-
#category_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV5::CategoryGroupV5>
Map of category groups in the LHR.
-
#config_settings ⇒ Google::Apis::PagespeedonlineV5::ConfigSettings
Message containing the configuration settings for the Lighthouse run.
-
#environment ⇒ Google::Apis::PagespeedonlineV5::Environment
Message containing environment configuration for a Lighthouse run.
-
#fetch_time ⇒ String
The time that this run was fetched.
-
#final_url ⇒ String
The final resolved url that was audited.
-
#i18n ⇒ Google::Apis::PagespeedonlineV5::I18n
Message containing the i18n data for the LHR - Version 1.
-
#lighthouse_version ⇒ String
The lighthouse version that was used to generate this LHR.
-
#requested_url ⇒ String
The original requested url.
-
#run_warnings ⇒ Array<Object>
List of all run warnings in the LHR.
-
#runtime_error ⇒ Google::Apis::PagespeedonlineV5::RuntimeError
Message containing a runtime error config.
-
#stack_packs ⇒ Array<Google::Apis::PagespeedonlineV5::StackPack>
The Stack Pack advice strings.
-
#timing ⇒ Google::Apis::PagespeedonlineV5::Timing
Message containing the performance timing data for the Lighthouse run.
-
#user_agent ⇒ String
The user agent that was used to run this LHR.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LighthouseResultV5
constructor
A new instance of LighthouseResultV5.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LighthouseResultV5
Returns a new instance of LighthouseResultV5.
456 457 458 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 456 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audits ⇒ Hash<String,Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5>
Map of audits in the LHR.
Corresponds to the JSON property audits
384 385 386 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 384 def audits @audits end |
#categories ⇒ Google::Apis::PagespeedonlineV5::Categories
The categories in a Lighthouse run.
Corresponds to the JSON property categories
389 390 391 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 389 def categories @categories end |
#category_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV5::CategoryGroupV5>
Map of category groups in the LHR.
Corresponds to the JSON property categoryGroups
394 395 396 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 394 def category_groups @category_groups end |
#config_settings ⇒ Google::Apis::PagespeedonlineV5::ConfigSettings
Message containing the configuration settings for the Lighthouse run.
Corresponds to the JSON property configSettings
399 400 401 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 399 def config_settings @config_settings end |
#environment ⇒ Google::Apis::PagespeedonlineV5::Environment
Message containing environment configuration for a Lighthouse run.
Corresponds to the JSON property environment
404 405 406 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 404 def environment @environment end |
#fetch_time ⇒ String
The time that this run was fetched.
Corresponds to the JSON property fetchTime
409 410 411 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 409 def fetch_time @fetch_time end |
#final_url ⇒ String
The final resolved url that was audited.
Corresponds to the JSON property finalUrl
414 415 416 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 414 def final_url @final_url end |
#i18n ⇒ Google::Apis::PagespeedonlineV5::I18n
Message containing the i18n data for the LHR - Version 1.
Corresponds to the JSON property i18n
419 420 421 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 419 def i18n @i18n end |
#lighthouse_version ⇒ String
The lighthouse version that was used to generate this LHR.
Corresponds to the JSON property lighthouseVersion
424 425 426 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 424 def lighthouse_version @lighthouse_version end |
#requested_url ⇒ String
The original requested url.
Corresponds to the JSON property requestedUrl
429 430 431 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 429 def requested_url @requested_url end |
#run_warnings ⇒ Array<Object>
List of all run warnings in the LHR. Will always output to at least []
.
Corresponds to the JSON property runWarnings
434 435 436 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 434 def run_warnings @run_warnings end |
#runtime_error ⇒ Google::Apis::PagespeedonlineV5::RuntimeError
Message containing a runtime error config.
Corresponds to the JSON property runtimeError
439 440 441 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 439 def runtime_error @runtime_error end |
#stack_packs ⇒ Array<Google::Apis::PagespeedonlineV5::StackPack>
The Stack Pack advice strings.
Corresponds to the JSON property stackPacks
444 445 446 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 444 def stack_packs @stack_packs end |
#timing ⇒ Google::Apis::PagespeedonlineV5::Timing
Message containing the performance timing data for the Lighthouse run.
Corresponds to the JSON property timing
449 450 451 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 449 def timing @timing end |
#user_agent ⇒ String
The user agent that was used to run this LHR.
Corresponds to the JSON property userAgent
454 455 456 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 454 def user_agent @user_agent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 461 def update!(**args) @audits = args[:audits] if args.key?(:audits) @categories = args[:categories] if args.key?(:categories) @category_groups = args[:category_groups] if args.key?(:category_groups) @config_settings = args[:config_settings] if args.key?(:config_settings) @environment = args[:environment] if args.key?(:environment) @fetch_time = args[:fetch_time] if args.key?(:fetch_time) @final_url = args[:final_url] if args.key?(:final_url) @i18n = args[:i18n] if args.key?(:i18n) @lighthouse_version = args[:lighthouse_version] if args.key?(:lighthouse_version) @requested_url = args[:requested_url] if args.key?(:requested_url) @run_warnings = args[:run_warnings] if args.key?(:run_warnings) @runtime_error = args[:runtime_error] if args.key?(:runtime_error) @stack_packs = args[:stack_packs] if args.key?(:stack_packs) @timing = args[:timing] if args.key?(:timing) @user_agent = args[:user_agent] if args.key?(:user_agent) end |