View Source GoogleApi.PageSpeedOnline.V5.Model.LighthouseResultV5 (google_api_page_speed_online v0.16.1)

The Lighthouse result object.

Attributes

  • audits (type: %{optional(String.t) => GoogleApi.PageSpeedOnline.V5.Model.LighthouseAuditResultV5.t}, default: nil) - Map of audits in the LHR.
  • categories (type: GoogleApi.PageSpeedOnline.V5.Model.Categories.t, default: nil) - Map of categories in the LHR.
  • categoryGroups (type: %{optional(String.t) => GoogleApi.PageSpeedOnline.V5.Model.CategoryGroupV5.t}, default: nil) - Map of category groups in the LHR.
  • configSettings (type: GoogleApi.PageSpeedOnline.V5.Model.ConfigSettings.t, default: nil) - The configuration settings for this LHR.
  • entities (type: list(GoogleApi.PageSpeedOnline.V5.Model.LhrEntity.t), default: nil) - Entity classification data.
  • environment (type: GoogleApi.PageSpeedOnline.V5.Model.Environment.t, default: nil) - Environment settings that were used when making this LHR.
  • fetchTime (type: String.t, default: nil) - The time that this run was fetched.
  • finalDisplayedUrl (type: String.t, default: nil) - URL displayed on the page after Lighthouse finishes.
  • finalUrl (type: String.t, default: nil) - The final resolved url that was audited.
  • fullPageScreenshot (type: any(), default: nil) - Screenshot data of the full page, along with node rects relevant to the audit results.
  • i18n (type: GoogleApi.PageSpeedOnline.V5.Model.I18n.t, default: nil) - The internationalization strings that are required to render the LHR.
  • lighthouseVersion (type: String.t, default: nil) - The lighthouse version that was used to generate this LHR.
  • mainDocumentUrl (type: String.t, default: nil) - URL of the main document request of the final navigation.
  • requestedUrl (type: String.t, default: nil) - The original requested url.
  • runWarnings (type: list(any()), default: nil) - List of all run warnings in the LHR. Will always output to at least [].
  • runtimeError (type: GoogleApi.PageSpeedOnline.V5.Model.RuntimeError.t, default: nil) - A top-level error message that, if present, indicates a serious enough problem that this Lighthouse result may need to be discarded.
  • stackPacks (type: list(GoogleApi.PageSpeedOnline.V5.Model.StackPack.t), default: nil) - The Stack Pack advice strings.
  • timing (type: GoogleApi.PageSpeedOnline.V5.Model.Timing.t, default: nil) - Timing information for this LHR.
  • userAgent (type: String.t, default: nil) - The user agent that was used to run this LHR.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PageSpeedOnline.V5.Model.LighthouseResultV5{
  audits:
    %{
      optional(String.t()) =>
        GoogleApi.PageSpeedOnline.V5.Model.LighthouseAuditResultV5.t()
    }
    | nil,
  categories: GoogleApi.PageSpeedOnline.V5.Model.Categories.t() | nil,
  categoryGroups:
    %{
      optional(String.t()) =>
        GoogleApi.PageSpeedOnline.V5.Model.CategoryGroupV5.t()
    }
    | nil,
  configSettings: GoogleApi.PageSpeedOnline.V5.Model.ConfigSettings.t() | nil,
  entities: [GoogleApi.PageSpeedOnline.V5.Model.LhrEntity.t()] | nil,
  environment: GoogleApi.PageSpeedOnline.V5.Model.Environment.t() | nil,
  fetchTime: String.t() | nil,
  finalDisplayedUrl: String.t() | nil,
  finalUrl: String.t() | nil,
  fullPageScreenshot: any() | nil,
  i18n: GoogleApi.PageSpeedOnline.V5.Model.I18n.t() | nil,
  lighthouseVersion: String.t() | nil,
  mainDocumentUrl: String.t() | nil,
  requestedUrl: String.t() | nil,
  runWarnings: [any()] | nil,
  runtimeError: GoogleApi.PageSpeedOnline.V5.Model.RuntimeError.t() | nil,
  stackPacks: [GoogleApi.PageSpeedOnline.V5.Model.StackPack.t()] | nil,
  timing: GoogleApi.PageSpeedOnline.V5.Model.Timing.t() | nil,
  userAgent: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.