Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#cmsString

Content management system (CMS) used for the page. Corresponds to the JSON property cms

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 604

def cms
  @cms
end

#css_response_bytesFixnum

Number of uncompressed response bytes for CSS resources on the page. Corresponds to the JSON property cssResponseBytes

Returns:

  • (Fixnum)


609
610
611
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 609

def css_response_bytes
  @css_response_bytes
end

#flash_response_bytesFixnum

Number of response bytes for flash resources on the page. Corresponds to the JSON property flashResponseBytes

Returns:

  • (Fixnum)


614
615
616
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 614

def flash_response_bytes
  @flash_response_bytes
end

#html_response_bytesFixnum

Number of uncompressed response bytes for the main HTML document and all iframes on the page. Corresponds to the JSON property htmlResponseBytes

Returns:

  • (Fixnum)


620
621
622
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 620

def html_response_bytes
  @html_response_bytes
end

#image_response_bytesFixnum

Number of response bytes for image resources on the page. Corresponds to the JSON property imageResponseBytes

Returns:

  • (Fixnum)


625
626
627
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 625

def image_response_bytes
  @image_response_bytes
end

#javascript_response_bytesFixnum

Number of uncompressed response bytes for JS resources on the page. Corresponds to the JSON property javascriptResponseBytes

Returns:

  • (Fixnum)


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_tripsFixnum

The needed round trips to load render blocking resources Corresponds to the JSON property numRenderBlockingRoundTrips

Returns:

  • (Fixnum)


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_tripsFixnum

The needed round trips to load the full page Corresponds to the JSON property numTotalRoundTrips

Returns:

  • (Fixnum)


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_resourcesFixnum

Number of CSS resources referenced by the page. Corresponds to the JSON property numberCssResources

Returns:

  • (Fixnum)


645
646
647
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 645

def number_css_resources
  @number_css_resources
end

#number_hostsFixnum

Number of unique hosts referenced by the page. Corresponds to the JSON property numberHosts

Returns:

  • (Fixnum)


650
651
652
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 650

def number_hosts
  @number_hosts
end

#number_js_resourcesFixnum

Number of JavaScript resources referenced by the page. Corresponds to the JSON property numberJsResources

Returns:

  • (Fixnum)


655
656
657
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 655

def number_js_resources
  @number_js_resources
end

#number_resourcesFixnum

Number of HTTP resources loaded by the page. Corresponds to the JSON property numberResources

Returns:

  • (Fixnum)


660
661
662
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 660

def number_resources
  @number_resources
end

#number_roboted_resourcesFixnum

Number of roboted resources. Corresponds to the JSON property numberRobotedResources

Returns:

  • (Fixnum)


665
666
667
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 665

def number_roboted_resources
  @number_roboted_resources
end

#number_static_resourcesFixnum

Number of static (i.e. cacheable) resources on the page. Corresponds to the JSON property numberStaticResources

Returns:

  • (Fixnum)


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_resourcesFixnum

Number of transient-failed resources. Corresponds to the JSON property numberTransientFetchFailureResources

Returns:

  • (Fixnum)


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_bytesFixnum

Number of response bytes for other resources on the page. Corresponds to the JSON property otherResponseBytes

Returns:

  • (Fixnum)


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_bytesFixnum

Number of over-the-wire bytes, uses the default gzip compression strategy as an estimation. Corresponds to the JSON property overTheWireResponseBytes

Returns:

  • (Fixnum)


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_urlsArray<String>

List of roboted urls. Corresponds to the JSON property robotedUrls

Returns:

  • (Array<String>)


691
692
693
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 691

def roboted_urls
  @roboted_urls
end

#text_response_bytesFixnum

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

Returns:

  • (Fixnum)


697
698
699
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 697

def text_response_bytes
  @text_response_bytes
end

#total_request_bytesFixnum

Total size of all request bytes sent by the page. Corresponds to the JSON property totalRequestBytes

Returns:

  • (Fixnum)


702
703
704
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 702

def total_request_bytes
  @total_request_bytes
end

#transient_fetch_failure_urlsArray<String>

List of transient fetch failure urls. Corresponds to the JSON property transientFetchFailureUrls

Returns:

  • (Array<String>)


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