Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v4/classes.rb,
generated/google/apis/pagespeedonline_v4/representations.rb,
generated/google/apis/pagespeedonline_v4/representations.rb
Overview
Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc.
Instance Attribute Summary collapse
-
#cms ⇒ String
Content management system (CMS) used for the page.
-
#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.
-
#num_render_blocking_round_trips ⇒ Fixnum
The needed round trips to load render blocking resources Corresponds to the JSON property
numRenderBlockingRoundTrips
. -
#num_total_round_trips ⇒ Fixnum
The needed round trips to load the full page Corresponds to the JSON property
numTotalRoundTrips
. -
#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_roboted_resources ⇒ Fixnum
Number of roboted resources.
-
#number_static_resources ⇒ Fixnum
Number of static (i.e. cacheable) resources on the page.
-
#number_transient_fetch_failure_resources ⇒ Fixnum
Number of transient-failed resources.
-
#other_response_bytes ⇒ Fixnum
Number of response bytes for other resources on the page.
-
#over_the_wire_response_bytes ⇒ Fixnum
Number of over-the-wire bytes, uses the default gzip compression strategy as an estimation.
-
#roboted_urls ⇒ Array<String>
List of roboted urls.
-
#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.
-
#transient_fetch_failure_urls ⇒ Array<String>
List of transient fetch failure urls.
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
709 710 711 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 709 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cms ⇒ String
Content management system (CMS) used for the page.
Corresponds to the JSON property cms
604 605 606 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 604 def cms @cms end |
#css_response_bytes ⇒ Fixnum
Number of uncompressed response bytes for CSS resources on the page.
Corresponds to the JSON property cssResponseBytes
609 610 611 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 609 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
614 615 616 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 614 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
620 621 622 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 620 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
625 626 627 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 625 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
630 631 632 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 630 def javascript_response_bytes @javascript_response_bytes end |
#num_render_blocking_round_trips ⇒ Fixnum
The needed round trips to load render blocking resources
Corresponds to the JSON property numRenderBlockingRoundTrips
635 636 637 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 635 def num_render_blocking_round_trips @num_render_blocking_round_trips end |
#num_total_round_trips ⇒ Fixnum
The needed round trips to load the full page
Corresponds to the JSON property numTotalRoundTrips
640 641 642 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 640 def num_total_round_trips @num_total_round_trips end |
#number_css_resources ⇒ Fixnum
Number of CSS resources referenced by the page.
Corresponds to the JSON property numberCssResources
645 646 647 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 645 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
650 651 652 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 650 def number_hosts @number_hosts end |
#number_js_resources ⇒ Fixnum
Number of JavaScript resources referenced by the page.
Corresponds to the JSON property numberJsResources
655 656 657 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 655 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
660 661 662 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 660 def number_resources @number_resources end |
#number_roboted_resources ⇒ Fixnum
Number of roboted resources.
Corresponds to the JSON property numberRobotedResources
665 666 667 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 665 def number_roboted_resources @number_roboted_resources end |
#number_static_resources ⇒ Fixnum
Number of static (i.e. cacheable) resources on the page.
Corresponds to the JSON property numberStaticResources
670 671 672 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 670 def number_static_resources @number_static_resources end |
#number_transient_fetch_failure_resources ⇒ Fixnum
Number of transient-failed resources.
Corresponds to the JSON property numberTransientFetchFailureResources
675 676 677 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 675 def number_transient_fetch_failure_resources @number_transient_fetch_failure_resources end |
#other_response_bytes ⇒ Fixnum
Number of response bytes for other resources on the page.
Corresponds to the JSON property otherResponseBytes
680 681 682 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 680 def other_response_bytes @other_response_bytes end |
#over_the_wire_response_bytes ⇒ Fixnum
Number of over-the-wire bytes, uses the default gzip compression strategy as
an estimation.
Corresponds to the JSON property overTheWireResponseBytes
686 687 688 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 686 def over_the_wire_response_bytes @over_the_wire_response_bytes end |
#roboted_urls ⇒ Array<String>
List of roboted urls.
Corresponds to the JSON property robotedUrls
691 692 693 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 691 def roboted_urls @roboted_urls 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
697 698 699 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 697 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
702 703 704 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 702 def total_request_bytes @total_request_bytes end |
#transient_fetch_failure_urls ⇒ Array<String>
List of transient fetch failure urls.
Corresponds to the JSON property transientFetchFailureUrls
707 708 709 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 707 def transient_fetch_failure_urls @transient_fetch_failure_urls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 714 def update!(**args) @cms = args[:cms] if args.key?(:cms) @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) @num_render_blocking_round_trips = args[:num_render_blocking_round_trips] if args.key?(:num_render_blocking_round_trips) @num_total_round_trips = args[:num_total_round_trips] if args.key?(:num_total_round_trips) @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_roboted_resources = args[:number_roboted_resources] if args.key?(:number_roboted_resources) @number_static_resources = args[:number_static_resources] if args.key?(:number_static_resources) @number_transient_fetch_failure_resources = args[:number_transient_fetch_failure_resources] if args.key?(:number_transient_fetch_failure_resources) @other_response_bytes = args[:other_response_bytes] if args.key?(:other_response_bytes) @over_the_wire_response_bytes = args[:over_the_wire_response_bytes] if args.key?(:over_the_wire_response_bytes) @roboted_urls = args[:roboted_urls] if args.key?(:roboted_urls) @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) @transient_fetch_failure_urls = args[:transient_fetch_failure_urls] if args.key?(:transient_fetch_failure_urls) end |