class Google::Apis::PagespeedonlineV2::Result::PageStats

Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc.

Attributes

css_response_bytes[RW]

Number of uncompressed response bytes for CSS resources on the page. Corresponds to the JSON property `cssResponseBytes` @return [String]

flash_response_bytes[RW]

Number of response bytes for flash resources on the page. Corresponds to the JSON property `flashResponseBytes` @return [String]

html_response_bytes[RW]

Number of uncompressed response bytes for the main HTML document and all iframes on the page. Corresponds to the JSON property `htmlResponseBytes` @return [String]

image_response_bytes[RW]

Number of response bytes for image resources on the page. Corresponds to the JSON property `imageResponseBytes` @return [String]

javascript_response_bytes[RW]

Number of uncompressed response bytes for JS resources on the page. Corresponds to the JSON property `javascriptResponseBytes` @return [String]

number_css_resources[RW]

Number of CSS resources referenced by the page. Corresponds to the JSON property `numberCssResources` @return [Fixnum]

number_hosts[RW]

Number of unique hosts referenced by the page. Corresponds to the JSON property `numberHosts` @return [Fixnum]

number_js_resources[RW]

Number of JavaScript resources referenced by the page. Corresponds to the JSON property `numberJsResources` @return [Fixnum]

number_resources[RW]

Number of HTTP resources loaded by the page. Corresponds to the JSON property `numberResources` @return [Fixnum]

number_static_resources[RW]

Number of static (i.e. cacheable) resources on the page. Corresponds to the JSON property `numberStaticResources` @return [Fixnum]

other_response_bytes[RW]

Number of response bytes for other resources on the page. Corresponds to the JSON property `otherResponseBytes` @return [String]

text_response_bytes[RW]

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` @return [String]

total_request_bytes[RW]

Total size of all request bytes sent by the page. Corresponds to the JSON property `totalRequestBytes` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 543
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/pagespeedonline_v2/classes.rb, line 548
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