Class: Google::Apis::PagespeedonlineV1::Result::PageStats
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV1::Result::PageStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v1/classes.rb,
generated/google/apis/pagespeedonline_v1/representations.rb,
generated/google/apis/pagespeedonline_v1/representations.rb
Overview
Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc.
Instance Attribute Summary collapse
-
#css_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for CSS resources on the page.
-
#flash_response_bytes ⇒ Fixnum
Number of response bytes for flash resources on the page.
-
#html_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for the main HTML document and all iframes on the page.
-
#image_response_bytes ⇒ Fixnum
Number of response bytes for image resources on the page.
-
#javascript_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for JS resources on the page.
-
#number_css_resources ⇒ Fixnum
Number of CSS resources referenced by the page.
-
#number_hosts ⇒ Fixnum
Number of unique hosts referenced by the page.
-
#number_js_resources ⇒ Fixnum
Number of JavaScript resources referenced by the page.
-
#number_resources ⇒ Fixnum
Number of HTTP resources loaded by the page.
-
#number_static_resources ⇒ Fixnum
Number of static (i.e. cacheable) resources on the page.
-
#other_response_bytes ⇒ Fixnum
Number of response bytes for other resources on the page.
-
#text_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for text resources not covered by other statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
-
#total_request_bytes ⇒ Fixnum
Total size of all request bytes sent by the page.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PageStats
constructor
A new instance of PageStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PageStats
Returns a new instance of PageStats
449 450 451 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#css_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for CSS resources on the page.
Corresponds to the JSON property cssResponseBytes
385 386 387 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 385 def css_response_bytes @css_response_bytes end |
#flash_response_bytes ⇒ Fixnum
Number of response bytes for flash resources on the page.
Corresponds to the JSON property flashResponseBytes
390 391 392 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 390 def flash_response_bytes @flash_response_bytes end |
#html_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for the main HTML document and all
iframes on the page.
Corresponds to the JSON property htmlResponseBytes
396 397 398 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 396 def html_response_bytes @html_response_bytes end |
#image_response_bytes ⇒ Fixnum
Number of response bytes for image resources on the page.
Corresponds to the JSON property imageResponseBytes
401 402 403 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 401 def image_response_bytes @image_response_bytes end |
#javascript_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for JS resources on the page.
Corresponds to the JSON property javascriptResponseBytes
406 407 408 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 406 def javascript_response_bytes @javascript_response_bytes end |
#number_css_resources ⇒ Fixnum
Number of CSS resources referenced by the page.
Corresponds to the JSON property numberCssResources
411 412 413 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 411 def number_css_resources @number_css_resources end |
#number_hosts ⇒ Fixnum
Number of unique hosts referenced by the page.
Corresponds to the JSON property numberHosts
416 417 418 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 416 def number_hosts @number_hosts end |
#number_js_resources ⇒ Fixnum
Number of JavaScript resources referenced by the page.
Corresponds to the JSON property numberJsResources
421 422 423 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 421 def number_js_resources @number_js_resources end |
#number_resources ⇒ Fixnum
Number of HTTP resources loaded by the page.
Corresponds to the JSON property numberResources
426 427 428 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 426 def number_resources @number_resources end |
#number_static_resources ⇒ Fixnum
Number of static (i.e. cacheable) resources on the page.
Corresponds to the JSON property numberStaticResources
431 432 433 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 431 def number_static_resources @number_static_resources end |
#other_response_bytes ⇒ Fixnum
Number of response bytes for other resources on the page.
Corresponds to the JSON property otherResponseBytes
436 437 438 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 436 def other_response_bytes @other_response_bytes end |
#text_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for text resources not covered by other
statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
Corresponds to the JSON property textResponseBytes
442 443 444 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 442 def text_response_bytes @text_response_bytes end |
#total_request_bytes ⇒ Fixnum
Total size of all request bytes sent by the page.
Corresponds to the JSON property totalRequestBytes
447 448 449 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 447 def total_request_bytes @total_request_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 454 def update!(**args) @css_response_bytes = args[:css_response_bytes] if args.key?(:css_response_bytes) @flash_response_bytes = args[:flash_response_bytes] if args.key?(:flash_response_bytes) @html_response_bytes = args[:html_response_bytes] if args.key?(:html_response_bytes) @image_response_bytes = args[:image_response_bytes] if args.key?(:image_response_bytes) @javascript_response_bytes = args[:javascript_response_bytes] if args.key?(:javascript_response_bytes) @number_css_resources = args[:number_css_resources] if args.key?(:number_css_resources) @number_hosts = args[:number_hosts] if args.key?(:number_hosts) @number_js_resources = args[:number_js_resources] if args.key?(:number_js_resources) @number_resources = args[:number_resources] if args.key?(:number_resources) @number_static_resources = args[:number_static_resources] if args.key?(:number_static_resources) @other_response_bytes = args[:other_response_bytes] if args.key?(:other_response_bytes) @text_response_bytes = args[:text_response_bytes] if args.key?(:text_response_bytes) @total_request_bytes = args[:total_request_bytes] if args.key?(:total_request_bytes) end |