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
Defined Under Namespace
Classes: Categories, CategoryGroup, ConfigSettings, Environment, I18n, RuntimeError, Timing
Instance Attribute Summary collapse
-
#audits ⇒ Hash<String,Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5>
Map of audits in the LHR.
-
#categories ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Categories
Map of categories in the LHR.
-
#category_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV5::LighthouseResultV5::CategoryGroup>
Map of category groups in the LHR.
-
#config_settings ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::ConfigSettings
The configuration settings for this LHR.
-
#environment ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Environment
Environment settings that were used when making this LHR.
-
#fetch_time ⇒ String
The time that this run was fetched.
-
#final_url ⇒ String
The final resolved url that was audited.
-
#i18n ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::I18n
The internationalization strings that are required to render the LHR.
-
#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::LighthouseResultV5::RuntimeError
A top-level error message that, if present, indicates a serious enough problem that this Lighthouse result may need to be discarded.
-
#timing ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Timing
Timing information for this LHR.
-
#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
253 254 255 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 253 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
185 186 187 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 185 def audits @audits end |
#categories ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Categories
Map of categories in the LHR.
Corresponds to the JSON property categories
190 191 192 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 190 def categories @categories end |
#category_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV5::LighthouseResultV5::CategoryGroup>
Map of category groups in the LHR.
Corresponds to the JSON property categoryGroups
195 196 197 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 195 def category_groups @category_groups end |
#config_settings ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::ConfigSettings
The configuration settings for this LHR.
Corresponds to the JSON property configSettings
200 201 202 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 200 def config_settings @config_settings end |
#environment ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Environment
Environment settings that were used when making this LHR.
Corresponds to the JSON property environment
205 206 207 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 205 def environment @environment end |
#fetch_time ⇒ String
The time that this run was fetched.
Corresponds to the JSON property fetchTime
210 211 212 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 210 def fetch_time @fetch_time end |
#final_url ⇒ String
The final resolved url that was audited.
Corresponds to the JSON property finalUrl
215 216 217 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 215 def final_url @final_url end |
#i18n ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::I18n
The internationalization strings that are required to render the LHR.
Corresponds to the JSON property i18n
220 221 222 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 220 def i18n @i18n end |
#lighthouse_version ⇒ String
The lighthouse version that was used to generate this LHR.
Corresponds to the JSON property lighthouseVersion
225 226 227 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 225 def lighthouse_version @lighthouse_version end |
#requested_url ⇒ String
The original requested url.
Corresponds to the JSON property requestedUrl
230 231 232 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 230 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
235 236 237 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 235 def run_warnings @run_warnings end |
#runtime_error ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::RuntimeError
A top-level error message that, if present, indicates a serious enough problem
that this Lighthouse result may need to be discarded.
Corresponds to the JSON property runtimeError
241 242 243 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 241 def runtime_error @runtime_error end |
#timing ⇒ Google::Apis::PagespeedonlineV5::LighthouseResultV5::Timing
Timing information for this LHR.
Corresponds to the JSON property timing
246 247 248 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 246 def timing @timing end |
#user_agent ⇒ String
The user agent that was used to run this LHR.
Corresponds to the JSON property userAgent
251 252 253 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 251 def user_agent @user_agent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 258 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) @timing = args[:timing] if args.key?(:timing) @user_agent = args[:user_agent] if args.key?(:user_agent) end |